Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some typos #1094

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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`.
Expand Down Expand Up @@ -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`.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/money/money.rb
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ class << self
# Money.new(100, "EUR") #=> #<Money @fractional=100 @currency="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
Expand Down
2 changes: 1 addition & 1 deletion spec/currency_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions spec/money/arithmetic_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down