csdl 0.3.3 → 0.3.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/csdl/target_values/countries.rb +26 -1
- data/lib/csdl/target_values/regions.rb +262 -16
- data/lib/csdl/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 388e83fb73b2bb373d8fec923e2edcb96407f410
|
|
4
|
+
data.tar.gz: 7212e08137d8bb3ab5482f41e9e33df8505bfae8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 49618da00df6fffd9d2afb6bbb60d4bc545930604b1d9e77ceb64a09de9305ffade4a1b8ac6945c2330cdb2aafb4190248496e5a4ca6d8b8cc0c7b6428859f33
|
|
7
|
+
data.tar.gz: b319095466655bdf172042efaa7b678a9151ebd1820ea96d8a192523cdba661025919cb9158a8848f2f2c1475127703ee9fd56480404817089c9615ec934d146
|
|
@@ -2,22 +2,37 @@ module CSDL
|
|
|
2
2
|
module TargetValues
|
|
3
3
|
|
|
4
4
|
COUNTRY_CODES_BY_COUNTRY = {
|
|
5
|
+
"Argentina" => "AR",
|
|
5
6
|
"Austria" => "AT",
|
|
6
|
-
"Canada" => "CA",
|
|
7
7
|
"Bahrain" => "BH",
|
|
8
8
|
"Belgium" => "BE",
|
|
9
|
+
"Bolivia" => "BO",
|
|
10
|
+
"Brazil" => "BR",
|
|
9
11
|
"Bulgaria" => "BG",
|
|
12
|
+
"Canada" => "CA",
|
|
13
|
+
"Chile" => "CL",
|
|
14
|
+
"Colombia" => "CO",
|
|
15
|
+
"Costa Rica" => "CR",
|
|
10
16
|
"Croatia" => "HR",
|
|
17
|
+
"Cuba" => "CU",
|
|
11
18
|
"Cyprus" => "CY",
|
|
12
19
|
"Czech Republic" => "CZ",
|
|
13
20
|
"Denmark" => "DK",
|
|
21
|
+
"Dominican Republic" => "DO",
|
|
22
|
+
"Ecuador" => "EC",
|
|
14
23
|
"Egypt" => "EG",
|
|
24
|
+
"El Salvador" => "SV",
|
|
15
25
|
"Estonia" => "EE",
|
|
16
26
|
"Finland" => "FI",
|
|
17
27
|
"France" => "FR",
|
|
28
|
+
"French Guiana" => "GF",
|
|
18
29
|
"Germany" => "DE",
|
|
19
30
|
"Ghana" => "GH",
|
|
20
31
|
"Greece" => "GR",
|
|
32
|
+
"Guadeloupe" => "GP",
|
|
33
|
+
"Guatemala" => "GT",
|
|
34
|
+
"Haiti" => "HT",
|
|
35
|
+
"Honduras" => "HN",
|
|
21
36
|
"Hungary" => "HU",
|
|
22
37
|
"Iceland" => "IS",
|
|
23
38
|
"Iraq" => "IQ",
|
|
@@ -33,18 +48,26 @@ module CSDL
|
|
|
33
48
|
"Luxembourg" => "LU",
|
|
34
49
|
"Macedonia, the former Yugoslav Republic of" => "MK",
|
|
35
50
|
"Malta" => "MT",
|
|
51
|
+
"Martinique" => "MQ",
|
|
36
52
|
"Mauritius" => "MU",
|
|
37
53
|
"Mexico" => "MX",
|
|
38
54
|
"Morocco" => "MA",
|
|
39
55
|
"Netherlands" => "NL",
|
|
56
|
+
"Nicaragua" => "NI",
|
|
40
57
|
"Nigeria" => "NG",
|
|
41
58
|
"Norway" => "NO",
|
|
42
59
|
"Oman" => "OM",
|
|
43
60
|
"Palestinian territories" => "PS",
|
|
61
|
+
"Panama" => "PA",
|
|
62
|
+
"Paraguay" => "PY",
|
|
63
|
+
"Peru" => "PE",
|
|
44
64
|
"Poland" => "PL",
|
|
45
65
|
"Portugal" => "PT",
|
|
66
|
+
"Puerto Rico" => "PR",
|
|
46
67
|
"Qatar" => "QA",
|
|
47
68
|
"Romania" => "RO",
|
|
69
|
+
"Saint Barthelemy" => "BL",
|
|
70
|
+
"Saint Martin (French Part)" => "MF",
|
|
48
71
|
"Saudi Arabia" => "SA",
|
|
49
72
|
"Serbia" => "RS",
|
|
50
73
|
"Slovakia" => "SK",
|
|
@@ -59,6 +82,8 @@ module CSDL
|
|
|
59
82
|
"United Arab Emirates" => "AE",
|
|
60
83
|
"United Kingdom" => "GB",
|
|
61
84
|
"United States" => "US",
|
|
85
|
+
"Uruguay" => "UY",
|
|
86
|
+
"Venezuela" => "VE",
|
|
62
87
|
}.freeze
|
|
63
88
|
|
|
64
89
|
COUNTRIES = COUNTRY_CODES_BY_COUNTRY.keys.freeze
|
|
@@ -2,6 +2,19 @@ module CSDL
|
|
|
2
2
|
module TargetValues
|
|
3
3
|
|
|
4
4
|
REGIONS_BY_COUNTRY = {
|
|
5
|
+
"Argentina" => [
|
|
6
|
+
"Neuquén",
|
|
7
|
+
"Río Negro",
|
|
8
|
+
"Salta",
|
|
9
|
+
"San Juan",
|
|
10
|
+
"San Luis",
|
|
11
|
+
"Santa Cruz",
|
|
12
|
+
"Santa Fe",
|
|
13
|
+
"Santiago del Estero",
|
|
14
|
+
"Tierra del Fuego",
|
|
15
|
+
"Tucuman"
|
|
16
|
+
].freeze,
|
|
17
|
+
|
|
5
18
|
"Austria" => [
|
|
6
19
|
"Burgenland",
|
|
7
20
|
"Kärnten",
|
|
@@ -14,19 +27,6 @@ module CSDL
|
|
|
14
27
|
"Wien"
|
|
15
28
|
].freeze,
|
|
16
29
|
|
|
17
|
-
"Canada" => [
|
|
18
|
-
"Alberta",
|
|
19
|
-
"British Columbia",
|
|
20
|
-
"Manitoba",
|
|
21
|
-
"New Brunswick",
|
|
22
|
-
"Newfoundland",
|
|
23
|
-
"Nova Scotia",
|
|
24
|
-
"Ontario",
|
|
25
|
-
"Prince Edward Island",
|
|
26
|
-
"Quebec",
|
|
27
|
-
"Saskatchewan"
|
|
28
|
-
],
|
|
29
|
-
|
|
30
30
|
"Bahrain" => [
|
|
31
31
|
"Al Muharraq"
|
|
32
32
|
].freeze,
|
|
@@ -35,6 +35,43 @@ module CSDL
|
|
|
35
35
|
"Région De Bruxelles-Capitale"
|
|
36
36
|
].freeze,
|
|
37
37
|
|
|
38
|
+
"Bolivia" => [
|
|
39
|
+
"Chuquisaca",
|
|
40
|
+
"Cochabamba",
|
|
41
|
+
"El Beni",
|
|
42
|
+
"Santa Cruz"
|
|
43
|
+
].freeze,
|
|
44
|
+
|
|
45
|
+
"Brazil" => [
|
|
46
|
+
"Acre",
|
|
47
|
+
"Alagoas",
|
|
48
|
+
"Amapa",
|
|
49
|
+
"Amazonas",
|
|
50
|
+
"Bahia",
|
|
51
|
+
"Ceara",
|
|
52
|
+
"Distrito Federal",
|
|
53
|
+
"Espirito Santo",
|
|
54
|
+
"Goias",
|
|
55
|
+
"Maranhao",
|
|
56
|
+
"Mato Grosso",
|
|
57
|
+
"Mato Grosso do Sul",
|
|
58
|
+
"Minas Gerais",
|
|
59
|
+
"Para",
|
|
60
|
+
"Paraiba",
|
|
61
|
+
"Parana",
|
|
62
|
+
"Pernambuco",
|
|
63
|
+
"Piaui",
|
|
64
|
+
"Rio de Janeiro",
|
|
65
|
+
"Rio Grande do Norte",
|
|
66
|
+
"Rio Grande do Sul",
|
|
67
|
+
"Rondonia",
|
|
68
|
+
"Roraima",
|
|
69
|
+
"Santa Catarina",
|
|
70
|
+
"São Paulo",
|
|
71
|
+
"Sergipe",
|
|
72
|
+
"Tocantins",
|
|
73
|
+
].freeze,
|
|
74
|
+
|
|
38
75
|
"Bulgaria" => [
|
|
39
76
|
"Blagoevgrad",
|
|
40
77
|
"Burgas",
|
|
@@ -66,6 +103,69 @@ module CSDL
|
|
|
66
103
|
"Yambol"
|
|
67
104
|
].freeze,
|
|
68
105
|
|
|
106
|
+
"Canada" => [
|
|
107
|
+
"Alberta",
|
|
108
|
+
"British Columbia",
|
|
109
|
+
"Manitoba",
|
|
110
|
+
"New Brunswick",
|
|
111
|
+
"Newfoundland",
|
|
112
|
+
"Nova Scotia",
|
|
113
|
+
"Ontario",
|
|
114
|
+
"Prince Edward Island",
|
|
115
|
+
"Quebec",
|
|
116
|
+
"Saskatchewan"
|
|
117
|
+
],
|
|
118
|
+
|
|
119
|
+
"Chile" => [
|
|
120
|
+
"Antofagasta",
|
|
121
|
+
"Araucania",
|
|
122
|
+
"Atacama",
|
|
123
|
+
"Bio-Bio",
|
|
124
|
+
"Coquimbo",
|
|
125
|
+
"Libertador General Bernardo O'Higgins",
|
|
126
|
+
"Los Lagos",
|
|
127
|
+
"Magallanes y de la Antartica Chilena",
|
|
128
|
+
"Maule",
|
|
129
|
+
"Region Metropolitana",
|
|
130
|
+
"Tarapaca",
|
|
131
|
+
"Valparaiso"
|
|
132
|
+
].freeze,
|
|
133
|
+
|
|
134
|
+
"Colombia" => [
|
|
135
|
+
"Antioquia",
|
|
136
|
+
"Atlantico",
|
|
137
|
+
"Bolivar",
|
|
138
|
+
"Boyaca",
|
|
139
|
+
"Caldas",
|
|
140
|
+
"Casanare",
|
|
141
|
+
"Cauca",
|
|
142
|
+
"Cesar",
|
|
143
|
+
"Cordoba",
|
|
144
|
+
"Cundinamarca",
|
|
145
|
+
"Distrito Especial",
|
|
146
|
+
"Huila",
|
|
147
|
+
"La Guajira",
|
|
148
|
+
"Magdalena",
|
|
149
|
+
"Meta",
|
|
150
|
+
"Narino",
|
|
151
|
+
"Norte de Santander",
|
|
152
|
+
"Quindio",
|
|
153
|
+
"Risaralda",
|
|
154
|
+
"Santander",
|
|
155
|
+
"Tolima",
|
|
156
|
+
"Valle del Cauca"
|
|
157
|
+
].freeze,
|
|
158
|
+
|
|
159
|
+
"Costa Rica" => [
|
|
160
|
+
"Alajuela",
|
|
161
|
+
"Cartago",
|
|
162
|
+
"Guanacaste",
|
|
163
|
+
"Heredia",
|
|
164
|
+
"Limon",
|
|
165
|
+
"Puntarenas",
|
|
166
|
+
"San Jose"
|
|
167
|
+
].freeze,
|
|
168
|
+
|
|
69
169
|
"Croatia" => [
|
|
70
170
|
"Bjelovarsko-Bilogorska",
|
|
71
171
|
"Brodsko-Posavska",
|
|
@@ -87,6 +187,10 @@ module CSDL
|
|
|
87
187
|
"Zagrebacka"
|
|
88
188
|
].freeze,
|
|
89
189
|
|
|
190
|
+
"Cuba" => [
|
|
191
|
+
"La Habana"
|
|
192
|
+
].freeze,
|
|
193
|
+
|
|
90
194
|
"Cyprus" => [
|
|
91
195
|
"Famagusta",
|
|
92
196
|
"Kyrenia",
|
|
@@ -117,6 +221,33 @@ module CSDL
|
|
|
117
221
|
"Nordjylland"
|
|
118
222
|
].freeze,
|
|
119
223
|
|
|
224
|
+
"Dominican Republic" => [
|
|
225
|
+
"Duarte",
|
|
226
|
+
"Espaillat",
|
|
227
|
+
"La Altagracia",
|
|
228
|
+
"La Romana",
|
|
229
|
+
"La Vega",
|
|
230
|
+
"Monsenor Nouel",
|
|
231
|
+
"Monte Cristi",
|
|
232
|
+
"Peravia",
|
|
233
|
+
"Puerto Plata",
|
|
234
|
+
"Salcedo",
|
|
235
|
+
"San Cristobal",
|
|
236
|
+
"San Pedro De Macoris",
|
|
237
|
+
"Sanchez Ramirez",
|
|
238
|
+
"Santiago",
|
|
239
|
+
"Valverde"
|
|
240
|
+
].freeze,
|
|
241
|
+
|
|
242
|
+
"Ecuador" => [
|
|
243
|
+
"Azuay",
|
|
244
|
+
"El Oro",
|
|
245
|
+
"Guayas",
|
|
246
|
+
"Manabi",
|
|
247
|
+
"Pichincha",
|
|
248
|
+
"Tungurahua",
|
|
249
|
+
].freeze,
|
|
250
|
+
|
|
120
251
|
"Egypt" => [
|
|
121
252
|
"Ad Daqahliyah",
|
|
122
253
|
"Al Bahr al Ahmar",
|
|
@@ -145,6 +276,16 @@ module CSDL
|
|
|
145
276
|
"Suhaj"
|
|
146
277
|
].freeze,
|
|
147
278
|
|
|
279
|
+
"El Salvador" => [
|
|
280
|
+
"La Libertad",
|
|
281
|
+
"La Union",
|
|
282
|
+
"San Miguel",
|
|
283
|
+
"San Salvador",
|
|
284
|
+
"Santa Ana",
|
|
285
|
+
"Sonsonate",
|
|
286
|
+
"Usulutan"
|
|
287
|
+
].freeze,
|
|
288
|
+
|
|
148
289
|
"Estonia" => [
|
|
149
290
|
"Harjumaa",
|
|
150
291
|
"Tartumaa"
|
|
@@ -180,6 +321,10 @@ module CSDL
|
|
|
180
321
|
"Rhône-Alpes"
|
|
181
322
|
].freeze,
|
|
182
323
|
|
|
324
|
+
"French Guiana" => [
|
|
325
|
+
|
|
326
|
+
].freeze,
|
|
327
|
+
|
|
183
328
|
"Germany" => [
|
|
184
329
|
"Baden-Württemberg",
|
|
185
330
|
"Bayern",
|
|
@@ -209,6 +354,31 @@ module CSDL
|
|
|
209
354
|
"Thessaloniki"
|
|
210
355
|
].freeze,
|
|
211
356
|
|
|
357
|
+
"Guadeloupe" => [
|
|
358
|
+
|
|
359
|
+
].freeze,
|
|
360
|
+
|
|
361
|
+
"Guatemala" => [
|
|
362
|
+
"Escuintla",
|
|
363
|
+
"Guatemala",
|
|
364
|
+
"Jutiapa",
|
|
365
|
+
"Quetzaltenango",
|
|
366
|
+
"Sacatepequez"
|
|
367
|
+
].freeze,
|
|
368
|
+
|
|
369
|
+
"Haiti" => [
|
|
370
|
+
"Ouest"
|
|
371
|
+
].freeze,
|
|
372
|
+
|
|
373
|
+
"Honduras" => [
|
|
374
|
+
"Atlantida",
|
|
375
|
+
"Comayagua",
|
|
376
|
+
"Copan",
|
|
377
|
+
"Cortes",
|
|
378
|
+
"Francisco Morazan",
|
|
379
|
+
"Yoro"
|
|
380
|
+
].freeze,
|
|
381
|
+
|
|
212
382
|
"Hungary" => [
|
|
213
383
|
"Bacs-Kiskun",
|
|
214
384
|
"Baranya",
|
|
@@ -371,8 +541,9 @@ module CSDL
|
|
|
371
541
|
"Gostivar"
|
|
372
542
|
].freeze,
|
|
373
543
|
|
|
374
|
-
"Malta" => [
|
|
375
|
-
|
|
544
|
+
"Malta" => [].freeze,
|
|
545
|
+
|
|
546
|
+
"Martinique" => [].freeze,
|
|
376
547
|
|
|
377
548
|
"Mauritius" => [
|
|
378
549
|
"Flacq",
|
|
@@ -443,6 +614,15 @@ module CSDL
|
|
|
443
614
|
"Zuid-Holland"
|
|
444
615
|
].freeze,
|
|
445
616
|
|
|
617
|
+
"Nicaragua" => [
|
|
618
|
+
"Chinandega",
|
|
619
|
+
"Esteli",
|
|
620
|
+
"Leon",
|
|
621
|
+
"Managua",
|
|
622
|
+
"Masaya",
|
|
623
|
+
"Matagalpa"
|
|
624
|
+
].freeze,
|
|
625
|
+
|
|
446
626
|
"Nigeria" => [
|
|
447
627
|
"Abia",
|
|
448
628
|
"Akwa Ibom",
|
|
@@ -499,6 +679,31 @@ module CSDL
|
|
|
499
679
|
|
|
500
680
|
"Palestinian territories" => [].freeze,
|
|
501
681
|
|
|
682
|
+
"Panama" => [
|
|
683
|
+
"Chiriqui",
|
|
684
|
+
"Colon",
|
|
685
|
+
"Panama"
|
|
686
|
+
].freeze,
|
|
687
|
+
|
|
688
|
+
"Paraguay" => [
|
|
689
|
+
"Alto Parana",
|
|
690
|
+
"Central",
|
|
691
|
+
"Itapua",
|
|
692
|
+
"Presidente Hayes"
|
|
693
|
+
].freeze,
|
|
694
|
+
|
|
695
|
+
"Peru" => [
|
|
696
|
+
"Ancash",
|
|
697
|
+
"Arequipa",
|
|
698
|
+
"Cusco",
|
|
699
|
+
"Ica",
|
|
700
|
+
"La Libertad",
|
|
701
|
+
"Lambayeque",
|
|
702
|
+
"Lima",
|
|
703
|
+
"Piura",
|
|
704
|
+
"Tacna"
|
|
705
|
+
].freeze,
|
|
706
|
+
|
|
502
707
|
"Poland" => [
|
|
503
708
|
"Dolnoslaskie",
|
|
504
709
|
"Kujawsko-Pomorskie",
|
|
@@ -540,6 +745,8 @@ module CSDL
|
|
|
540
745
|
"Viseu"
|
|
541
746
|
].freeze,
|
|
542
747
|
|
|
748
|
+
"Puerto Rico" => [].freeze,
|
|
749
|
+
|
|
543
750
|
"Qatar" => [
|
|
544
751
|
"Ad Dawhah"
|
|
545
752
|
].freeze,
|
|
@@ -589,6 +796,10 @@ module CSDL
|
|
|
589
796
|
"Vrancea"
|
|
590
797
|
].freeze,
|
|
591
798
|
|
|
799
|
+
"Saint Barthelemy" => [].freeze,
|
|
800
|
+
|
|
801
|
+
"Saint Martin (French Part)" => [].freeze,
|
|
802
|
+
|
|
592
803
|
"Saudi Arabia" => [
|
|
593
804
|
"Al Jawf",
|
|
594
805
|
"Al Madinah",
|
|
@@ -877,7 +1088,42 @@ module CSDL
|
|
|
877
1088
|
"West Virginia",
|
|
878
1089
|
"Wisconsin",
|
|
879
1090
|
"Wyoming"
|
|
880
|
-
].freeze
|
|
1091
|
+
].freeze,
|
|
1092
|
+
|
|
1093
|
+
"Uruguay" => [
|
|
1094
|
+
"Artigas",
|
|
1095
|
+
"Canelones",
|
|
1096
|
+
"Colonia",
|
|
1097
|
+
"Maldonado",
|
|
1098
|
+
"Montevideo",
|
|
1099
|
+
"Paysandu",
|
|
1100
|
+
"Rivera",
|
|
1101
|
+
"Salto",
|
|
1102
|
+
"San Jose",
|
|
1103
|
+
"Soriano"
|
|
1104
|
+
].freeze,
|
|
1105
|
+
|
|
1106
|
+
"Venezuela" => [
|
|
1107
|
+
"Anzoategui",
|
|
1108
|
+
"Aragua",
|
|
1109
|
+
"Barinas",
|
|
1110
|
+
"Bolivar",
|
|
1111
|
+
"Carabobo",
|
|
1112
|
+
"Distrito Federal",
|
|
1113
|
+
"Falcon",
|
|
1114
|
+
"Guarico",
|
|
1115
|
+
"Lara",
|
|
1116
|
+
"Merida",
|
|
1117
|
+
"Miranda",
|
|
1118
|
+
"Monagas",
|
|
1119
|
+
"Nueva Esparta",
|
|
1120
|
+
"Portuguesa",
|
|
1121
|
+
"Sucre",
|
|
1122
|
+
"Tachira",
|
|
1123
|
+
"Yaracuy",
|
|
1124
|
+
"Zulia",
|
|
1125
|
+
].freeze,
|
|
1126
|
+
|
|
881
1127
|
}.freeze
|
|
882
1128
|
|
|
883
1129
|
REGIONS = REGIONS_BY_COUNTRY.values.flatten.freeze
|
data/lib/csdl/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: csdl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- BJ Neilsen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-11-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ast
|