countries 8.0.3 → 8.0.4
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/countries/cache/countries.json +1 -1
- data/lib/countries/configuration.rb +1 -8
- data/lib/countries/data/countries/AE.yaml +3 -0
- data/lib/countries/data/countries/AI.yaml +1 -0
- data/lib/countries/data/countries/AQ.yaml +10 -0
- data/lib/countries/data/countries/AT.yaml +1 -0
- data/lib/countries/data/countries/AU.yaml +3 -0
- data/lib/countries/data/countries/AX.yaml +6 -0
- data/lib/countries/data/countries/BE.yaml +1 -0
- data/lib/countries/data/countries/BG.yaml +2 -0
- data/lib/countries/data/countries/BL.yaml +5 -0
- data/lib/countries/data/countries/BR.yaml +2 -0
- data/lib/countries/data/countries/BS.yaml +1 -0
- data/lib/countries/data/countries/BV.yaml +10 -0
- data/lib/countries/data/countries/CC.yaml +1 -0
- data/lib/countries/data/countries/CD.yaml +1 -1
- data/lib/countries/data/countries/CH.yaml +2 -0
- data/lib/countries/data/countries/CL.yaml +3 -0
- data/lib/countries/data/countries/CW.yaml +1 -0
- data/lib/countries/data/countries/CX.yaml +3 -0
- data/lib/countries/data/countries/CY.yaml +2 -0
- data/lib/countries/data/countries/CZ.yaml +2 -0
- data/lib/countries/data/countries/DE.yaml +2 -0
- data/lib/countries/data/countries/DK.yaml +3 -0
- data/lib/countries/data/countries/EE.yaml +2 -0
- data/lib/countries/data/countries/EH.yaml +5 -0
- data/lib/countries/data/countries/ES.yaml +1 -0
- data/lib/countries/data/countries/FI.yaml +2 -0
- data/lib/countries/data/countries/FK.yaml +2 -0
- data/lib/countries/data/countries/FR.yaml +1 -0
- data/lib/countries/data/countries/GB.yaml +3 -0
- data/lib/countries/data/countries/GF.yaml +1 -0
- data/lib/countries/data/countries/GG.yaml +5 -0
- data/lib/countries/data/countries/GI.yaml +1 -0
- data/lib/countries/data/countries/GL.yaml +1 -0
- data/lib/countries/data/countries/GM.yaml +1 -0
- data/lib/countries/data/countries/GP.yaml +1 -0
- data/lib/countries/data/countries/GR.yaml +2 -0
- data/lib/countries/data/countries/GS.yaml +5 -0
- data/lib/countries/data/countries/HM.yaml +7 -0
- data/lib/countries/data/countries/HR.yaml +2 -0
- data/lib/countries/data/countries/HU.yaml +2 -0
- data/lib/countries/data/countries/IL.yaml +3 -0
- data/lib/countries/data/countries/IM.yaml +5 -0
- data/lib/countries/data/countries/IO.yaml +5 -0
- data/lib/countries/data/countries/IS.yaml +2 -0
- data/lib/countries/data/countries/IT.yaml +1 -0
- data/lib/countries/data/countries/JE.yaml +5 -0
- data/lib/countries/data/countries/KP.yaml +1 -0
- data/lib/countries/data/countries/LT.yaml +2 -0
- data/lib/countries/data/countries/LV.yaml +2 -0
- data/lib/countries/data/countries/MD.yaml +1 -0
- data/lib/countries/data/countries/MF.yaml +5 -0
- data/lib/countries/data/countries/MO.yaml +1 -0
- data/lib/countries/data/countries/MP.yaml +1 -0
- data/lib/countries/data/countries/MQ.yaml +1 -0
- data/lib/countries/data/countries/MS.yaml +1 -0
- data/lib/countries/data/countries/MT.yaml +2 -0
- data/lib/countries/data/countries/MX.yaml +3 -0
- data/lib/countries/data/countries/NC.yaml +1 -0
- data/lib/countries/data/countries/NF.yaml +1 -0
- data/lib/countries/data/countries/NG.yaml +3 -0
- data/lib/countries/data/countries/NL.yaml +2 -0
- data/lib/countries/data/countries/NO.yaml +3 -0
- data/lib/countries/data/countries/NU.yaml +1 -0
- data/lib/countries/data/countries/NZ.yaml +2 -0
- data/lib/countries/data/countries/PF.yaml +1 -0
- data/lib/countries/data/countries/PH.yaml +3 -0
- data/lib/countries/data/countries/PL.yaml +2 -0
- data/lib/countries/data/countries/PM.yaml +1 -0
- data/lib/countries/data/countries/PN.yaml +2 -0
- data/lib/countries/data/countries/PT.yaml +1 -0
- data/lib/countries/data/countries/RE.yaml +1 -0
- data/lib/countries/data/countries/RO.yaml +2 -0
- data/lib/countries/data/countries/RU.yaml +1 -0
- data/lib/countries/data/countries/SA.yaml +3 -0
- data/lib/countries/data/countries/SE.yaml +2 -0
- data/lib/countries/data/countries/SH.yaml +1 -0
- data/lib/countries/data/countries/SI.yaml +2 -0
- data/lib/countries/data/countries/SJ.yaml +1 -0
- data/lib/countries/data/countries/SK.yaml +1 -0
- data/lib/countries/data/countries/SS.yaml +1 -0
- data/lib/countries/data/countries/SX.yaml +1 -0
- data/lib/countries/data/countries/TC.yaml +1 -0
- data/lib/countries/data/countries/TF.yaml +5 -0
- data/lib/countries/data/countries/TH.yaml +2 -0
- data/lib/countries/data/countries/TK.yaml +1 -0
- data/lib/countries/data/countries/TW.yaml +1 -0
- data/lib/countries/data/countries/UA.yaml +2 -0
- data/lib/countries/data/countries/UM.yaml +6 -0
- data/lib/countries/data/countries/US.yaml +1 -0
- data/lib/countries/data/countries/VA.yaml +2 -0
- data/lib/countries/data/countries/WF.yaml +1 -0
- data/lib/countries/data/countries/YT.yaml +1 -0
- data/lib/countries/version.rb +1 -1
- metadata +2 -3
@@ -20,6 +20,7 @@ module ISO3166
|
|
20
20
|
|
21
21
|
class Configuration
|
22
22
|
attr_accessor :loaded_locales
|
23
|
+
attr_writer :locales
|
23
24
|
|
24
25
|
def initialize
|
25
26
|
@loaded_locales = []
|
@@ -29,14 +30,6 @@ module ISO3166
|
|
29
30
|
@locales ||= default_locales
|
30
31
|
end
|
31
32
|
|
32
|
-
def locales=(value)
|
33
|
-
if value.is_a?(Array)
|
34
|
-
@locales = value.map(&:to_sym).uniq
|
35
|
-
else
|
36
|
-
raise ArgumentError, "Expected an Array of locales, got #{value.class}"
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
33
|
# Enables the integration with the {Money}[https://github.com/RubyMoney/money] gem
|
41
34
|
#
|
42
35
|
# Please note that it requires you to add "money" gem to your gemfile.
|
@@ -21,11 +21,21 @@ AQ:
|
|
21
21
|
southwest:
|
22
22
|
lat: -90
|
23
23
|
lng: -180
|
24
|
+
international_prefix: ''
|
25
|
+
ioc:
|
24
26
|
iso_long_name: Antarctica
|
25
27
|
iso_short_name: Antarctica
|
28
|
+
languages_official: []
|
29
|
+
languages_spoken: []
|
30
|
+
national_destination_code_lengths: []
|
31
|
+
national_number_lengths: []
|
32
|
+
national_prefix: ''
|
33
|
+
nationality: ''
|
26
34
|
number: '010'
|
27
35
|
postal_code: false
|
36
|
+
region: ''
|
28
37
|
start_of_week: monday
|
38
|
+
subregion: ''
|
29
39
|
un_locode: AQ
|
30
40
|
un_member: false
|
31
41
|
unofficial_names:
|
@@ -8,6 +8,7 @@ AX:
|
|
8
8
|
distance_unit: KM
|
9
9
|
eu_member: true
|
10
10
|
euvat_member: false
|
11
|
+
gec:
|
11
12
|
geo:
|
12
13
|
latitude: 60.1785247
|
13
14
|
longitude: 19.9156105
|
@@ -22,12 +23,17 @@ AX:
|
|
22
23
|
southwest:
|
23
24
|
lat: 59.6872001
|
24
25
|
lng: 19.2095998
|
26
|
+
international_prefix: ''
|
27
|
+
ioc:
|
25
28
|
iso_long_name: Åland
|
26
29
|
iso_short_name: Åland Islands
|
27
30
|
languages_official:
|
28
31
|
- sv
|
29
32
|
languages_spoken:
|
30
33
|
- sv
|
34
|
+
national_destination_code_lengths: []
|
35
|
+
national_number_lengths: []
|
36
|
+
national_prefix: ''
|
31
37
|
nationality: Swedish
|
32
38
|
number: '248'
|
33
39
|
postal_code: true
|
@@ -21,12 +21,17 @@ BL:
|
|
21
21
|
southwest:
|
22
22
|
lat: 17.8663
|
23
23
|
lng: -62.9559999
|
24
|
+
international_prefix: ''
|
25
|
+
ioc:
|
24
26
|
iso_long_name: The Collectivity of Saint-Barthélemy
|
25
27
|
iso_short_name: Saint Barthélemy
|
26
28
|
languages_official:
|
27
29
|
- fr
|
28
30
|
languages_spoken:
|
29
31
|
- fr
|
32
|
+
national_destination_code_lengths: []
|
33
|
+
national_number_lengths: []
|
34
|
+
national_prefix: ''
|
30
35
|
nationality: Saint Barthélemy Islander
|
31
36
|
number: '652'
|
32
37
|
postal_code: true
|
@@ -21,11 +21,21 @@ BV:
|
|
21
21
|
southwest:
|
22
22
|
lat: -54.4541004
|
23
23
|
lng: 3.2858826
|
24
|
+
international_prefix: ''
|
25
|
+
ioc:
|
24
26
|
iso_long_name: Bouvet Island
|
25
27
|
iso_short_name: Bouvet Island
|
28
|
+
languages_official: []
|
29
|
+
languages_spoken: []
|
30
|
+
national_destination_code_lengths: []
|
31
|
+
national_number_lengths: []
|
32
|
+
national_prefix: ''
|
33
|
+
nationality: ''
|
26
34
|
number: '074'
|
27
35
|
postal_code: false
|
36
|
+
region: ''
|
28
37
|
start_of_week: monday
|
38
|
+
subregion: ''
|
29
39
|
un_locode: BV
|
30
40
|
un_member: false
|
31
41
|
unofficial_names:
|
@@ -51,12 +51,12 @@ CD:
|
|
51
51
|
un_locode: CD
|
52
52
|
un_member: true
|
53
53
|
unofficial_names:
|
54
|
+
- Congo (Democratic Republic of the)
|
54
55
|
- Congo (Dem. Rep.)
|
55
56
|
- Kongo (Dem. Rep.)
|
56
57
|
- Congo (Rep. Dem.)
|
57
58
|
- コンゴ民主共和国
|
58
59
|
- Congo [DRC]
|
59
|
-
- Congo (The Democratic Republic Of The)
|
60
60
|
- Democratic Republic of the Congo
|
61
61
|
- Congo, Democratic Republic of
|
62
62
|
- Congo (Kinshasa)
|
@@ -22,6 +22,7 @@ CX:
|
|
22
22
|
lat: -10.5703619
|
23
23
|
lng: 105.5333161
|
24
24
|
international_prefix: '0011'
|
25
|
+
ioc:
|
25
26
|
iso_long_name: The Territory of Christmas Island
|
26
27
|
iso_short_name: Christmas Island
|
27
28
|
languages_official:
|
@@ -32,6 +33,8 @@ CX:
|
|
32
33
|
- en
|
33
34
|
- zh
|
34
35
|
- ms
|
36
|
+
national_destination_code_lengths: []
|
37
|
+
national_number_lengths: []
|
35
38
|
national_prefix: '0'
|
36
39
|
nationality: Christmas Island
|
37
40
|
number: '162'
|
@@ -21,6 +21,8 @@ EH:
|
|
21
21
|
southwest:
|
22
22
|
lat: 20.427
|
23
23
|
lng: -17.4573001
|
24
|
+
international_prefix: ''
|
25
|
+
ioc:
|
24
26
|
iso_long_name: The Sahrawi Arab Democratic Republic
|
25
27
|
iso_short_name: Western Sahara
|
26
28
|
languages_official:
|
@@ -29,6 +31,9 @@ EH:
|
|
29
31
|
languages_spoken:
|
30
32
|
- es
|
31
33
|
- fr
|
34
|
+
national_destination_code_lengths: []
|
35
|
+
national_number_lengths: []
|
36
|
+
national_prefix: ''
|
32
37
|
nationality: Sahrawi
|
33
38
|
number: '732'
|
34
39
|
postal_code: true
|
@@ -22,6 +22,7 @@ FK:
|
|
22
22
|
lat: -52.4744161
|
23
23
|
lng: -61.3792419
|
24
24
|
international_prefix: '00'
|
25
|
+
ioc:
|
25
26
|
iso_long_name: The Falkland Islands
|
26
27
|
iso_short_name: Falkland Islands (the) [Malvinas]
|
27
28
|
languages_official:
|
@@ -44,6 +45,7 @@ FK:
|
|
44
45
|
un_member: false
|
45
46
|
unofficial_names:
|
46
47
|
- Falkland Islands
|
48
|
+
- Falkland Islands [Malvinas]
|
47
49
|
- Falklandinseln
|
48
50
|
- Îles Malouines
|
49
51
|
- Islas Malvinas
|
@@ -58,6 +58,7 @@ GB:
|
|
58
58
|
unofficial_names:
|
59
59
|
- United Kingdom
|
60
60
|
- The United Kingdom
|
61
|
+
- United Kingdom of Great Britain and Northern Ireland
|
61
62
|
- England
|
62
63
|
- Großbritannien
|
63
64
|
- Vereinigtes Königreich
|
@@ -76,5 +77,7 @@ GB:
|
|
76
77
|
standard: 20
|
77
78
|
reduced:
|
78
79
|
- 5
|
80
|
+
super_reduced:
|
81
|
+
parking:
|
79
82
|
vehicle_registration_code: UK
|
80
83
|
world_region: EMEA
|
@@ -21,6 +21,8 @@ GG:
|
|
21
21
|
southwest:
|
22
22
|
lat: 49.4167199
|
23
23
|
lng: -2.6745361
|
24
|
+
international_prefix: ''
|
25
|
+
ioc:
|
24
26
|
iso_long_name: The Bailiwick of Guernsey
|
25
27
|
iso_short_name: Guernsey
|
26
28
|
languages_official:
|
@@ -29,6 +31,9 @@ GG:
|
|
29
31
|
languages_spoken:
|
30
32
|
- en
|
31
33
|
- fr
|
34
|
+
national_destination_code_lengths: []
|
35
|
+
national_number_lengths: []
|
36
|
+
national_prefix: ''
|
32
37
|
nationality: Channel Islander
|
33
38
|
number: '831'
|
34
39
|
postal_code: true
|
@@ -21,12 +21,17 @@ GS:
|
|
21
21
|
southwest:
|
22
22
|
lat: -59.91097600000001
|
23
23
|
lng: -38.4301758
|
24
|
+
international_prefix: ''
|
25
|
+
ioc:
|
24
26
|
iso_long_name: South Georgia and the South Sandwich Islands
|
25
27
|
iso_short_name: South Georgia and the South Sandwich Islands
|
26
28
|
languages_official:
|
27
29
|
- en
|
28
30
|
languages_spoken:
|
29
31
|
- en
|
32
|
+
national_destination_code_lengths: []
|
33
|
+
national_number_lengths: []
|
34
|
+
national_prefix: ''
|
30
35
|
nationality: South Georgia and the South Sandwich Islander
|
31
36
|
number: '239'
|
32
37
|
postal_code: true
|
@@ -21,17 +21,24 @@ HM:
|
|
21
21
|
southwest:
|
22
22
|
lat: -53.19168759999999
|
23
23
|
lng: 73.25065599999999
|
24
|
+
international_prefix: ''
|
25
|
+
ioc:
|
24
26
|
iso_long_name: The Territory of Heard Island and McDonald Islands
|
25
27
|
iso_short_name: Heard Island and McDonald Islands
|
26
28
|
languages_official:
|
27
29
|
- en
|
28
30
|
languages_spoken:
|
29
31
|
- en
|
32
|
+
national_destination_code_lengths: []
|
33
|
+
national_number_lengths: []
|
34
|
+
national_prefix: ''
|
30
35
|
nationality: Heard and McDonald Islander
|
31
36
|
number: '334'
|
32
37
|
postal_code: true
|
33
38
|
postal_code_format: "\\d{4}"
|
39
|
+
region: ''
|
34
40
|
start_of_week: monday
|
41
|
+
subregion: ''
|
35
42
|
un_locode: HM
|
36
43
|
un_member: false
|
37
44
|
unofficial_names:
|
@@ -21,6 +21,8 @@ IM:
|
|
21
21
|
southwest:
|
22
22
|
lat: 54.0186764
|
23
23
|
lng: -4.8736609
|
24
|
+
international_prefix: ''
|
25
|
+
ioc:
|
24
26
|
iso_long_name: The Isle of Man
|
25
27
|
iso_short_name: Isle of Man
|
26
28
|
languages_official:
|
@@ -29,6 +31,9 @@ IM:
|
|
29
31
|
languages_spoken:
|
30
32
|
- en
|
31
33
|
- gv
|
34
|
+
national_destination_code_lengths: []
|
35
|
+
national_number_lengths: []
|
36
|
+
national_prefix: ''
|
32
37
|
nationality: Manx
|
33
38
|
number: '833'
|
34
39
|
postal_code: true
|
@@ -21,12 +21,17 @@ IO:
|
|
21
21
|
southwest:
|
22
22
|
lat: -7.4891118
|
23
23
|
lng: 71.1859131
|
24
|
+
international_prefix: ''
|
25
|
+
ioc:
|
24
26
|
iso_long_name: The British Indian Ocean Territory
|
25
27
|
iso_short_name: British Indian Ocean Territory (the)
|
26
28
|
languages_official:
|
27
29
|
- en
|
28
30
|
languages_spoken:
|
29
31
|
- en
|
32
|
+
national_destination_code_lengths: []
|
33
|
+
national_number_lengths: []
|
34
|
+
national_prefix: ''
|
30
35
|
nationality: Indian
|
31
36
|
number: '086'
|
32
37
|
postal_code: true
|
@@ -21,6 +21,8 @@ JE:
|
|
21
21
|
southwest:
|
22
22
|
lat: 49.1582
|
23
23
|
lng: -2.2602001
|
24
|
+
international_prefix: ''
|
25
|
+
ioc:
|
24
26
|
iso_long_name: The Bailiwick of Jersey
|
25
27
|
iso_short_name: Jersey
|
26
28
|
languages_official:
|
@@ -29,6 +31,9 @@ JE:
|
|
29
31
|
languages_spoken:
|
30
32
|
- en
|
31
33
|
- fr
|
34
|
+
national_destination_code_lengths: []
|
35
|
+
national_number_lengths: []
|
36
|
+
national_prefix: ''
|
32
37
|
nationality: Channel Islander
|
33
38
|
number: '832'
|
34
39
|
postal_code: true
|
@@ -23,6 +23,8 @@ MF:
|
|
23
23
|
southwest:
|
24
24
|
lat: 18.0462883
|
25
25
|
lng: -63.1630001
|
26
|
+
international_prefix: ''
|
27
|
+
ioc:
|
26
28
|
iso_long_name: The Collectivity of Saint-Martin
|
27
29
|
iso_short_name: Saint Martin (French part)
|
28
30
|
languages_official:
|
@@ -33,6 +35,9 @@ MF:
|
|
33
35
|
- en
|
34
36
|
- fr
|
35
37
|
- nl
|
38
|
+
national_destination_code_lengths: []
|
39
|
+
national_number_lengths: []
|
40
|
+
national_prefix: ''
|
36
41
|
nationality: French
|
37
42
|
number: '663'
|
38
43
|
postal_code: true
|