bcp47 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,5 +1,7 @@
1
1
  source "http://rubygems.org"
2
2
 
3
+ gem "i18n"
4
+
3
5
  group :development do
4
6
  gem "rspec", "~> 2.8.0"
5
7
  gem "rdoc", "~> 3.12"
@@ -9,6 +9,7 @@ GEM
9
9
  thor (>= 0.14.6)
10
10
  guard-rspec (1.2.1)
11
11
  guard (>= 1.1)
12
+ i18n (0.6.0)
12
13
  jeweler (1.8.4)
13
14
  bundler (~> 1.0)
14
15
  git (>= 1.2.5)
@@ -43,6 +44,7 @@ PLATFORMS
43
44
  DEPENDENCIES
44
45
  bundler (~> 1.1.0)
45
46
  guard-rspec
47
+ i18n
46
48
  jeweler (~> 1.8.4)
47
49
  rdoc (~> 3.12)
48
50
  rspec (~> 2.8.0)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.3.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bcp47}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Christopher Dell}]
12
- s.date = %q{2012-08-26}
12
+ s.date = %q{2012-08-27}
13
13
  s.description = %q{A subset of the BCP47 spec implemented in ruby}
14
14
  s.email = %q{chris@tigrish.com}
15
15
  s.extra_rdoc_files = [
@@ -34,6 +34,7 @@ Gem::Specification.new do |s|
34
34
  "lib/bcp47/region.rb",
35
35
  "lib/bcp47/subtag.rb",
36
36
  "lib/bcp47/tag.rb",
37
+ "locales/en.yml",
37
38
  "spec/fixtures/base.yml",
38
39
  "spec/lib/bcp47/language_spec.rb",
39
40
  "spec/lib/bcp47/region_spec.rb",
@@ -1,492 +1,246 @@
1
+ AD:
2
+ AE:
1
3
  AF:
2
- name: Afghanistan
3
- AX:
4
- name: Aland Islands
4
+ AG:
5
+ AI:
5
6
  AL:
6
- name: Albania
7
- DZ:
8
- name: Algeria
9
- AS:
10
- name: American Samoa
11
- AD:
12
- name: Andorra
7
+ AM:
8
+ AN:
13
9
  AO:
14
- name: Angola
15
- AI:
16
- name: Anguilla
17
10
  AQ:
18
- name: Antarctica
19
- AG:
20
- name: Antigua and Barbuda
21
11
  AR:
22
- name: Argentina
23
- AM:
24
- name: Armenia
25
- AW:
26
- name: Aruba
27
- AU:
28
- name: Australia
12
+ AS:
29
13
  AT:
30
- name: Austria
14
+ AU:
15
+ AW:
16
+ AX:
31
17
  AZ:
32
- name: Azerbaijan
33
- BS:
34
- name: Bahamas
35
- BH:
36
- name: Bahrain
37
- BD:
38
- name: Bangladesh
18
+ BA:
39
19
  BB:
40
- name: Barbados
41
- BY:
42
- name: Belarus
20
+ BD:
43
21
  BE:
44
- name: Belgium
45
- BZ:
46
- name: Belize
22
+ BF:
23
+ BG:
24
+ BH:
25
+ BI:
47
26
  BJ:
48
- name: Benin
27
+ BL:
49
28
  BM:
50
- name: Bermuda
51
- BT:
52
- name: Bhutan
29
+ BN:
53
30
  BO:
54
- name: Bolivia
55
- BA:
56
- name: Bosnia and Herzegovina
57
- BW:
58
- name: Botswana
59
- BV:
60
- name: Bouvet Island
61
31
  BR:
62
- name: Brazil
63
- IO:
64
- name: British Indian Ocean Territory
65
- BN:
66
- name: Brunei Darussalam
67
- BG:
68
- name: Bulgaria
69
- BF:
70
- name: Burkina Faso
71
- BI:
72
- name: Burundi
73
- KH:
74
- name: Cambodia
75
- CM:
76
- name: Cameroon
32
+ BS:
33
+ BT:
34
+ BV:
35
+ BW:
36
+ BY:
37
+ BZ:
77
38
  CA:
78
- name: Canada
79
- CV:
80
- name: Cape Verde
81
- KY:
82
- name: Cayman Islands
83
- CF:
84
- name: Central African Republic
85
- TD:
86
- name: Chad
87
- CL:
88
- name: Chile
89
- CN:
90
- name: China
91
- CX:
92
- name: Christmas Island
93
39
  CC:
94
- name: Cocos (Keeling) Islands
95
- CO:
96
- name: Colombia
97
- KM:
98
- name: Comoros
99
40
  CD:
100
- name: Congo, the Democratic Republic of the
41
+ CF:
101
42
  CG:
102
- name: Congo
43
+ CH:
44
+ CI:
103
45
  CK:
104
- name: Cook Islands
46
+ CL:
47
+ CM:
48
+ CN:
49
+ CO:
105
50
  CR:
106
- name: Costa Rica
107
- CI:
108
- name: Cote D'Ivoire
109
- HR:
110
- name: Croatia
111
51
  CU:
112
- name: Cuba
52
+ CV:
53
+ CX:
113
54
  CY:
114
- name: Cyprus
115
55
  CZ:
116
- name: Czech Republic
117
- DK:
118
- name: Denmark
56
+ DE:
119
57
  DJ:
120
- name: Djibouti
58
+ DK:
121
59
  DM:
122
- name: Dominica
123
60
  DO:
124
- name: Dominican Republic
61
+ DZ:
125
62
  EC:
126
- name: Ecuador
63
+ EE:
127
64
  EG:
128
- name: Egypt
129
- SV:
130
- name: El Salvador
131
- GQ:
132
- name: Equatorial Guinea
65
+ EH:
133
66
  ER:
134
- name: Eritrea
135
- EE:
136
- name: Estonia
67
+ ES:
137
68
  ET:
138
- name: Ethiopia
69
+ FI:
70
+ FJ:
139
71
  FK:
140
- name: Falkland Islands (Malvinas)
72
+ FM:
141
73
  FO:
142
- name: Faroe Islands
143
- FJ:
144
- name: Fiji
145
- FI:
146
- name: Finland
147
74
  FR:
148
- name: France
149
- GF:
150
- name: French Guiana
151
- PF:
152
- name: French Polynesia
153
- TF:
154
- name: French Southern Territories
155
75
  GA:
156
- name: Gabon
157
- GM:
158
- name: Gambia
76
+ GB:
77
+ GD:
159
78
  GE:
160
- name: Georgia
161
- DE:
162
- name: Germany
79
+ GF:
80
+ GG:
163
81
  GH:
164
- name: Ghana
165
82
  GI:
166
- name: Gibraltar
167
- GR:
168
- name: Greece
169
83
  GL:
170
- name: Greenland
171
- GD:
172
- name: Grenada
84
+ GM:
85
+ GN:
173
86
  GP:
174
- name: Guadeloupe
175
- GU:
176
- name: Guam
87
+ GQ:
88
+ GR:
89
+ GS:
177
90
  GT:
178
- name: Guatemala
179
- GG:
180
- name: Guernsey
181
- GN:
182
- name: Guinea
91
+ GU:
183
92
  GW:
184
- name: Guinea-Bissau
185
93
  GY:
186
- name: Guyana
187
- HT:
188
- name: Haiti
94
+ HK:
189
95
  HM:
190
- name: Heard Island and Mcdonald Islands
191
96
  HN:
192
- name: Honduras
193
- HK:
194
- name: Hong Kong
97
+ HR:
98
+ HT:
195
99
  HU:
196
- name: Hungary
197
- IS:
198
- name: Iceland
199
- IN:
200
- name: India
201
100
  ID:
202
- name: Indonesia
203
- IR:
204
- name: Iran (Islamic Republic of)
205
- IQ:
206
- name: Iraq
207
101
  IE:
208
- name: Ireland
209
- IM:
210
- name: Isle of Man
211
102
  IL:
212
- name: Israel
103
+ IM:
104
+ IN:
105
+ IO:
106
+ IQ:
107
+ IR:
108
+ IS:
213
109
  IT:
214
- name: Italy
215
- JM:
216
- name: Jamaica
217
- JP:
218
- name: Japan
219
110
  JE:
220
- name: Jersey
111
+ JM:
221
112
  JO:
222
- name: Jordan
223
- KZ:
224
- name: Kazakhstan
113
+ JP:
225
114
  KE:
226
- name: Kenya
115
+ KG:
116
+ KH:
227
117
  KI:
228
- name: Kiribati
118
+ KM:
119
+ KN:
229
120
  KP:
230
- name: Korea, Democratic People'S Republic of
231
121
  KR:
232
- name: Korea, Republic of
233
122
  KW:
234
- name: Kuwait
235
- KG:
236
- name: Kyrgyzstan
123
+ KY:
124
+ KZ:
237
125
  LA:
238
- name: Lao People'S Democratic Republic
239
- LV:
240
- name: Latvia
241
126
  LB:
242
- name: Lebanon
243
- LS:
244
- name: Lesotho
245
- LR:
246
- name: Liberia
247
- LY:
248
- name: Libyan Arab Jamahiriya
127
+ LC:
249
128
  LI:
250
- name: Liechtenstein
129
+ LK:
130
+ LR:
131
+ LS:
251
132
  LT:
252
- name: Lithuania
253
133
  LU:
254
- name: Luxembourg
255
- MO:
256
- name: Macao
257
- MK:
258
- name: Macedonia, the Former Yugoslav Republic of
134
+ LV:
135
+ LY:
136
+ MA:
137
+ MC:
138
+ MD:
139
+ ME:
140
+ MF:
259
141
  MG:
260
- name: Madagascar
261
- MW:
262
- name: Malawi
263
- MY:
264
- name: Malaysia
265
- MV:
266
- name: Maldives
267
- ML:
268
- name: Mali
269
- MT:
270
- name: Malta
271
142
  MH:
272
- name: Marshall Islands
143
+ MK:
144
+ ML:
145
+ MM:
146
+ MN:
147
+ MO:
148
+ MP:
273
149
  MQ:
274
- name: Martinique
275
150
  MR:
276
- name: Mauritania
151
+ MS:
152
+ MT:
277
153
  MU:
278
- name: Mauritius
279
- YT:
280
- name: Mayotte
154
+ MV:
155
+ MW:
281
156
  MX:
282
- name: Mexico
283
- FM:
284
- name: Micronesia, Federated States of
285
- MD:
286
- name: Moldova, Republic of
287
- MC:
288
- name: Monaco
289
- MN:
290
- name: Mongolia
291
- ME:
292
- name: Montenegro
293
- MS:
294
- name: Montserrat
295
- MA:
296
- name: Morocco
157
+ MY:
297
158
  MZ:
298
- name: Mozambique
299
- MM:
300
- name: Myanmar
301
159
  NA:
302
- name: Namibia
303
- NR:
304
- name: Nauru
305
- NP:
306
- name: Nepal
307
- NL:
308
- name: Netherlands
309
- AN:
310
- name: Netherlands Antilles
311
160
  NC:
312
- name: New Caledonia
313
- NZ:
314
- name: New Zealand
315
- NI:
316
- name: Nicaragua
317
161
  NE:
318
- name: Niger
319
- NG:
320
- name: Nigeria
321
- NU:
322
- name: Niue
323
162
  NF:
324
- name: Norfolk Island
325
- MP:
326
- name: Northern Mariana Islands
163
+ NG:
164
+ NI:
165
+ NL:
327
166
  NO:
328
- name: Norway
167
+ NP:
168
+ NR:
169
+ NU:
170
+ NZ:
329
171
  OM:
330
- name: Oman
331
- PK:
332
- name: Pakistan
333
- PW:
334
- name: Palau
335
- PS:
336
- name: Palestinian Territory, Occupied
337
172
  PA:
338
- name: Panama
339
- PG:
340
- name: Papua New Guinea
341
- PY:
342
- name: Paraguay
343
173
  PE:
344
- name: Peru
174
+ PF:
175
+ PG:
345
176
  PH:
346
- name: Philippines
347
- PN:
348
- name: Pitcairn
177
+ PK:
349
178
  PL:
350
- name: Poland
351
- PT:
352
- name: Portugal
179
+ PM:
180
+ PN:
353
181
  PR:
354
- name: Puerto Rico
182
+ PS:
183
+ PT:
184
+ PW:
185
+ PY:
355
186
  QA:
356
- name: Qatar
357
187
  RE:
358
- name: Reunion
359
188
  RO:
360
- name: Romania
189
+ RS:
361
190
  RU:
362
- name: Russian Federation
363
191
  RW:
364
- name: Rwanda
365
- BL:
366
- name: Saint Barthelemy
367
- SH:
368
- name: Saint Helena
369
- KN:
370
- name: Saint Kitts and Nevis
371
- LC:
372
- name: Saint Lucia
373
- MF:
374
- name: Saint Martin (French Part)
375
- PM:
376
- name: Saint Pierre and Miquelon
377
- VC:
378
- name: Saint Vincent and the Grenadines
379
- WS:
380
- name: Samoa
381
- SM:
382
- name: San Marino
383
- ST:
384
- name: Sao Tome and Principe
385
192
  SA:
386
- name: Saudi Arabia
387
- SN:
388
- name: Senegal
389
- RS:
390
- name: Serbia
193
+ SB:
391
194
  SC:
392
- name: Seychelles
393
- SL:
394
- name: Sierra Leone
195
+ SD:
196
+ SE:
395
197
  SG:
396
- name: Singapore
397
- SK:
398
- name: Slovakia
198
+ SH:
399
199
  SI:
400
- name: Slovenia
401
- SB:
402
- name: Solomon Islands
200
+ SJ:
201
+ SK:
202
+ SL:
203
+ SM:
204
+ SN:
403
205
  SO:
404
- name: Somalia
405
- ZA:
406
- name: South Africa
407
- GS:
408
- name: South Georgia and the South Sandwich Islands
409
- ES:
410
- name: Spain
411
- LK:
412
- name: Sri Lanka
413
- SD:
414
- name: Sudan
415
206
  SR:
416
- name: Suriname
417
- SJ:
418
- name: Svalbard and Jan Mayen
419
- SZ:
420
- name: Swaziland
421
- SE:
422
- name: Sweden
423
- CH:
424
- name: Switzerland
207
+ ST:
208
+ SV:
425
209
  SY:
426
- name: Syrian Arab Republic
427
- TW:
428
- name: Taiwan, Province of China
429
- TJ:
430
- name: Tajikistan
431
- TZ:
432
- name: Tanzania, United Republic of
433
- TH:
434
- name: Thailand
435
- TL:
436
- name: Timor-Leste
210
+ SZ:
211
+ TC:
212
+ TD:
213
+ TF:
437
214
  TG:
438
- name: Togo
215
+ TH:
216
+ TJ:
439
217
  TK:
440
- name: Tokelau
441
- TO:
442
- name: Tonga
443
- TT:
444
- name: Trinidad and Tobago
218
+ TL:
219
+ TM:
445
220
  TN:
446
- name: Tunisia
221
+ TO:
447
222
  TR:
448
- name: Turkey
449
- TM:
450
- name: Turkmenistan
451
- TC:
452
- name: Turks and Caicos Islands
223
+ TT:
453
224
  TV:
454
- name: Tuvalu
455
- UG:
456
- name: Uganda
225
+ TW:
226
+ TZ:
457
227
  UA:
458
- name: Ukraine
459
- AE:
460
- name: United Arab Emirates
461
- GB:
462
- name: United Kingdom
463
- US:
464
- name: United States
228
+ UG:
465
229
  UM:
466
- name: United States Minor Outlying Islands
230
+ US:
467
231
  UY:
468
- name: Uruguay
469
232
  UZ:
470
- name: Uzbekistan
471
- VU:
472
- name: Vanuatu
473
233
  VA:
474
- name: Vatican City State (Holy See)
234
+ VC:
475
235
  VE:
476
- name: Venezuela
477
- VN:
478
- name: Viet Nam
479
236
  VG:
480
- name: Virgin Islands (British)
481
237
  VI:
482
- name: Virgin Islands (U.S.)
238
+ VN:
239
+ VU:
483
240
  WF:
484
- name: Wallis and Futuna
485
- EH:
486
- name: Western Sahara
241
+ WS:
487
242
  YE:
488
- name: Yemen
243
+ YT:
244
+ ZA:
489
245
  ZM:
490
- name: Zambia
491
246
  ZW:
492
- name: Zimbabwe