money 6.13.3 → 6.13.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f37a415a5295b884c2d1c5c55a94d1bb68856a01
4
- data.tar.gz: efea099f7b00a66f8ccda8099426ba16edd8b1f0
3
+ metadata.gz: ca21de22dba51f2c9b00ca1301f5d21ea936767a
4
+ data.tar.gz: 1cfb4f822e6f7a948f8ff31955422372658c0394
5
5
  SHA512:
6
- metadata.gz: 60c02cb6a321987bacea58784b5707337ff09dcf793189a9ffee28f6eee73fd57b5bedd49948a08215c7d6a7e9e124d713a33cf04fc55cc77b57b749545250c8
7
- data.tar.gz: 17120c61dd889fd9de0f5c498497cedb4aa4b7b4f27c477e6069b6cdc1017b3fb77453d761c34a7fd07baef08295d5ce979a094344a888c3219f0d698733869c
6
+ metadata.gz: 207a714b183381a90c2c46f1b4cef2a9246e5a8be0f0c30a088b4d71c98fbdc814e356cb3dac8d2301eefd7d18cf7f70914f6ef9e314975039edbe5bc2b2a7c8
7
+ data.tar.gz: 8dca4236991ae835e822cd09bc4e0a6fbeb0b2fee52bb85be3dbb38cfa07f7fa60bbde94045b9a643071435126954324da1aa00065af9ab79f2cd961ee50b7d9
@@ -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.roudning_mode with a block
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 you own store implementation, ie. for storing and retrieving rates off a database, file, cache, etc.
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. ie. adding the same rate must not produce duplicates.
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
  #
@@ -2594,12 +2594,12 @@
2594
2594
  "priority": 100,
2595
2595
  "iso_code": "ZMW",
2596
2596
  "name": "Zambian Kwacha",
2597
- "symbol": "ZK",
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": false,
2602
+ "symbol_first": true,
2603
2603
  "html_entity": "",
2604
2604
  "decimal_mark": ".",
2605
2605
  "thousands_separator": ",",
@@ -38,6 +38,7 @@ class Money
38
38
  rules = {}
39
39
  elsif rules.size == 1
40
40
  rules = rules.pop
41
+ rules = rules.dup if rules.is_a?(Hash)
41
42
 
42
43
  if rules.is_a?(Symbol)
43
44
  warn '[DEPRECATION] Use Hash when passing rules to Money#format.'
@@ -1,3 +1,3 @@
1
1
  class Money
2
- VERSION = '6.13.3'
2
+ VERSION = '6.13.4'
3
3
  end
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.3
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-04-14 00:00:00.000000000 Z
12
+ date: 2019-06-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n