Skip to content

Commit 8b4d5af

Browse files
committed
Fix some typos
``` codespell **/*.rb *.md -L fils,arry,isnt,zar,befor -w ```
1 parent 73b84b5 commit 8b4d5af

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
@@ -213,7 +213,7 @@
213213
return `nil` as `Comparable#==` will not rescue exceptions in the next release.
214214
- Fix `Currency` specs for `#exponent` and `#decimal_places` not making assertions.
215215
- Fix a couple of Ruby warnings found in specs.
216-
- Fix `Money#-`,`Money#+` arithmetics for Ruby 2.3+ : check for zero value without using eql? with a Fixnum. (#577)
216+
- Fix `Money#-`,`Money#+` arithmetic for Ruby 2.3+ : check for zero value without using eql? with a Fixnum. (#577)
217217
- Use `Money#decimal_mark` when formatting with `rounded_infinite_precision` rule
218218
set to `true`.
219219
- Replaced meta-defined `thousands_separator` and `decimal_mark` methods with regular methods. (#579)
@@ -260,7 +260,7 @@
260260
- Fix formatting of NGN - show symbol before amount
261261
- Switch default and alternate symbols for RUB currency
262262
- Fix symbol for TRY currency
263-
- 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
263+
- 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
264264
- Add support for the new official symbol for Russian Ruble (RUB) — «₽»
265265

266266
## 6.2.1
@@ -599,7 +599,7 @@ Features
599599
- Added `Money::Bank::Base#exchange_with`.
600600
- Deprecated `Money::Bank::Base#exchange`. Deprecation target set to Money
601601
3.2.0.
602-
- Implented `Money::Bank::VariableExchange`
602+
- Implemented `Money::Bank::VariableExchange`
603603
- Deprecated `Money::VariableExchangeBank`. Deprecation target set to Money
604604
3.2.0.
605605
- Deprecate `Money::SYMBOLS`, `Money::SEPARATORS` and `Money::DELIMITERS`.
@@ -679,7 +679,7 @@ Features
679679
- Added `Money::Bank::Base#exchange_with`.
680680
- Deprecated `Money::Bank::Base#exchange`. Deprecation target set to Money
681681
3.2.0.
682-
- Implented `Money::Bank::VariableExchange`
682+
- Implemented `Money::Bank::VariableExchange`
683683
- Deprecated `Money::VariableExchangeBank`. Deprecation target set to Money
684684
3.2.0.
685685
- Deprecate `Money::SYMBOLS`, `Money::SEPARATORS` and `Money::DELIMITERS`.

README.md

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

509-
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:
509+
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:
510510

511511
```yml
512512
# 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)