Skip to content

Commit 777cca3

Browse files
committed
Fix some typos
``` codespell **/*.rb *.md -L fils,arry,isnt,zar,befor -w ```
1 parent bea6453 commit 777cca3

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
return `nil` as `Comparable#==` will not rescue exceptions in the next release.
215215
- Fix `Currency` specs for `#exponent` and `#decimal_places` not making assertions.
216216
- Fix a couple of Ruby warnings found in specs.
217-
- Fix `Money#-`,`Money#+` arithmetics for Ruby 2.3+ : check for zero value without using eql? with a Fixnum. (#577)
217+
- Fix `Money#-`,`Money#+` arithmetic for Ruby 2.3+ : check for zero value without using eql? with a Fixnum. (#577)
218218
- Use `Money#decimal_mark` when formatting with `rounded_infinite_precision` rule
219219
set to `true`.
220220
- Replaced meta-defined `thousands_separator` and `decimal_mark` methods with regular methods. (#579)
@@ -261,7 +261,7 @@
261261
- Fix formatting of NGN - show symbol before amount
262262
- Switch default and alternate symbols for RUB currency
263263
- Fix symbol for TRY currency
264-
- 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
264+
- 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
265265
- Add support for the new official symbol for Russian Ruble (RUB) — «₽»
266266

267267
## 6.2.1
@@ -600,7 +600,7 @@ Features
600600
- Added `Money::Bank::Base#exchange_with`.
601601
- Deprecated `Money::Bank::Base#exchange`. Deprecation target set to Money
602602
3.2.0.
603-
- Implented `Money::Bank::VariableExchange`
603+
- Implemented `Money::Bank::VariableExchange`
604604
- Deprecated `Money::VariableExchangeBank`. Deprecation target set to Money
605605
3.2.0.
606606
- Deprecate `Money::SYMBOLS`, `Money::SEPARATORS` and `Money::DELIMITERS`.
@@ -680,7 +680,7 @@ Features
680680
- Added `Money::Bank::Base#exchange_with`.
681681
- Deprecated `Money::Bank::Base#exchange`. Deprecation target set to Money
682682
3.2.0.
683-
- Implented `Money::Bank::VariableExchange`
683+
- Implemented `Money::Bank::VariableExchange`
684684
- Deprecated `Money::VariableExchangeBank`. Deprecation target set to Money
685685
3.2.0.
686686
- Deprecate `Money::SYMBOLS`, `Money::SEPARATORS` and `Money::DELIMITERS`.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ In order to localize formatting you can use `I18n` gem:
504504
Money.locale_backend = :i18n
505505
```
506506

507-
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:
507+
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:
508508

509509
```yml
510510
# config/locale/en.yml

lib/money/money.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ class << self
339339
# Money.new(100, "EUR") #=> #<Money @fractional=100 @currency="EUR">
340340
#
341341
def initialize( obj, currency = Money.default_currency, options = {})
342-
# For backwards compatability, if options is not a Hash, treat it as a bank parameter
342+
# For backwards compatibility, if options is not a Hash, treat it as a bank parameter
343343
unless options.is_a?(Hash)
344344
options = { bank: options }
345345
end

spec/currency_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def to_s
281281
expect(currency).to eq currency
282282
end
283283

284-
it "returns true if the id is equal ignorning case" do
284+
it "returns true if the id is equal ignoring case" do
285285
expect(described_class.new(:eur)).to eq described_class.new(:eur)
286286
expect(described_class.new(:eur)).to eq described_class.new(:EUR)
287287
expect(described_class.new(:eur)).not_to eq described_class.new(:usd)

spec/money/arithmetic_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
expect(Money.new(10_00, "USD") + other).to eq Money.new(19_00, "USD")
223223
end
224224

225-
it "adds Integer 0 to money and returns the same ammount" do
225+
it "adds Integer 0 to money and returns the same amount" do
226226
expect(Money.new(10_00) + 0).to eq Money.new(10_00)
227227
end
228228

@@ -253,7 +253,7 @@
253253
expect(Money.new(10_00, "USD") - other).to eq Money.new(1_00, "USD")
254254
end
255255

256-
it "subtract Integer 0 to money and returns the same ammount" do
256+
it "subtract Integer 0 to money and returns the same amount" do
257257
expect(Money.new(10_00) - 0).to eq Money.new(10_00)
258258
end
259259

0 commit comments

Comments
 (0)