normalize_country 0.3.1 → 0.3.2
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.
- checksums.yaml +4 -4
- data/lib/normalize_country.rb +2 -2
- data/lib/normalize_country/countries/en.yml +45 -3
- data/lib/normalize_country/scanner.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30ed876c982459c41915c52728a3e3a9cd6266f685c9d9a80e7bdfc7ef92bbbe
|
4
|
+
data.tar.gz: ebb4bfcb888387f4184ae7172bd3efcea2cc248bed8f68b42ac8e6670b581a43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a46dfb4a4c49bb1d50f0640e7d217640944f66d7d3a55b30b9b8aee4f24baacf2d889c8b9f60fd15aa823cfb0b5b1520932a7a68e47e734ebfdacd6b8482649
|
7
|
+
data.tar.gz: 9bd44a260b08474c3d29501b51c2136c93ccfafe63249da2c4f99428a1b82a7cad65e0eb33548cdc28b4fdc13ee34b1093ea9ad91363af6fc21601ec19bd6afa
|
data/lib/normalize_country.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
require "yaml"
|
4
4
|
|
5
5
|
module NormalizeCountry
|
6
|
-
VERSION = "0.3.
|
6
|
+
VERSION = "0.3.2"
|
7
7
|
Countries = {}
|
8
8
|
|
9
9
|
class << self
|
@@ -46,7 +46,7 @@ module NormalizeCountry
|
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
|
-
class Country
|
49
|
+
class Country # :nodoc: all
|
50
50
|
def initialize(config)
|
51
51
|
raise ArgumentError, "country config must be a hash" unless Hash === config
|
52
52
|
|
@@ -172,6 +172,8 @@ AW:
|
|
172
172
|
emoji: "\U0001F1E6\U0001F1FC"
|
173
173
|
shortcode: ":flag-aw:"
|
174
174
|
AX:
|
175
|
+
aliases:
|
176
|
+
- Aland Islands
|
175
177
|
alpha2: AX
|
176
178
|
alpha3: ALA
|
177
179
|
fifa:
|
@@ -196,6 +198,7 @@ AZ:
|
|
196
198
|
BA:
|
197
199
|
aliases:
|
198
200
|
- Bosnia-Herzegovina
|
201
|
+
- Bosnia Herzegovina
|
199
202
|
alpha2: BA
|
200
203
|
alpha3: BIH
|
201
204
|
fifa: BIH
|
@@ -299,6 +302,9 @@ BL:
|
|
299
302
|
- Saint Barts
|
300
303
|
- St. Barts
|
301
304
|
- St. Barths
|
305
|
+
- Saint Barthelemy
|
306
|
+
- Saint Barthélemy
|
307
|
+
- St. Barthélemy
|
302
308
|
alpha2: BL
|
303
309
|
alpha3: BLM
|
304
310
|
fifa:
|
@@ -451,10 +457,15 @@ CC:
|
|
451
457
|
shortcode: ":flag-cc:"
|
452
458
|
CD:
|
453
459
|
aliases:
|
460
|
+
- Congo Kinshasa
|
454
461
|
- Congo-Kinshasa
|
455
|
-
- DRC
|
456
|
-
- DR Congo
|
457
462
|
- Congo, The Democratic Republic Of The
|
463
|
+
- Congo, Democratic Republic of
|
464
|
+
- Democratic Republic of Congo
|
465
|
+
- DR Congo
|
466
|
+
- RD Congo
|
467
|
+
- DROC
|
468
|
+
- DRC
|
458
469
|
alpha2: CD
|
459
470
|
alpha3: COD
|
460
471
|
fifa: COD
|
@@ -479,6 +490,7 @@ CF:
|
|
479
490
|
CG:
|
480
491
|
aliases:
|
481
492
|
- Congo-Brazzaville
|
493
|
+
- Congo Brazzaville
|
482
494
|
- Congo Republic
|
483
495
|
- Congo, Republic of the
|
484
496
|
alpha2: CG
|
@@ -503,6 +515,11 @@ CH:
|
|
503
515
|
emoji: "\U0001F1E8\U0001F1ED"
|
504
516
|
shortcode: ":flag-ch:"
|
505
517
|
CI:
|
518
|
+
aliases:
|
519
|
+
- Côte D'Ivoire
|
520
|
+
- Côte D’Ivoire
|
521
|
+
- Cote D'Ivoire
|
522
|
+
- Cote D’Ivoire
|
506
523
|
alpha2: CI
|
507
524
|
alpha3: CIV
|
508
525
|
fifa: CIV
|
@@ -536,6 +553,9 @@ CL:
|
|
536
553
|
emoji: "\U0001F1E8\U0001F1F1"
|
537
554
|
shortcode: ":flag-cl:"
|
538
555
|
CM:
|
556
|
+
aliases:
|
557
|
+
- Cameroun
|
558
|
+
- Cameroon, Republic of
|
539
559
|
alpha2: CM
|
540
560
|
alpha3: CMR
|
541
561
|
fifa: CMR
|
@@ -837,6 +857,9 @@ FM:
|
|
837
857
|
emoji: "\U0001F1EB\U0001F1F2"
|
838
858
|
shortcode: ":flag-fm:"
|
839
859
|
FO:
|
860
|
+
aliases:
|
861
|
+
- Faroes
|
862
|
+
- Faeroes
|
840
863
|
alpha2: FO
|
841
864
|
alpha3: FRO
|
842
865
|
fifa: FRO
|
@@ -1050,6 +1073,9 @@ GU:
|
|
1050
1073
|
emoji: "\U0001F1EC\U0001F1FA"
|
1051
1074
|
shortcode: ":flag-gu:"
|
1052
1075
|
GW:
|
1076
|
+
aliases:
|
1077
|
+
- Guinea Bissau
|
1078
|
+
- Republic of Guinea Bissau
|
1053
1079
|
alpha2: GW
|
1054
1080
|
alpha3: GNB
|
1055
1081
|
fifa: GNB
|
@@ -2147,6 +2173,8 @@ QA:
|
|
2147
2173
|
emoji: "\U0001F1F6\U0001F1E6"
|
2148
2174
|
shortcode: ":flag-qa:"
|
2149
2175
|
RE:
|
2176
|
+
aliases:
|
2177
|
+
- Reunion
|
2150
2178
|
alpha2: RE
|
2151
2179
|
alpha3: REU
|
2152
2180
|
fifa:
|
@@ -2235,6 +2263,12 @@ SC:
|
|
2235
2263
|
emoji: "\U0001F1F8\U0001F1E8"
|
2236
2264
|
shortcode: ":flag-sc:"
|
2237
2265
|
SD:
|
2266
|
+
aliases:
|
2267
|
+
- The Sudan
|
2268
|
+
- The Sudan, Republic of
|
2269
|
+
- Republic of Sudan
|
2270
|
+
- Sudan, Republic of
|
2271
|
+
- Sudan, Republic of the
|
2238
2272
|
alpha2: SD
|
2239
2273
|
alpha3: SDN
|
2240
2274
|
fifa: SDN
|
@@ -2372,7 +2406,10 @@ SR:
|
|
2372
2406
|
shortcode: ":flag-sr:"
|
2373
2407
|
SS:
|
2374
2408
|
aliases:
|
2409
|
+
- South Sudan, Republic of
|
2375
2410
|
- S. Sudan
|
2411
|
+
- Republic of S. Sudan
|
2412
|
+
- S. Sudan, Republic of
|
2376
2413
|
alpha2: SS
|
2377
2414
|
alpha3: SSD
|
2378
2415
|
fifa:
|
@@ -2387,6 +2424,11 @@ ST:
|
|
2387
2424
|
aliases:
|
2388
2425
|
- Democratic Republic of Sao Tome and Principe
|
2389
2426
|
- São Tomé and Príncipe
|
2427
|
+
- Sao Tomé and Príncipe
|
2428
|
+
- Sao Tome and Príncipe
|
2429
|
+
- São Tomé and Principe
|
2430
|
+
- São Tome and Principe
|
2431
|
+
- São Tome and Príncipe
|
2390
2432
|
alpha2: ST
|
2391
2433
|
alpha3: STP
|
2392
2434
|
fifa: STP
|
@@ -2456,7 +2498,7 @@ TC:
|
|
2456
2498
|
iso_name: Turks and Caicos Islands
|
2457
2499
|
numeric: "796"
|
2458
2500
|
official: Turks and Caicos Islands
|
2459
|
-
short: Turks and Caicos
|
2501
|
+
short: Turks and Caicos
|
2460
2502
|
emoji: "\U0001F1F9\U0001F1E8"
|
2461
2503
|
shortcode: ":flag-tc:"
|
2462
2504
|
TD:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: normalize_country
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Skye Shaw
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|