money 6.13.3 → 6.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/README.md +2 -2
- data/config/currency_iso.json +2 -2
- data/lib/money/money/formatting_rules.rb +1 -0
- data/lib/money/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca21de22dba51f2c9b00ca1301f5d21ea936767a
|
4
|
+
data.tar.gz: 1cfb4f822e6f7a948f8ff31955422372658c0394
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 207a714b183381a90c2c46f1b4cef2a9246e5a8be0f0c30a088b4d71c98fbdc814e356cb3dac8d2301eefd7d18cf7f70914f6ef9e314975039edbe5bc2b2a7c8
|
7
|
+
data.tar.gz: 8dca4236991ae835e822cd09bc4e0a6fbeb0b2fee52bb85be3dbb38cfa07f7fa60bbde94045b9a643071435126954324da1aa00065af9ab79f2cd961ee50b7d9
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 6.13.4
|
4
|
+
- Update currency config for Zambian Kwacha (ZMW)
|
5
|
+
- Do not modify options passed to FormattingRules
|
6
|
+
|
3
7
|
## 6.13.3
|
4
8
|
- Remove specs from the packaged gem
|
5
9
|
- Use Currency::Loader directly without extending
|
6
|
-
- Add Money.with_rounding_mode as a replacement for calling Money.
|
10
|
+
- Add Money.with_rounding_mode as a replacement for calling Money.rounding_mode with a block
|
7
11
|
- Fix currency search for two digit ISO numbers
|
8
12
|
- Add description to TypeError raised by +/- operations
|
9
13
|
|
data/README.md
CHANGED
@@ -253,7 +253,7 @@ The default bank is initialized with an in-memory store for exchange rates.
|
|
253
253
|
Money.default_bank = Money::Bank::VariableExchange.new(Money::RatesStore::Memory.new)
|
254
254
|
```
|
255
255
|
|
256
|
-
You can pass
|
256
|
+
You can pass your own store implementation, i.e. for storing and retrieving rates off a database, file, cache, etc.
|
257
257
|
|
258
258
|
```ruby
|
259
259
|
Money.default_bank = Money::Bank::VariableExchange.new(MyCustomStore.new)
|
@@ -270,7 +270,7 @@ Stores must implement the following interface:
|
|
270
270
|
# @return [Numeric] rate.
|
271
271
|
def add_rate(iso_from, iso_to, rate); end
|
272
272
|
|
273
|
-
# Get rate. Must be idempotent.
|
273
|
+
# Get rate. Must be idempotent. i.e. adding the same rate must not produce duplicates.
|
274
274
|
# @param [String] iso_from Currency ISO code. ex. 'USD'
|
275
275
|
# @param [String] iso_to Currency ISO code. ex. 'CAD'
|
276
276
|
#
|
data/config/currency_iso.json
CHANGED
@@ -2594,12 +2594,12 @@
|
|
2594
2594
|
"priority": 100,
|
2595
2595
|
"iso_code": "ZMW",
|
2596
2596
|
"name": "Zambian Kwacha",
|
2597
|
-
"symbol": "
|
2597
|
+
"symbol": "K",
|
2598
2598
|
"disambiguate_symbol": "ZMW",
|
2599
2599
|
"alternate_symbols": [],
|
2600
2600
|
"subunit": "Ngwee",
|
2601
2601
|
"subunit_to_unit": 100,
|
2602
|
-
"symbol_first":
|
2602
|
+
"symbol_first": true,
|
2603
2603
|
"html_entity": "",
|
2604
2604
|
"decimal_mark": ".",
|
2605
2605
|
"thousands_separator": ",",
|
data/lib/money/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: money
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.13.
|
4
|
+
version: 6.13.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Emmons
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-06-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n
|