csdl 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/csdl.gemspec +2 -2
- data/lib/csdl/target_values/countries.rb +62 -7
- data/lib/csdl/target_values/regions.rb +292 -38
- data/lib/csdl/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa079d20b114e265ce432866dd81f089dfb14240
|
4
|
+
data.tar.gz: 9289edd981a1565d2fd6b685943736110fc4f9f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6cbfaf74ed2b88f8adfcd837a528ce0295c4864a4c42fef69e74dd5eff44c7d769cdf81a8669f037e4e020519279d00df062d08f0220a7273cfed1445d540e7
|
7
|
+
data.tar.gz: 20c2bbe32393d6a144d0634779e35ce8fe50269c295b81ff2ba48a5d510231244fa86dc3cbd5f7595e3183743370842467ef0424e6a725ec0854f92665f7c7ef
|
data/csdl.gemspec
CHANGED
@@ -6,8 +6,8 @@ require 'csdl/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "csdl"
|
8
8
|
spec.version = CSDL::VERSION
|
9
|
-
spec.authors = ["BJ Neilsen"]
|
10
|
-
spec.email = ["bj.neilsen@gmail.com"]
|
9
|
+
spec.authors = ["BJ Neilsen", "David Richards"]
|
10
|
+
spec.email = ["bj.neilsen@gmail.com", "davidlamontrichards@gmail.com"]
|
11
11
|
|
12
12
|
spec.summary = %q{AST Processor and Query Builder for DataSift's CSDL language}
|
13
13
|
spec.description = %q{
|
@@ -1,17 +1,25 @@
|
|
1
1
|
module CSDL
|
2
2
|
module TargetValues
|
3
|
-
|
4
3
|
COUNTRY_CODES_BY_COUNTRY = {
|
4
|
+
"Afghanistan" => "AF",
|
5
|
+
"American Samoa" => "AS",
|
5
6
|
"Argentina" => "AR",
|
7
|
+
"Australia" => "AU",
|
6
8
|
"Austria" => "AT",
|
7
9
|
"Bahrain" => "BH",
|
10
|
+
"Bangladesh" => "BD",
|
8
11
|
"Belgium" => "BE",
|
9
|
-
"
|
12
|
+
"Bhutan" => "BT",
|
13
|
+
"Bolivia, Plurinational State of" => "BO",
|
10
14
|
"Brazil" => "BR",
|
15
|
+
"Brunei" => "BN",
|
11
16
|
"Bulgaria" => "BG",
|
17
|
+
"Cambodia" => "KH",
|
12
18
|
"Canada" => "CA",
|
13
19
|
"Chile" => "CL",
|
20
|
+
"Christmas Island" => "CX",
|
14
21
|
"Colombia" => "CO",
|
22
|
+
"Cook Islands" => "CK",
|
15
23
|
"Costa Rica" => "CR",
|
16
24
|
"Croatia" => "HR",
|
17
25
|
"Cuba" => "CU",
|
@@ -19,76 +27,123 @@ module CSDL
|
|
19
27
|
"Czech Republic" => "CZ",
|
20
28
|
"Denmark" => "DK",
|
21
29
|
"Dominican Republic" => "DO",
|
30
|
+
"East Timor" => "TL",
|
22
31
|
"Ecuador" => "EC",
|
23
32
|
"Egypt" => "EG",
|
24
|
-
"El Salvador" => "
|
33
|
+
"El Salvador" => "ES",
|
25
34
|
"Estonia" => "EE",
|
35
|
+
"Federated States of Micronesia" => "FM",
|
36
|
+
"Fiji" => "FJ",
|
26
37
|
"Finland" => "FI",
|
27
38
|
"France" => "FR",
|
28
39
|
"French Guiana" => "GF",
|
40
|
+
"French Polynesia" => "PF",
|
29
41
|
"Germany" => "DE",
|
30
42
|
"Ghana" => "GH",
|
31
43
|
"Greece" => "GR",
|
32
|
-
"
|
44
|
+
"Guadaloupe" => "GP",
|
45
|
+
"Guam" => "GU",
|
33
46
|
"Guatemala" => "GT",
|
34
47
|
"Haiti" => "HT",
|
35
48
|
"Honduras" => "HN",
|
49
|
+
"Hong Kong" => "HK",
|
36
50
|
"Hungary" => "HU",
|
37
51
|
"Iceland" => "IS",
|
52
|
+
"India" => "IN",
|
53
|
+
"Indonesia" => "ID",
|
38
54
|
"Iraq" => "IQ",
|
39
55
|
"Ireland" => "IE",
|
40
56
|
"Israel" => "IL",
|
41
57
|
"Italy" => "IT",
|
58
|
+
"Japan" => "JP",
|
42
59
|
"Jordan" => "JO",
|
60
|
+
"Kazakhstan" => "KZ",
|
43
61
|
"Kenya" => "KE",
|
62
|
+
"Kiribati" => "KI",
|
63
|
+
"Korea, Republic of" => "KR",
|
44
64
|
"Kuwait" => "KW",
|
65
|
+
"Kyrgyzstan" => "KG",
|
66
|
+
"Lao People's Democratic Republic" => "LA",
|
45
67
|
"Latvia" => "LV",
|
46
68
|
"Lebanon" => "LB",
|
47
69
|
"Lithuania" => "LT",
|
48
70
|
"Luxembourg" => "LU",
|
71
|
+
"Macau" => "MO",
|
49
72
|
"Macedonia, the former Yugoslav Republic of" => "MK",
|
73
|
+
"Malaysia" => "MY",
|
74
|
+
"Maldives" => "MV",
|
50
75
|
"Malta" => "MT",
|
76
|
+
"Mariana Islands" => "MP",
|
77
|
+
"Marshall Islands" => "MH",
|
51
78
|
"Martinique" => "MQ",
|
52
79
|
"Mauritius" => "MU",
|
53
80
|
"Mexico" => "MX",
|
81
|
+
"Mongolia" => "MN",
|
54
82
|
"Morocco" => "MA",
|
83
|
+
"Myanmar" => "MM",
|
84
|
+
"Nauru" => "NR",
|
85
|
+
"Nepal" => "NP",
|
55
86
|
"Netherlands" => "NL",
|
87
|
+
"New Caledonia" => "NC",
|
88
|
+
"New Zealand" => "NZ",
|
56
89
|
"Nicaragua" => "NI",
|
57
90
|
"Nigeria" => "NG",
|
91
|
+
"Niue" => "NU",
|
92
|
+
"Norfolk Island" => "NF",
|
58
93
|
"Norway" => "NO",
|
59
94
|
"Oman" => "OM",
|
95
|
+
"Pakistan" => "PK",
|
96
|
+
"Palau" => "PW",
|
60
97
|
"Palestinian territories" => "PS",
|
61
98
|
"Panama" => "PA",
|
99
|
+
"Papua New Guinea" => "PG",
|
62
100
|
"Paraguay" => "PY",
|
63
101
|
"Peru" => "PE",
|
102
|
+
"Philippines" => "PH",
|
103
|
+
"Pitcairn Islands" => "PN",
|
64
104
|
"Poland" => "PL",
|
65
105
|
"Portugal" => "PT",
|
66
106
|
"Puerto Rico" => "PR",
|
67
107
|
"Qatar" => "QA",
|
68
108
|
"Romania" => "RO",
|
69
109
|
"Saint Barthelemy" => "BL",
|
70
|
-
"Saint Martin
|
110
|
+
"Saint Martin" => "MF",
|
111
|
+
"Samoa" => "WS",
|
71
112
|
"Saudi Arabia" => "SA",
|
72
113
|
"Serbia" => "RS",
|
114
|
+
"Singapore" => "SG",
|
73
115
|
"Slovakia" => "SK",
|
74
116
|
"Slovenia" => "SI",
|
117
|
+
"Solomon Islands" => "SB",
|
75
118
|
"South Africa" => "ZA",
|
76
119
|
"Spain" => "ES",
|
120
|
+
"Sri Lanka" => "LK",
|
77
121
|
"Sweden" => "SE",
|
78
122
|
"Switzerland" => "CH",
|
123
|
+
"Taiwan, Province of China" => "TW",
|
124
|
+
"Tajikistan" => "TJ",
|
125
|
+
"Thailand" => "TH",
|
126
|
+
"Tokelau" => "TK",
|
127
|
+
"Tonga" => "TO",
|
79
128
|
"Tunisia" => "TN",
|
80
129
|
"Turkey" => "TR",
|
130
|
+
"Turkmenistan" => "TM",
|
131
|
+
"Tuvalu" => "TV",
|
81
132
|
"Ukraine" => "UA",
|
82
133
|
"United Arab Emirates" => "AE",
|
83
134
|
"United Kingdom" => "GB",
|
135
|
+
"United States Minor Outlying Islands" => "UM",
|
84
136
|
"United States" => "US",
|
85
137
|
"Uruguay" => "UY",
|
86
|
-
"
|
138
|
+
"Uzbekistan" => "UZ",
|
139
|
+
"Vanuatu" => "VU",
|
140
|
+
"Venezuela, Bolivarian Republic of" => "VE",
|
141
|
+
"Vietnam" => "VN",
|
142
|
+
"Wallis and Futuna" => "WF"
|
87
143
|
}.freeze
|
88
144
|
|
89
145
|
COUNTRIES = COUNTRY_CODES_BY_COUNTRY.keys.freeze
|
90
146
|
|
91
147
|
COUNTRY_CODES = COUNTRY_CODES_BY_COUNTRY.values.freeze
|
92
|
-
|
93
148
|
end
|
94
149
|
end
|
@@ -2,6 +2,14 @@ module CSDL
|
|
2
2
|
module TargetValues
|
3
3
|
|
4
4
|
REGIONS_BY_COUNTRY = {
|
5
|
+
|
6
|
+
"Afghanistan" => [
|
7
|
+
"Balkh",
|
8
|
+
"Herat",
|
9
|
+
"Kabol",
|
10
|
+
"Kandahar"
|
11
|
+
].freeze,
|
12
|
+
|
5
13
|
"Argentina" => [
|
6
14
|
"Neuquén",
|
7
15
|
"Río Negro",
|
@@ -15,6 +23,17 @@ module CSDL
|
|
15
23
|
"Tucuman"
|
16
24
|
].freeze,
|
17
25
|
|
26
|
+
"Australia" => [
|
27
|
+
"Northern Territory",
|
28
|
+
"Western Australia",
|
29
|
+
"Australian Capital Territory",
|
30
|
+
"New South Wales",
|
31
|
+
"South Australia",
|
32
|
+
"Victoria",
|
33
|
+
"Queensland",
|
34
|
+
"Tasmania"
|
35
|
+
].freeze,
|
36
|
+
|
18
37
|
"Austria" => [
|
19
38
|
"Burgenland",
|
20
39
|
"Kärnten",
|
@@ -28,14 +47,18 @@ module CSDL
|
|
28
47
|
].freeze,
|
29
48
|
|
30
49
|
"Bahrain" => [
|
31
|
-
"Al Muharraq"
|
50
|
+
"Al Muharraq",
|
32
51
|
].freeze,
|
33
52
|
|
34
53
|
"Belgium" => [
|
35
54
|
"Région De Bruxelles-Capitale"
|
36
55
|
].freeze,
|
37
56
|
|
38
|
-
"
|
57
|
+
"Bhutan" => [
|
58
|
+
"Thimphu"
|
59
|
+
].freeze,
|
60
|
+
|
61
|
+
"Bolivia, Plurinational State of" => [
|
39
62
|
"Chuquisaca",
|
40
63
|
"Cochabamba",
|
41
64
|
"El Beni",
|
@@ -69,7 +92,7 @@ module CSDL
|
|
69
92
|
"Santa Catarina",
|
70
93
|
"São Paulo",
|
71
94
|
"Sergipe",
|
72
|
-
"Tocantins"
|
95
|
+
"Tocantins"
|
73
96
|
].freeze,
|
74
97
|
|
75
98
|
"Bulgaria" => [
|
@@ -103,6 +126,13 @@ module CSDL
|
|
103
126
|
"Yambol"
|
104
127
|
].freeze,
|
105
128
|
|
129
|
+
"Cambodia" => [
|
130
|
+
"Kampong Cham",
|
131
|
+
"Kampot",
|
132
|
+
"Kandal",
|
133
|
+
"Phnum Penh"
|
134
|
+
].freeze,
|
135
|
+
|
106
136
|
"Canada" => [
|
107
137
|
"Alberta",
|
108
138
|
"British Columbia",
|
@@ -113,8 +143,9 @@ module CSDL
|
|
113
143
|
"Ontario",
|
114
144
|
"Prince Edward Island",
|
115
145
|
"Quebec",
|
116
|
-
"Saskatchewan"
|
117
|
-
|
146
|
+
"Saskatchewan",
|
147
|
+
"Yukon"
|
148
|
+
].freeze,
|
118
149
|
|
119
150
|
"Chile" => [
|
120
151
|
"Antofagasta",
|
@@ -245,7 +276,7 @@ module CSDL
|
|
245
276
|
"Guayas",
|
246
277
|
"Manabi",
|
247
278
|
"Pichincha",
|
248
|
-
"Tungurahua"
|
279
|
+
"Tungurahua"
|
249
280
|
].freeze,
|
250
281
|
|
251
282
|
"Egypt" => [
|
@@ -291,6 +322,10 @@ module CSDL
|
|
291
322
|
"Tartumaa"
|
292
323
|
].freeze,
|
293
324
|
|
325
|
+
"Fiji" => [
|
326
|
+
"Central"
|
327
|
+
].freeze,
|
328
|
+
|
294
329
|
"Finland" => [
|
295
330
|
"Åland",
|
296
331
|
"Lapland"
|
@@ -321,10 +356,6 @@ module CSDL
|
|
321
356
|
"Rhône-Alpes"
|
322
357
|
].freeze,
|
323
358
|
|
324
|
-
"French Guiana" => [
|
325
|
-
|
326
|
-
].freeze,
|
327
|
-
|
328
359
|
"Germany" => [
|
329
360
|
"Baden-Württemberg",
|
330
361
|
"Bayern",
|
@@ -354,10 +385,6 @@ module CSDL
|
|
354
385
|
"Thessaloniki"
|
355
386
|
].freeze,
|
356
387
|
|
357
|
-
"Guadeloupe" => [
|
358
|
-
|
359
|
-
].freeze,
|
360
|
-
|
361
388
|
"Guatemala" => [
|
362
389
|
"Escuintla",
|
363
390
|
"Guatemala",
|
@@ -402,7 +429,62 @@ module CSDL
|
|
402
429
|
"Zala"
|
403
430
|
].freeze,
|
404
431
|
|
405
|
-
"
|
432
|
+
"India" => [
|
433
|
+
"Andhra Pradesh",
|
434
|
+
"Assam",
|
435
|
+
"Bihar",
|
436
|
+
"Chandigarh",
|
437
|
+
"Chhattisgarh",
|
438
|
+
"Delhi",
|
439
|
+
"Goa",
|
440
|
+
"Gujarat",
|
441
|
+
"Haryana",
|
442
|
+
"Himachal Pradesh",
|
443
|
+
"Jammu and Kashmir",
|
444
|
+
"Jharkhand",
|
445
|
+
"Karnataka",
|
446
|
+
"Kerala",
|
447
|
+
"Madhya Pradesh",
|
448
|
+
"Maharashtra",
|
449
|
+
"Mizoram",
|
450
|
+
"Orissa",
|
451
|
+
"Pondicherry",
|
452
|
+
"Punjab",
|
453
|
+
"Rajasthan",
|
454
|
+
"Tamil Nadu",
|
455
|
+
"Uttar Pradesh",
|
456
|
+
"Uttarakhand",
|
457
|
+
"West Bengal"
|
458
|
+
].freeze,
|
459
|
+
|
460
|
+
"Indonesia" => [
|
461
|
+
"Aceh",
|
462
|
+
"Bali",
|
463
|
+
"Bengkulu",
|
464
|
+
"Jakarta Raya",
|
465
|
+
"Jambi",
|
466
|
+
"Jawa Barat",
|
467
|
+
"Jawa Tengah",
|
468
|
+
"Jawa Timur",
|
469
|
+
"Kalimantan Barat",
|
470
|
+
"Kalimantan Selatan",
|
471
|
+
"Kalimantan Tengah",
|
472
|
+
"Kalimantan Timur",
|
473
|
+
"Lampung",
|
474
|
+
"Maluku",
|
475
|
+
"Nusa Tenggara Barat",
|
476
|
+
"Nusa Tenggara Timur",
|
477
|
+
"Papua",
|
478
|
+
"Riau",
|
479
|
+
"Sulawesi Selatan",
|
480
|
+
"Sulawesi Tengah",
|
481
|
+
"Sulawesi Tenggara",
|
482
|
+
"Sulawesi Utara",
|
483
|
+
"Sumatera Barat",
|
484
|
+
"Sumatera Selatan",
|
485
|
+
"Sumatera Utara",
|
486
|
+
"Yogyakarta"
|
487
|
+
].freeze,
|
406
488
|
|
407
489
|
"Iraq" => [
|
408
490
|
"Al Anbar",
|
@@ -486,6 +568,54 @@ module CSDL
|
|
486
568
|
"Veneto"
|
487
569
|
].freeze,
|
488
570
|
|
571
|
+
"Japan" => [
|
572
|
+
"Aichi",
|
573
|
+
"Akita",
|
574
|
+
"Aomori",
|
575
|
+
"Chiba",
|
576
|
+
"Ehime",
|
577
|
+
"Fukui",
|
578
|
+
"Fukuoka",
|
579
|
+
"Fukushima",
|
580
|
+
"Gifu",
|
581
|
+
"Gunma",
|
582
|
+
"Hiroshima",
|
583
|
+
"Hokkaido",
|
584
|
+
"Hyogo",
|
585
|
+
"Ibaraki",
|
586
|
+
"Ishikawa",
|
587
|
+
"Iwate",
|
588
|
+
"Kagawa",
|
589
|
+
"Kagoshima",
|
590
|
+
"Kanagawa",
|
591
|
+
"Kochi",
|
592
|
+
"Kumamoto",
|
593
|
+
"Kyoto",
|
594
|
+
"Mie",
|
595
|
+
"Miyagi",
|
596
|
+
"Miyazaki",
|
597
|
+
"Nagano",
|
598
|
+
"Nagasaki",
|
599
|
+
"Nara",
|
600
|
+
"Niigata",
|
601
|
+
"Oita",
|
602
|
+
"Okayama",
|
603
|
+
"Okinawa",
|
604
|
+
"Osaka",
|
605
|
+
"Saitama",
|
606
|
+
"Shiga",
|
607
|
+
"Shimane",
|
608
|
+
"Shizuoka",
|
609
|
+
"Tochigi",
|
610
|
+
"Tokushima",
|
611
|
+
"Tokyo",
|
612
|
+
"Toyama",
|
613
|
+
"Wakayama",
|
614
|
+
"Yamagata",
|
615
|
+
"Yamaguchi",
|
616
|
+
"Yamanashi"
|
617
|
+
].freeze,
|
618
|
+
|
489
619
|
"Jordan" => [
|
490
620
|
"Al Balqa'",
|
491
621
|
"Al Karak",
|
@@ -497,6 +627,12 @@ module CSDL
|
|
497
627
|
"Ma"
|
498
628
|
].freeze,
|
499
629
|
|
630
|
+
"Kazakhstan" => [
|
631
|
+
"Almaty",
|
632
|
+
"Aqmola",
|
633
|
+
"Atyrau"
|
634
|
+
].freeze,
|
635
|
+
|
500
636
|
"Kenya" => [
|
501
637
|
"Central",
|
502
638
|
"Coast",
|
@@ -504,9 +640,18 @@ module CSDL
|
|
504
640
|
"Rift Valley"
|
505
641
|
].freeze,
|
506
642
|
|
507
|
-
"
|
643
|
+
"Korea, Republic of" => [
|
644
|
+
"Gyeonggi-do",
|
645
|
+
"Seoul"
|
646
|
+
].freeze,
|
647
|
+
|
648
|
+
"Kyrgyzstan" => [
|
649
|
+
"Bishkek"
|
650
|
+
].freeze,
|
508
651
|
|
509
|
-
"
|
652
|
+
"Lao People's Democratic Republic" => [
|
653
|
+
"Vientiane"
|
654
|
+
].freeze,
|
510
655
|
|
511
656
|
"Lebanon" => [
|
512
657
|
"Beyrouth",
|
@@ -541,9 +686,9 @@ module CSDL
|
|
541
686
|
"Gostivar"
|
542
687
|
].freeze,
|
543
688
|
|
544
|
-
"
|
545
|
-
|
546
|
-
|
689
|
+
"Malaysia" => [
|
690
|
+
"Johor"
|
691
|
+
].freeze,
|
547
692
|
|
548
693
|
"Mauritius" => [
|
549
694
|
"Flacq",
|
@@ -586,8 +731,12 @@ module CSDL
|
|
586
731
|
"Tlaxcala",
|
587
732
|
"Veracruz",
|
588
733
|
"Yucatán",
|
589
|
-
"Zacatecas"
|
590
|
-
],
|
734
|
+
"Zacatecas State"
|
735
|
+
].freeze,
|
736
|
+
|
737
|
+
"Mongolia" => [
|
738
|
+
"Ulaanbaatar"
|
739
|
+
].freeze,
|
591
740
|
|
592
741
|
"Morocco" => [
|
593
742
|
"Casablanca",
|
@@ -599,6 +748,12 @@ module CSDL
|
|
599
748
|
"Taza"
|
600
749
|
].freeze,
|
601
750
|
|
751
|
+
"Myanmar" => [
|
752
|
+
"Mandalay",
|
753
|
+
"Shan State",
|
754
|
+
"Yangon"
|
755
|
+
].freeze,
|
756
|
+
|
602
757
|
"Netherlands" => [
|
603
758
|
"Drenthe",
|
604
759
|
"Flevoland",
|
@@ -614,6 +769,12 @@ module CSDL
|
|
614
769
|
"Zuid-Holland"
|
615
770
|
].freeze,
|
616
771
|
|
772
|
+
"New Zealand" => [
|
773
|
+
"Auckland",
|
774
|
+
"Canterbury",
|
775
|
+
"Wellington"
|
776
|
+
].freeze,
|
777
|
+
|
617
778
|
"Nicaragua" => [
|
618
779
|
"Chinandega",
|
619
780
|
"Esteli",
|
@@ -677,7 +838,15 @@ module CSDL
|
|
677
838
|
"Zufar"
|
678
839
|
].freeze,
|
679
840
|
|
680
|
-
"
|
841
|
+
"Pakistan" => [
|
842
|
+
"Azad Kashmir",
|
843
|
+
"Balochistan",
|
844
|
+
"Islamabad",
|
845
|
+
"Khyber Pakhtunkhwa",
|
846
|
+
"Northern Areas",
|
847
|
+
"Punjab",
|
848
|
+
"Sindh"
|
849
|
+
].freeze,
|
681
850
|
|
682
851
|
"Panama" => [
|
683
852
|
"Chiriqui",
|
@@ -685,6 +854,11 @@ module CSDL
|
|
685
854
|
"Panama"
|
686
855
|
].freeze,
|
687
856
|
|
857
|
+
"Papua New Guinea" => [
|
858
|
+
"Morobe",
|
859
|
+
"National Capital"
|
860
|
+
].freeze,
|
861
|
+
|
688
862
|
"Paraguay" => [
|
689
863
|
"Alto Parana",
|
690
864
|
"Central",
|
@@ -704,6 +878,11 @@ module CSDL
|
|
704
878
|
"Tacna"
|
705
879
|
].freeze,
|
706
880
|
|
881
|
+
"Philippines" => [
|
882
|
+
"Davao",
|
883
|
+
"Zamboanga"
|
884
|
+
].freeze,
|
885
|
+
|
707
886
|
"Poland" => [
|
708
887
|
"Dolnoslaskie",
|
709
888
|
"Kujawsko-Pomorskie",
|
@@ -745,8 +924,6 @@ module CSDL
|
|
745
924
|
"Viseu"
|
746
925
|
].freeze,
|
747
926
|
|
748
|
-
"Puerto Rico" => [].freeze,
|
749
|
-
|
750
927
|
"Qatar" => [
|
751
928
|
"Ad Dawhah"
|
752
929
|
].freeze,
|
@@ -796,10 +973,6 @@ module CSDL
|
|
796
973
|
"Vrancea"
|
797
974
|
].freeze,
|
798
975
|
|
799
|
-
"Saint Barthelemy" => [].freeze,
|
800
|
-
|
801
|
-
"Saint Martin (French Part)" => [].freeze,
|
802
|
-
|
803
976
|
"Saudi Arabia" => [
|
804
977
|
"Al Jawf",
|
805
978
|
"Al Madinah",
|
@@ -812,8 +985,6 @@ module CSDL
|
|
812
985
|
"Tabuk"
|
813
986
|
].freeze,
|
814
987
|
|
815
|
-
"Serbia" => [].freeze,
|
816
|
-
|
817
988
|
"Slovakia" => [
|
818
989
|
"Banska Bystrica",
|
819
990
|
"Bratislava",
|
@@ -825,8 +996,6 @@ module CSDL
|
|
825
996
|
"Zilina"
|
826
997
|
].freeze,
|
827
998
|
|
828
|
-
"Slovenia" => [].freeze,
|
829
|
-
|
830
999
|
"South Africa" => [
|
831
1000
|
"Eastern Cape",
|
832
1001
|
"Free State",
|
@@ -906,6 +1075,91 @@ module CSDL
|
|
906
1075
|
"Zürich"
|
907
1076
|
].freeze,
|
908
1077
|
|
1078
|
+
"Taiwan, Province of China" => [
|
1079
|
+
"Kaohsiung",
|
1080
|
+
"Taipei"
|
1081
|
+
].freeze,
|
1082
|
+
|
1083
|
+
"Thailand" => [
|
1084
|
+
"Amnat Charoen",
|
1085
|
+
"Ang Thong",
|
1086
|
+
"Ayutthaya",
|
1087
|
+
"Bangkok",
|
1088
|
+
"Bueng Kan",
|
1089
|
+
"Buriram",
|
1090
|
+
"Chachoengsao",
|
1091
|
+
"Chai Nat",
|
1092
|
+
"Chaiyaphum",
|
1093
|
+
"Chanthaburi",
|
1094
|
+
"Chiang Mai",
|
1095
|
+
"Chiang Rai",
|
1096
|
+
"Chon Buri",
|
1097
|
+
"Chumphon",
|
1098
|
+
"Kalasin",
|
1099
|
+
"Kamphaeng Phet",
|
1100
|
+
"Kanchanaburi",
|
1101
|
+
"Khon Kaen",
|
1102
|
+
"Krabi",
|
1103
|
+
"Lampang",
|
1104
|
+
"Lamphun",
|
1105
|
+
"Loei",
|
1106
|
+
"Lop Buri",
|
1107
|
+
"Mae Hong Son",
|
1108
|
+
"Maha Sarakham",
|
1109
|
+
"Mukdahan",
|
1110
|
+
"Nakhon Nayok",
|
1111
|
+
"Nakhon Pathom",
|
1112
|
+
"Nakhon Phanom",
|
1113
|
+
"Nakhon Ratchasima",
|
1114
|
+
"Nakhon Sawan",
|
1115
|
+
"Nakhon Si Thammarat",
|
1116
|
+
"Nan",
|
1117
|
+
"Narathiwat",
|
1118
|
+
"Nong Bua Lam Phu",
|
1119
|
+
"Nong Khai",
|
1120
|
+
"Nonthaburi",
|
1121
|
+
"Pathum Thani",
|
1122
|
+
"Pattani",
|
1123
|
+
"Phangnga",
|
1124
|
+
"Phatthalung",
|
1125
|
+
"Phayao",
|
1126
|
+
"Phetchabun",
|
1127
|
+
"Phetchaburi",
|
1128
|
+
"Phichit",
|
1129
|
+
"Phitsanulok",
|
1130
|
+
"Phrae",
|
1131
|
+
"Phuket",
|
1132
|
+
"Prachin Buri",
|
1133
|
+
"Prachuap Khiri Khan",
|
1134
|
+
"Ranong",
|
1135
|
+
"Ratchaburi",
|
1136
|
+
"Rayong",
|
1137
|
+
"Roi Et",
|
1138
|
+
"Sa Kaeo",
|
1139
|
+
"Sakon Nakhon",
|
1140
|
+
"Samut Prakan",
|
1141
|
+
"Samut Sakhon",
|
1142
|
+
"Samut Songkhram",
|
1143
|
+
"Saraburi",
|
1144
|
+
"Satun",
|
1145
|
+
"Sing Buri",
|
1146
|
+
"Sisaket",
|
1147
|
+
"Songkhla",
|
1148
|
+
"Sukhothai",
|
1149
|
+
"Suphan Buri",
|
1150
|
+
"Surat Thani",
|
1151
|
+
"Surin",
|
1152
|
+
"Tak",
|
1153
|
+
"Trang",
|
1154
|
+
"Trat",
|
1155
|
+
"Ubon Ratchathani",
|
1156
|
+
"Udon Thani",
|
1157
|
+
"Uthai Thani",
|
1158
|
+
"Uttaradit",
|
1159
|
+
"Yala",
|
1160
|
+
"Yasothon"
|
1161
|
+
].freeze,
|
1162
|
+
|
909
1163
|
"Tunisia" => [
|
910
1164
|
"Al Mahdiyah",
|
911
1165
|
"Al Munastir",
|
@@ -1032,9 +1286,9 @@ module CSDL
|
|
1032
1286
|
|
1033
1287
|
"United Kingdom" => [
|
1034
1288
|
"England",
|
1289
|
+
"Northern Ireland",
|
1035
1290
|
"Scotland",
|
1036
|
-
"Wales"
|
1037
|
-
"Northern Ireland"
|
1291
|
+
"Wales"
|
1038
1292
|
].freeze,
|
1039
1293
|
|
1040
1294
|
"United States" => [
|
@@ -1103,7 +1357,7 @@ module CSDL
|
|
1103
1357
|
"Soriano"
|
1104
1358
|
].freeze,
|
1105
1359
|
|
1106
|
-
"Venezuela" => [
|
1360
|
+
"Venezuela, Bolivarian Republic of" => [
|
1107
1361
|
"Anzoategui",
|
1108
1362
|
"Aragua",
|
1109
1363
|
"Barinas",
|
@@ -1121,9 +1375,9 @@ module CSDL
|
|
1121
1375
|
"Sucre",
|
1122
1376
|
"Tachira",
|
1123
1377
|
"Yaracuy",
|
1124
|
-
"Zulia"
|
1378
|
+
"Zulia"
|
1125
1379
|
].freeze,
|
1126
|
-
|
1380
|
+
|
1127
1381
|
}.freeze
|
1128
1382
|
|
1129
1383
|
REGIONS = REGIONS_BY_COUNTRY.values.flatten.freeze
|
data/lib/csdl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BJ Neilsen
|
8
|
+
- David Richards
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2015-
|
12
|
+
date: 2015-12-22 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: ast
|
@@ -86,6 +87,7 @@ description: |2
|
|
86
87
|
Working with an AST instead of raw strings provides a simpler way to test and validate any given CSDL filter.
|
87
88
|
email:
|
88
89
|
- bj.neilsen@gmail.com
|
90
|
+
- davidlamontrichards@gmail.com
|
89
91
|
executables: []
|
90
92
|
extensions: []
|
91
93
|
extra_rdoc_files: []
|