worldwide 0.6.7 → 0.6.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/data/cldr/locales/zh/territories.yml +2 -2
- data/lib/worldwide/field.rb +6 -0
- data/lib/worldwide/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc21061379ab6f17ea3528d1f19b83f81275c8f9b5eb3c89d4f652f49faa2367
|
4
|
+
data.tar.gz: 5d5d8fd0716a26b5d856432950077a2722efc72daeddef4d128a9f346b861286
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a2279dad4234b6f6ee3c69db576660b37a24ae9a63852b13322cb9d7a33d3650f9df3ef5fab199eb42e03694b7967014b0203582ac40aa38c99665c63630b87
|
7
|
+
data.tar.gz: 3d897410ee24c31a9b4a58cb1e6888f82e67fa67732e7073f1f2863de8c5b27c27877561651ed196e1d0b17a646ecaae6f9b416716e9e145e682961adf1ebe8d
|
data/CHANGELOG.md
CHANGED
@@ -31,6 +31,11 @@ nil.
|
|
31
31
|
|
32
32
|
---
|
33
33
|
|
34
|
+
[0.6.8] - 2024-01-31
|
35
|
+
|
36
|
+
- Prefer "SAR" over "SAR China" in Chinese-language names for regions `HK` and `MO`. [#79](https://github.com/Shopify/worldwide/pull/79).
|
37
|
+
- Add Worldwide::Field.valid_key? method. [#80](https://github.com/Shopify/worldwide/pull/80)
|
38
|
+
|
34
39
|
[0.6.7] - 2024-01-30
|
35
40
|
|
36
41
|
- Patch some territory names (BQ, NL, TF, TR) [#77](https://github.com/Shopify/worldwide/pull/77)
|
data/Gemfile.lock
CHANGED
@@ -132,7 +132,7 @@ zh:
|
|
132
132
|
GU: 关岛
|
133
133
|
GW: 几内亚比绍
|
134
134
|
GY: 圭亚那
|
135
|
-
HK:
|
135
|
+
HK: 香港特别行政区
|
136
136
|
HM: 赫德岛和麦克唐纳群岛
|
137
137
|
HN: 洪都拉斯
|
138
138
|
HR: 克罗地亚
|
@@ -186,7 +186,7 @@ zh:
|
|
186
186
|
ML: 马里
|
187
187
|
MM: 缅甸
|
188
188
|
MN: 蒙古
|
189
|
-
MO:
|
189
|
+
MO: 澳门特别行政区
|
190
190
|
MP: 北马里亚纳群岛
|
191
191
|
MQ: 马提尼克
|
192
192
|
MR: 毛里塔尼亚
|
data/lib/worldwide/field.rb
CHANGED
@@ -20,6 +20,12 @@ module Worldwide
|
|
20
20
|
:address,
|
21
21
|
]
|
22
22
|
|
23
|
+
class << self
|
24
|
+
def valid_key?(key)
|
25
|
+
VALID_KEYS.include?(key.to_sym)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
23
29
|
def initialize(country_code:, field_key:)
|
24
30
|
@country_code = country_code.upcase.to_sym
|
25
31
|
@field_key = field_key.downcase.to_sym
|
data/lib/worldwide/version.rb
CHANGED