diff --git a/CHANGELOG.md b/CHANGELOG.md index a661446471..9cadf6b1b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -213,7 +213,7 @@ return `nil` as `Comparable#==` will not rescue exceptions in the next release. - Fix `Currency` specs for `#exponent` and `#decimal_places` not making assertions. - Fix a couple of Ruby warnings found in specs. - - Fix `Money#-`,`Money#+` arithmetics for Ruby 2.3+ : check for zero value without using eql? with a Fixnum. (#577) + - Fix `Money#-`,`Money#+` arithmetic for Ruby 2.3+ : check for zero value without using eql? with a Fixnum. (#577) - Use `Money#decimal_mark` when formatting with `rounded_infinite_precision` rule set to `true`. - Replaced meta-defined `thousands_separator` and `decimal_mark` methods with regular methods. (#579) @@ -260,7 +260,7 @@ - Fix formatting of NGN - show symbol before amount - Switch default and alternate symbols for RUB currency - Fix symbol for TRY currency - - Add `Money.default_formatting_rules` hash, meant to define default rules for everytime `Money#format` is called. They can be overwritten if provided on method call + - Add `Money.default_formatting_rules` hash, meant to define default rules for every time `Money#format` is called. They can be overwritten if provided on method call - Add support for the new official symbol for Russian Ruble (RUB) — «₽» ## 6.2.1 @@ -599,7 +599,7 @@ Features - Added `Money::Bank::Base#exchange_with`. - Deprecated `Money::Bank::Base#exchange`. Deprecation target set to Money 3.2.0. - - Implented `Money::Bank::VariableExchange` + - Implemented `Money::Bank::VariableExchange` - Deprecated `Money::VariableExchangeBank`. Deprecation target set to Money 3.2.0. - Deprecate `Money::SYMBOLS`, `Money::SEPARATORS` and `Money::DELIMITERS`. @@ -679,7 +679,7 @@ Features - Added `Money::Bank::Base#exchange_with`. - Deprecated `Money::Bank::Base#exchange`. Deprecation target set to Money 3.2.0. - - Implented `Money::Bank::VariableExchange` + - Implemented `Money::Bank::VariableExchange` - Deprecated `Money::VariableExchangeBank`. Deprecation target set to Money 3.2.0. - Deprecate `Money::SYMBOLS`, `Money::SEPARATORS` and `Money::DELIMITERS`. diff --git a/README.md b/README.md index 34857ce629..fe8e38f0ca 100644 --- a/README.md +++ b/README.md @@ -506,7 +506,7 @@ In order to localize formatting you can use `I18n` gem: Money.locale_backend = :i18n ``` -With this enabled a thousands seperator and a decimal mark will get looked up in your `I18n` translation files. In a Rails application this may look like: +With this enabled a thousands separator and a decimal mark will get looked up in your `I18n` translation files. In a Rails application this may look like: ```yml # config/locale/en.yml diff --git a/lib/money/money.rb b/lib/money/money.rb index faa0d269db..371793a979 100644 --- a/lib/money/money.rb +++ b/lib/money/money.rb @@ -339,7 +339,7 @@ class << self # Money.new(100, "EUR") #=> # # def initialize( obj, currency = Money.default_currency, options = {}) - # For backwards compatability, if options is not a Hash, treat it as a bank parameter + # For backwards compatibility, if options is not a Hash, treat it as a bank parameter unless options.is_a?(Hash) options = { bank: options } end diff --git a/spec/currency_spec.rb b/spec/currency_spec.rb index 2e01018bbc..51d679a6fc 100644 --- a/spec/currency_spec.rb +++ b/spec/currency_spec.rb @@ -281,7 +281,7 @@ def to_s expect(currency).to eq currency end - it "returns true if the id is equal ignorning case" do + it "returns true if the id is equal ignoring case" do expect(described_class.new(:eur)).to eq described_class.new(:eur) expect(described_class.new(:eur)).to eq described_class.new(:EUR) expect(described_class.new(:eur)).not_to eq described_class.new(:usd) diff --git a/spec/money/arithmetic_spec.rb b/spec/money/arithmetic_spec.rb index a430caa3fc..aa6edb90ff 100644 --- a/spec/money/arithmetic_spec.rb +++ b/spec/money/arithmetic_spec.rb @@ -222,7 +222,7 @@ expect(Money.new(10_00, "USD") + other).to eq Money.new(19_00, "USD") end - it "adds Integer 0 to money and returns the same ammount" do + it "adds Integer 0 to money and returns the same amount" do expect(Money.new(10_00) + 0).to eq Money.new(10_00) end @@ -253,7 +253,7 @@ expect(Money.new(10_00, "USD") - other).to eq Money.new(1_00, "USD") end - it "subtract Integer 0 to money and returns the same ammount" do + it "subtract Integer 0 to money and returns the same amount" do expect(Money.new(10_00) - 0).to eq Money.new(10_00) end