shopify-money 0.13.1 → 0.14.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -3
- data/Gemfile +2 -1
- data/README.md +20 -1
- data/Rakefile +1 -0
- data/bin/console +1 -0
- data/config/currency_historic.yml +152 -0
- data/config/currency_iso.yml +2623 -0
- data/config/currency_non_iso.yml +77 -0
- data/dev.yml +1 -1
- data/lib/money.rb +3 -0
- data/lib/money/allocator.rb +10 -11
- data/lib/money/core_extensions.rb +1 -0
- data/lib/money/currency.rb +1 -0
- data/lib/money/currency/loader.rb +28 -15
- data/lib/money/deprecations.rb +1 -0
- data/lib/money/errors.rb +1 -0
- data/lib/money/helpers.rb +5 -15
- data/lib/money/money.rb +3 -2
- data/lib/money/null_currency.rb +1 -0
- data/lib/money/version.rb +2 -1
- data/lib/money_accessor.rb +1 -0
- data/lib/money_column.rb +1 -0
- data/lib/money_column/active_record_hooks.rb +2 -1
- data/lib/money_column/active_record_type.rb +1 -0
- data/lib/money_column/railtie.rb +1 -0
- data/lib/rubocop/cop/money.rb +3 -0
- data/lib/rubocop/cop/money/missing_currency.rb +75 -0
- data/lib/shopify-money.rb +2 -0
- data/money.gemspec +7 -3
- data/spec/accounting_money_parser_spec.rb +1 -0
- data/spec/allocator_spec.rb +13 -0
- data/spec/core_extensions_spec.rb +2 -1
- data/spec/currency/loader_spec.rb +1 -0
- data/spec/currency_spec.rb +1 -0
- data/spec/helpers_spec.rb +1 -6
- data/spec/money_accessor_spec.rb +1 -0
- data/spec/money_column_spec.rb +1 -0
- data/spec/money_parser_spec.rb +1 -0
- data/spec/money_spec.rb +3 -2
- data/spec/null_currency_spec.rb +1 -0
- data/spec/rubocop/cop/money/missing_currency_spec.rb +108 -0
- data/spec/rubocop_helper.rb +10 -0
- data/spec/schema.rb +1 -0
- data/spec/spec_helper.rb +1 -5
- metadata +19 -25
- data/config/currency_historic.json +0 -157
- data/config/currency_iso.json +0 -2642
- data/config/currency_non_iso.json +0 -82
@@ -1,82 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"jep": {
|
3
|
-
"priority": 100,
|
4
|
-
"iso_code": "JEP",
|
5
|
-
"name": "Jersey Pound",
|
6
|
-
"symbol": "£",
|
7
|
-
"disambiguate_symbol": "JEP",
|
8
|
-
"alternate_symbols": [],
|
9
|
-
"subunit": "Penny",
|
10
|
-
"subunit_to_unit": 100,
|
11
|
-
"symbol_first": true,
|
12
|
-
"html_entity": "£",
|
13
|
-
"decimal_mark": ".",
|
14
|
-
"thousands_separator": ",",
|
15
|
-
"iso_numeric": "",
|
16
|
-
"smallest_denomination": 1
|
17
|
-
},
|
18
|
-
"ggp": {
|
19
|
-
"priority": 100,
|
20
|
-
"iso_code": "GGP",
|
21
|
-
"name": "Guernsey Pound",
|
22
|
-
"symbol": "£",
|
23
|
-
"disambiguate_symbol": "GGP",
|
24
|
-
"alternate_symbols": [],
|
25
|
-
"subunit": "Penny",
|
26
|
-
"subunit_to_unit": 100,
|
27
|
-
"symbol_first": true,
|
28
|
-
"html_entity": "£",
|
29
|
-
"decimal_mark": ".",
|
30
|
-
"thousands_separator": ",",
|
31
|
-
"iso_numeric": "",
|
32
|
-
"smallest_denomination": 1
|
33
|
-
},
|
34
|
-
"imp": {
|
35
|
-
"priority": 100,
|
36
|
-
"iso_code": "IMP",
|
37
|
-
"name": "Isle of Man Pound",
|
38
|
-
"symbol": "£",
|
39
|
-
"disambiguate_symbol": "IMP",
|
40
|
-
"alternate_symbols": ["M£"],
|
41
|
-
"subunit": "Penny",
|
42
|
-
"subunit_to_unit": 100,
|
43
|
-
"symbol_first": true,
|
44
|
-
"html_entity": "£",
|
45
|
-
"decimal_mark": ".",
|
46
|
-
"thousands_separator": ",",
|
47
|
-
"iso_numeric": "",
|
48
|
-
"smallest_denomination": 1
|
49
|
-
},
|
50
|
-
"xfu": {
|
51
|
-
"priority": 100,
|
52
|
-
"iso_code": "XFU",
|
53
|
-
"name": "UIC Franc",
|
54
|
-
"symbol": "",
|
55
|
-
"disambiguate_symbol": "XFU",
|
56
|
-
"alternate_symbols": [],
|
57
|
-
"subunit": "",
|
58
|
-
"subunit_to_unit": 100,
|
59
|
-
"symbol_first": true,
|
60
|
-
"html_entity": "",
|
61
|
-
"decimal_mark": ".",
|
62
|
-
"thousands_separator": ",",
|
63
|
-
"iso_numeric": "",
|
64
|
-
"smallest_denomination": ""
|
65
|
-
},
|
66
|
-
"gbx": {
|
67
|
-
"priority": 100,
|
68
|
-
"iso_code": "GBX",
|
69
|
-
"name": "British Penny",
|
70
|
-
"symbol": "",
|
71
|
-
"disambiguate_symbol": "GBX",
|
72
|
-
"alternate_symbols": [],
|
73
|
-
"subunit": "",
|
74
|
-
"subunit_to_unit": 1,
|
75
|
-
"symbol_first": true,
|
76
|
-
"html_entity": "",
|
77
|
-
"decimal_mark": ".",
|
78
|
-
"thousands_separator": ",",
|
79
|
-
"iso_numeric": "",
|
80
|
-
"smallest_denomination": 1
|
81
|
-
}
|
82
|
-
}
|