shopify-money 0.13.0 → 0.14.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -3
  3. data/Gemfile +2 -1
  4. data/README.md +20 -1
  5. data/Rakefile +1 -0
  6. data/bin/console +1 -0
  7. data/config/currency_historic.yml +152 -0
  8. data/config/currency_iso.yml +2623 -0
  9. data/config/currency_non_iso.yml +77 -0
  10. data/dev.yml +1 -1
  11. data/lib/money.rb +3 -0
  12. data/lib/money/allocator.rb +10 -11
  13. data/lib/money/core_extensions.rb +1 -0
  14. data/lib/money/currency.rb +1 -0
  15. data/lib/money/currency/loader.rb +28 -15
  16. data/lib/money/deprecations.rb +1 -0
  17. data/lib/money/errors.rb +1 -0
  18. data/lib/money/helpers.rb +5 -15
  19. data/lib/money/money.rb +3 -2
  20. data/lib/money/null_currency.rb +1 -0
  21. data/lib/money/version.rb +2 -1
  22. data/lib/money_accessor.rb +1 -0
  23. data/lib/money_column.rb +1 -0
  24. data/lib/money_column/active_record_hooks.rb +2 -1
  25. data/lib/money_column/active_record_type.rb +1 -0
  26. data/lib/money_column/railtie.rb +1 -0
  27. data/lib/rubocop/cop/money.rb +3 -0
  28. data/lib/rubocop/cop/money/missing_currency.rb +75 -0
  29. data/lib/shopify-money.rb +2 -0
  30. data/money.gemspec +7 -3
  31. data/spec/accounting_money_parser_spec.rb +1 -0
  32. data/spec/allocator_spec.rb +13 -0
  33. data/spec/core_extensions_spec.rb +2 -1
  34. data/spec/currency/loader_spec.rb +1 -0
  35. data/spec/currency_spec.rb +1 -0
  36. data/spec/helpers_spec.rb +1 -6
  37. data/spec/money_accessor_spec.rb +1 -0
  38. data/spec/money_column_spec.rb +1 -0
  39. data/spec/money_parser_spec.rb +1 -0
  40. data/spec/money_spec.rb +3 -2
  41. data/spec/null_currency_spec.rb +1 -0
  42. data/spec/rubocop/cop/money/missing_currency_spec.rb +108 -0
  43. data/spec/rubocop_helper.rb +10 -0
  44. data/spec/schema.rb +1 -0
  45. data/spec/spec_helper.rb +1 -5
  46. metadata +20 -27
  47. data/config/currency_historic.json +0 -157
  48. data/config/currency_iso.json +0 -2642
  49. 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
- }