addressing 0.4.0 → 0.5.0

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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +2 -2
  4. data/data/country/bn-IN.json +17 -17
  5. data/data/country/bn.json +16 -16
  6. data/data/country/ca.json +6 -6
  7. data/data/country/chr.json +258 -0
  8. data/data/country/da.json +2 -2
  9. data/data/country/de-CH.json +1 -1
  10. data/data/country/dsb.json +258 -0
  11. data/data/country/el.json +1 -1
  12. data/data/country/en-001.json +7 -7
  13. data/data/country/en-AU.json +258 -0
  14. data/data/country/en-CA.json +3 -3
  15. data/data/country/en-MV.json +7 -7
  16. data/data/country/gd.json +258 -0
  17. data/data/country/he.json +2 -2
  18. data/data/country/hi-Latn.json +6 -6
  19. data/data/country/hi.json +3 -3
  20. data/data/country/hr.json +2 -2
  21. data/data/country/hsb.json +258 -0
  22. data/data/country/ig.json +258 -0
  23. data/data/country/it.json +5 -5
  24. data/data/country/kk.json +4 -4
  25. data/data/country/ko-KP.json +1 -1
  26. data/data/country/ko.json +1 -1
  27. data/data/country/kok.json +258 -0
  28. data/data/country/mk.json +2 -2
  29. data/data/country/mr.json +2 -2
  30. data/data/country/ms.json +1 -1
  31. data/data/country/nn.json +1 -1
  32. data/data/country/pcm.json +258 -0
  33. data/data/country/pt-PT.json +1 -1
  34. data/data/country/qu.json +258 -0
  35. data/data/country/ru-UA.json +6 -6
  36. data/data/country/ru.json +7 -7
  37. data/data/country/sr-Cyrl-BA.json +17 -17
  38. data/data/country/sr-Latn-BA.json +17 -17
  39. data/data/country/sv.json +1 -1
  40. data/data/country/sw-KE.json +13 -13
  41. data/data/country/ta.json +1 -1
  42. data/data/country/uk.json +1 -1
  43. data/data/country/yue-Hans.json +258 -0
  44. data/data/country/zh-Hant-HK.json +2 -2
  45. data/lib/addressing/country.rb +17 -16
  46. data/lib/addressing/version.rb +1 -1
  47. metadata +12 -2
@@ -7,19 +7,20 @@ module Addressing
7
7
 
8
8
  @@available_locales = [
9
9
  "af", "am", "ar", "ar-LY", "ar-SA", "as", "az", "be", "bg", "bn",
10
- "bn-IN", "bs", "ca", "cs", "cy", "da", "de", "de-AT", "de-CH", "el",
11
- "en", "en-001", "en-CA", "en-GB", "en-MV", "es", "es-419", "es-AR",
12
- "es-BO", "es-CL", "es-CO", "es-CR", "es-DO", "es-EC", "es-GT", "es-HN",
13
- "es-MX", "es-NI", "es-PA", "es-PE", "es-PR", "es-PY", "es-SV", "es-US",
14
- "es-VE", "et", "eu", "fa", "fa-AF", "fi", "fil", "fr", "fr-BE", "fr-CA",
15
- "ga", "gl", "gu", "he", "hi", "hi-Latn", "hr", "hu", "hy", "id", "is",
16
- "it", "ja", "ka", "kk", "km", "ko", "ko-KP", "ky", "lo", "lt", "lv",
17
- "mk", "ml", "mn", "mr", "ms", "my", "ne", "nl", "nn", "no", "or", "pa",
18
- "pl", "ps", "ps-PK", "pt", "pt-PT", "ro", "ro-MD", "ru", "ru-UA", "sd",
19
- "si", "sk", "sl", "so", "sq", "sr", "sr-Cyrl-BA", "sr-Cyrl-ME",
20
- "sr-Cyrl-XK", "sr-Latn", "sr-Latn-BA", "sr-Latn-ME", "sr-Latn-XK", "sv",
21
- "sw", "sw-CD", "sw-KE", "ta", "te", "th", "tk", "tr", "uk", "ur",
22
- "ur-IN", "uz", "vi", "yue", "zh", "zh-Hant", "zh-Hant-HK", "zu"
10
+ "bn-IN", "bs", "ca", "chr", "cs", "cy", "da", "de", "de-AT", "de-CH",
11
+ "dsb", "el", "en", "en-001", "en-AU", "en-CA", "en-MV", "es", "es-419",
12
+ "es-AR", "es-BO", "es-CL", "es-CO", "es-CR", "es-DO", "es-EC", "es-GT",
13
+ "es-HN", "es-MX", "es-NI", "es-PA", "es-PE", "es-PR", "es-PY", "es-SV",
14
+ "es-US", "es-VE", "et", "eu", "fa", "fa-AF", "fi", "fil", "fr",
15
+ "fr-BE", "fr-CA", "ga", "gd", "gl", "gu", "he", "hi", "hi-Latn", "hr",
16
+ "hsb", "hu", "hy", "id", "ig", "is", "it", "ja", "ka", "kk", "km",
17
+ "ko", "ko-KP", "kok", "ky", "lo", "lt", "lv", "mk", "ml", "mn", "mr",
18
+ "ms", "my", "ne", "nl", "nn", "no", "or", "pa", "pcm", "pl", "ps",
19
+ "ps-PK", "pt", "pt-PT", "qu", "ro", "ro-MD", "ru", "ru-UA", "si", "sk",
20
+ "sl", "so", "sq", "sr", "sr-Cyrl-BA", "sr-Cyrl-ME", "sr-Cyrl-XK",
21
+ "sr-Latn", "sr-Latn-BA", "sr-Latn-ME", "sr-Latn-XK", "sv", "sw",
22
+ "sw-CD", "sw-KE", "ta", "te", "th", "tk", "tr", "uk", "ur", "ur-IN",
23
+ "uz", "vi", "yue", "yue-Hans", "zh", "zh-Hant", "zh-Hant-HK", "zu",
23
24
  ]
24
25
 
25
26
  def get(country_code, locale = "en", fallback_locale = "en")
@@ -185,7 +186,7 @@ module Addressing
185
186
  "HK" => ["HKG", "344", "HKD"],
186
187
  "HM" => ["HMD", "334", "AUD"],
187
188
  "HN" => ["HND", "340", "HNL"],
188
- "HR" => ["HRV", "191", "HRK"],
189
+ "HR" => ["HRV", "191", "EUR"],
189
190
  "HT" => ["HTI", "332", "USD"],
190
191
  "HU" => ["HUN", "348", "HUF"],
191
192
  "IC" => [nil, nil, "EUR"],
@@ -291,7 +292,7 @@ module Addressing
291
292
  "SI" => ["SVN", "705", "EUR"],
292
293
  "SJ" => ["SJM", "744", "NOK"],
293
294
  "SK" => ["SVK", "703", "EUR"],
294
- "SL" => ["SLE", "694", "SLL"],
295
+ "SL" => ["SLE", "694", "SLE"],
295
296
  "SM" => ["SMR", "674", "EUR"],
296
297
  "SN" => ["SEN", "686", "XOF"],
297
298
  "SO" => ["SOM", "706", "SOS"],
@@ -365,7 +366,7 @@ module Addressing
365
366
  # Gets the timezones.
366
367
  #
367
368
  # Note that a country can span more than one timezone.
368
- # For example, Germany has ['Europe/Berlin', 'Europe/Busingen'].
369
+ # For example, Germany has ["Europe/Berlin", "Europe/Busingen"].
369
370
  def timezones
370
371
  @timezones ||= TZInfo::Country.get(@country_code).zone_identifiers
371
372
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Addressing
4
- VERSION = "0.4.0"
4
+ VERSION = "0.5.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: addressing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robin van der Vleuten
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-13 00:00:00.000000000 Z
11
+ date: 2023-02-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: robinvdvleuten@gmail.com
@@ -34,14 +34,17 @@ files:
34
34
  - data/country/bn.json
35
35
  - data/country/bs.json
36
36
  - data/country/ca.json
37
+ - data/country/chr.json
37
38
  - data/country/cs.json
38
39
  - data/country/cy.json
39
40
  - data/country/da.json
40
41
  - data/country/de-AT.json
41
42
  - data/country/de-CH.json
42
43
  - data/country/de.json
44
+ - data/country/dsb.json
43
45
  - data/country/el.json
44
46
  - data/country/en-001.json
47
+ - data/country/en-AU.json
45
48
  - data/country/en-CA.json
46
49
  - data/country/en-GB.json
47
50
  - data/country/en-MV.json
@@ -76,15 +79,18 @@ files:
76
79
  - data/country/fr-CA.json
77
80
  - data/country/fr.json
78
81
  - data/country/ga.json
82
+ - data/country/gd.json
79
83
  - data/country/gl.json
80
84
  - data/country/gu.json
81
85
  - data/country/he.json
82
86
  - data/country/hi-Latn.json
83
87
  - data/country/hi.json
84
88
  - data/country/hr.json
89
+ - data/country/hsb.json
85
90
  - data/country/hu.json
86
91
  - data/country/hy.json
87
92
  - data/country/id.json
93
+ - data/country/ig.json
88
94
  - data/country/is.json
89
95
  - data/country/it.json
90
96
  - data/country/ja.json
@@ -93,6 +99,7 @@ files:
93
99
  - data/country/km.json
94
100
  - data/country/ko-KP.json
95
101
  - data/country/ko.json
102
+ - data/country/kok.json
96
103
  - data/country/ky.json
97
104
  - data/country/lo.json
98
105
  - data/country/lt.json
@@ -109,11 +116,13 @@ files:
109
116
  - data/country/no.json
110
117
  - data/country/or.json
111
118
  - data/country/pa.json
119
+ - data/country/pcm.json
112
120
  - data/country/pl.json
113
121
  - data/country/ps-PK.json
114
122
  - data/country/ps.json
115
123
  - data/country/pt-PT.json
116
124
  - data/country/pt.json
125
+ - data/country/qu.json
117
126
  - data/country/ro-MD.json
118
127
  - data/country/ro.json
119
128
  - data/country/ru-UA.json
@@ -146,6 +155,7 @@ files:
146
155
  - data/country/ur.json
147
156
  - data/country/uz.json
148
157
  - data/country/vi.json
158
+ - data/country/yue-Hans.json
149
159
  - data/country/yue.json
150
160
  - data/country/zh-Hant-HK.json
151
161
  - data/country/zh-Hant.json