Skip to content

Commit 53db9aa

Browse files
committed
Remove redundant encoding
This magic comment is not needed anymore because the default encoding of source code files assumed by Ruby 2 is utf-8, and the minimum required Ruby version is 3.1 Autofixed with: ``` rubocop -a --only Style/Encoding ```
1 parent bea6453 commit 53db9aa

21 files changed

+0
-39
lines changed

lib/money/currency.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# encoding: utf-8
2-
31
require "json"
42
require "money/currency/loader"
53
require "money/currency/heuristics"

lib/money/currency/heuristics.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# encoding: utf-8
2-
31
class Money
42
class Currency
53
module Heuristics

lib/money/money.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# encoding: utf-8
21
require "money/bank/variable_exchange"
32
require "money/bank/single_currency"
43
require "money/money/arithmetic"

lib/money/money/allocation.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# encoding: utf-8
2-
31
class Money
42
class Allocation
53
# Splits a given amount in parts. The allocation is based on the parts' proportions

lib/money/money/formatter.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# encoding: UTF-8
21
require 'money/money/formatting_rules'
32

43
class Money

lib/money/money/formatting_rules.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# encoding: UTF-8
2-
31
class Money
42
class FormattingRules
53
def initialize(currency, *raw_rules)

lib/money/money/locale_backend.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# encoding: UTF-8
2-
31
require 'money/locale_backend/errors'
42
require 'money/locale_backend/legacy'
53
require 'money/locale_backend/i18n'

money.gemspec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- encoding: utf-8 -*-
21
lib = File.expand_path('../lib', __FILE__)
32
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
43
require "money/version"

spec/currency/heuristics_spec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# encoding: utf-8
2-
31
describe Money::Currency::Heuristics do
42
describe "#analyze_string" do
53
let(:it) { Money::Currency }

spec/currency/loader_spec.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# encoding: utf-8
2-
31
describe Money::Currency::Loader do
42
it "returns a currency table hash" do
53
expect(subject.load_currencies).to be_a Hash

0 commit comments

Comments
 (0)