bcp47 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,14 +1,9 @@
1
1
  source "http://rubygems.org"
2
- # Add dependencies required to use your gem here.
3
- # Example:
4
- # gem "activesupport", ">= 2.3.5"
5
2
 
6
- # Add dependencies to develop your gem here.
7
- # Include everything needed to run rake, tests, features, etc.
8
3
  group :development do
9
4
  gem "rspec", "~> 2.8.0"
10
5
  gem "rdoc", "~> 3.12"
11
6
  gem "bundler", "~> 1.1.0"
12
7
  gem "jeweler", "~> 1.8.4"
8
+ gem "guard-rspec"
13
9
  end
14
-
@@ -2,14 +2,29 @@ GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
4
  diff-lcs (1.1.3)
5
+ ffi (1.1.5)
5
6
  git (1.2.5)
7
+ guard (1.3.2)
8
+ listen (>= 0.4.2)
9
+ thor (>= 0.14.6)
10
+ guard-rspec (1.2.1)
11
+ guard (>= 1.1)
6
12
  jeweler (1.8.4)
7
13
  bundler (~> 1.0)
8
14
  git (>= 1.2.5)
9
15
  rake
10
16
  rdoc
11
17
  json (1.7.5)
18
+ listen (0.4.7)
19
+ rb-fchange (~> 0.0.5)
20
+ rb-fsevent (~> 0.9.1)
21
+ rb-inotify (~> 0.8.8)
12
22
  rake (0.9.2.2)
23
+ rb-fchange (0.0.5)
24
+ ffi
25
+ rb-fsevent (0.9.1)
26
+ rb-inotify (0.8.8)
27
+ ffi (>= 0.5.0)
13
28
  rdoc (3.12)
14
29
  json (~> 1.4)
15
30
  rspec (2.8.0)
@@ -20,12 +35,14 @@ GEM
20
35
  rspec-expectations (2.8.0)
21
36
  diff-lcs (~> 1.1.2)
22
37
  rspec-mocks (2.8.0)
38
+ thor (0.16.0)
23
39
 
24
40
  PLATFORMS
25
41
  ruby
26
42
 
27
43
  DEPENDENCIES
28
44
  bundler (~> 1.1.0)
45
+ guard-rspec
29
46
  jeweler (~> 1.8.4)
30
47
  rdoc (~> 3.12)
31
48
  rspec (~> 2.8.0)
@@ -0,0 +1,24 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ guard 'rspec', :version => 2 do
5
+ watch(%r{^spec/.+_spec\.rb$})
6
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
7
+ watch('spec/spec_helper.rb') { "spec" }
8
+
9
+ # Rails example
10
+ watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
11
+ watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
12
+ watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
13
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
14
+ watch('config/routes.rb') { "spec/routing" }
15
+ watch('app/controllers/application_controller.rb') { "spec/controllers" }
16
+
17
+ # Capybara request specs
18
+ watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
19
+
20
+ # Turnip features and steps
21
+ watch(%r{^spec/acceptance/(.+)\.feature$})
22
+ watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
23
+ end
24
+
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.1.0
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bcp47}
8
- s.version = "0.0.3"
8
+ s.version = "0.1.0"
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}]
@@ -21,13 +21,22 @@ Gem::Specification.new do |s|
21
21
  ".rspec",
22
22
  "Gemfile",
23
23
  "Gemfile.lock",
24
+ "Guardfile",
24
25
  "LICENSE.txt",
25
26
  "README.rdoc",
26
27
  "Rakefile",
27
28
  "VERSION",
28
29
  "bcp47.gemspec",
30
+ "data/iso-3166-1.yml",
31
+ "data/iso-639-1.yml",
29
32
  "lib/bcp47.rb",
30
- "spec/bcp47_spec.rb",
33
+ "lib/bcp47/subtag/base.rb",
34
+ "lib/bcp47/subtag/language.rb",
35
+ "lib/bcp47/subtag/region.rb",
36
+ "spec/fixtures/base.yml",
37
+ "spec/lib/bcp47/subtag/base_spec.rb",
38
+ "spec/lib/bcp47/subtag/language_spec.rb",
39
+ "spec/lib/bcp47/subtag/region_spec.rb",
31
40
  "spec/spec_helper.rb"
32
41
  ]
33
42
  s.homepage = %q{http://github.com/tigrish/bcp47}
@@ -44,17 +53,20 @@ Gem::Specification.new do |s|
44
53
  s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
45
54
  s.add_development_dependency(%q<bundler>, ["~> 1.1.0"])
46
55
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
56
+ s.add_development_dependency(%q<guard-rspec>, [">= 0"])
47
57
  else
48
58
  s.add_dependency(%q<rspec>, ["~> 2.8.0"])
49
59
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
50
60
  s.add_dependency(%q<bundler>, ["~> 1.1.0"])
51
61
  s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
62
+ s.add_dependency(%q<guard-rspec>, [">= 0"])
52
63
  end
53
64
  else
54
65
  s.add_dependency(%q<rspec>, ["~> 2.8.0"])
55
66
  s.add_dependency(%q<rdoc>, ["~> 3.12"])
56
67
  s.add_dependency(%q<bundler>, ["~> 1.1.0"])
57
68
  s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
69
+ s.add_dependency(%q<guard-rspec>, [">= 0"])
58
70
  end
59
71
  end
60
72
 
@@ -0,0 +1,492 @@
1
+ AF:
2
+ name: Afghanistan
3
+ AX:
4
+ name: Aland Islands
5
+ AL:
6
+ name: Albania
7
+ DZ:
8
+ name: Algeria
9
+ AS:
10
+ name: American Samoa
11
+ AD:
12
+ name: Andorra
13
+ AO:
14
+ name: Angola
15
+ AI:
16
+ name: Anguilla
17
+ AQ:
18
+ name: Antarctica
19
+ AG:
20
+ name: Antigua and Barbuda
21
+ AR:
22
+ name: Argentina
23
+ AM:
24
+ name: Armenia
25
+ AW:
26
+ name: Aruba
27
+ AU:
28
+ name: Australia
29
+ AT:
30
+ name: Austria
31
+ AZ:
32
+ name: Azerbaijan
33
+ BS:
34
+ name: Bahamas
35
+ BH:
36
+ name: Bahrain
37
+ BD:
38
+ name: Bangladesh
39
+ BB:
40
+ name: Barbados
41
+ BY:
42
+ name: Belarus
43
+ BE:
44
+ name: Belgium
45
+ BZ:
46
+ name: Belize
47
+ BJ:
48
+ name: Benin
49
+ BM:
50
+ name: Bermuda
51
+ BT:
52
+ name: Bhutan
53
+ BO:
54
+ name: Bolivia
55
+ BA:
56
+ name: Bosnia and Herzegovina
57
+ BW:
58
+ name: Botswana
59
+ BV:
60
+ name: Bouvet Island
61
+ 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
77
+ 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
+ CC:
94
+ name: Cocos (Keeling) Islands
95
+ CO:
96
+ name: Colombia
97
+ KM:
98
+ name: Comoros
99
+ CD:
100
+ name: Congo, the Democratic Republic of the
101
+ CG:
102
+ name: Congo
103
+ CK:
104
+ name: Cook Islands
105
+ CR:
106
+ name: Costa Rica
107
+ CI:
108
+ name: Cote D'Ivoire
109
+ HR:
110
+ name: Croatia
111
+ CU:
112
+ name: Cuba
113
+ CY:
114
+ name: Cyprus
115
+ CZ:
116
+ name: Czech Republic
117
+ DK:
118
+ name: Denmark
119
+ DJ:
120
+ name: Djibouti
121
+ DM:
122
+ name: Dominica
123
+ DO:
124
+ name: Dominican Republic
125
+ EC:
126
+ name: Ecuador
127
+ EG:
128
+ name: Egypt
129
+ SV:
130
+ name: El Salvador
131
+ GQ:
132
+ name: Equatorial Guinea
133
+ ER:
134
+ name: Eritrea
135
+ EE:
136
+ name: Estonia
137
+ ET:
138
+ name: Ethiopia
139
+ FK:
140
+ name: Falkland Islands (Malvinas)
141
+ FO:
142
+ name: Faroe Islands
143
+ FJ:
144
+ name: Fiji
145
+ FI:
146
+ name: Finland
147
+ FR:
148
+ name: France
149
+ GF:
150
+ name: French Guiana
151
+ PF:
152
+ name: French Polynesia
153
+ TF:
154
+ name: French Southern Territories
155
+ GA:
156
+ name: Gabon
157
+ GM:
158
+ name: Gambia
159
+ GE:
160
+ name: Georgia
161
+ DE:
162
+ name: Germany
163
+ GH:
164
+ name: Ghana
165
+ GI:
166
+ name: Gibraltar
167
+ GR:
168
+ name: Greece
169
+ GL:
170
+ name: Greenland
171
+ GD:
172
+ name: Grenada
173
+ GP:
174
+ name: Guadeloupe
175
+ GU:
176
+ name: Guam
177
+ GT:
178
+ name: Guatemala
179
+ GG:
180
+ name: Guernsey
181
+ GN:
182
+ name: Guinea
183
+ GW:
184
+ name: Guinea-Bissau
185
+ GY:
186
+ name: Guyana
187
+ HT:
188
+ name: Haiti
189
+ HM:
190
+ name: Heard Island and Mcdonald Islands
191
+ HN:
192
+ name: Honduras
193
+ HK:
194
+ name: Hong Kong
195
+ HU:
196
+ name: Hungary
197
+ IS:
198
+ name: Iceland
199
+ IN:
200
+ name: India
201
+ ID:
202
+ name: Indonesia
203
+ IR:
204
+ name: Iran (Islamic Republic of)
205
+ IQ:
206
+ name: Iraq
207
+ IE:
208
+ name: Ireland
209
+ IM:
210
+ name: Isle of Man
211
+ IL:
212
+ name: Israel
213
+ IT:
214
+ name: Italy
215
+ JM:
216
+ name: Jamaica
217
+ JP:
218
+ name: Japan
219
+ JE:
220
+ name: Jersey
221
+ JO:
222
+ name: Jordan
223
+ KZ:
224
+ name: Kazakhstan
225
+ KE:
226
+ name: Kenya
227
+ KI:
228
+ name: Kiribati
229
+ KP:
230
+ name: Korea, Democratic People'S Republic of
231
+ KR:
232
+ name: Korea, Republic of
233
+ KW:
234
+ name: Kuwait
235
+ KG:
236
+ name: Kyrgyzstan
237
+ LA:
238
+ name: Lao People'S Democratic Republic
239
+ LV:
240
+ name: Latvia
241
+ LB:
242
+ name: Lebanon
243
+ LS:
244
+ name: Lesotho
245
+ LR:
246
+ name: Liberia
247
+ LY:
248
+ name: Libyan Arab Jamahiriya
249
+ LI:
250
+ name: Liechtenstein
251
+ LT:
252
+ name: Lithuania
253
+ LU:
254
+ name: Luxembourg
255
+ MO:
256
+ name: Macao
257
+ MK:
258
+ name: Macedonia, the Former Yugoslav Republic of
259
+ 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
+ MH:
272
+ name: Marshall Islands
273
+ MQ:
274
+ name: Martinique
275
+ MR:
276
+ name: Mauritania
277
+ MU:
278
+ name: Mauritius
279
+ YT:
280
+ name: Mayotte
281
+ 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
297
+ MZ:
298
+ name: Mozambique
299
+ MM:
300
+ name: Myanmar
301
+ 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
+ NC:
312
+ name: New Caledonia
313
+ NZ:
314
+ name: New Zealand
315
+ NI:
316
+ name: Nicaragua
317
+ NE:
318
+ name: Niger
319
+ NG:
320
+ name: Nigeria
321
+ NU:
322
+ name: Niue
323
+ NF:
324
+ name: Norfolk Island
325
+ MP:
326
+ name: Northern Mariana Islands
327
+ NO:
328
+ name: Norway
329
+ OM:
330
+ name: Oman
331
+ PK:
332
+ name: Pakistan
333
+ PW:
334
+ name: Palau
335
+ PS:
336
+ name: Palestinian Territory, Occupied
337
+ PA:
338
+ name: Panama
339
+ PG:
340
+ name: Papua New Guinea
341
+ PY:
342
+ name: Paraguay
343
+ PE:
344
+ name: Peru
345
+ PH:
346
+ name: Philippines
347
+ PN:
348
+ name: Pitcairn
349
+ PL:
350
+ name: Poland
351
+ PT:
352
+ name: Portugal
353
+ PR:
354
+ name: Puerto Rico
355
+ QA:
356
+ name: Qatar
357
+ RE:
358
+ name: Reunion
359
+ RO:
360
+ name: Romania
361
+ RU:
362
+ name: Russian Federation
363
+ 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
+ SA:
386
+ name: Saudi Arabia
387
+ SN:
388
+ name: Senegal
389
+ RS:
390
+ name: Serbia
391
+ SC:
392
+ name: Seychelles
393
+ SL:
394
+ name: Sierra Leone
395
+ SG:
396
+ name: Singapore
397
+ SK:
398
+ name: Slovakia
399
+ SI:
400
+ name: Slovenia
401
+ SB:
402
+ name: Solomon Islands
403
+ 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
+ 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
425
+ 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
437
+ TG:
438
+ name: Togo
439
+ TK:
440
+ name: Tokelau
441
+ TO:
442
+ name: Tonga
443
+ TT:
444
+ name: Trinidad and Tobago
445
+ TN:
446
+ name: Tunisia
447
+ TR:
448
+ name: Turkey
449
+ TM:
450
+ name: Turkmenistan
451
+ TC:
452
+ name: Turks and Caicos Islands
453
+ TV:
454
+ name: Tuvalu
455
+ UG:
456
+ name: Uganda
457
+ UA:
458
+ name: Ukraine
459
+ AE:
460
+ name: United Arab Emirates
461
+ GB:
462
+ name: United Kingdom
463
+ US:
464
+ name: United States
465
+ UM:
466
+ name: United States Minor Outlying Islands
467
+ UY:
468
+ name: Uruguay
469
+ UZ:
470
+ name: Uzbekistan
471
+ VU:
472
+ name: Vanuatu
473
+ VA:
474
+ name: Vatican City State (Holy See)
475
+ VE:
476
+ name: Venezuela
477
+ VN:
478
+ name: Viet Nam
479
+ VG:
480
+ name: Virgin Islands (British)
481
+ VI:
482
+ name: Virgin Islands (U.S.)
483
+ WF:
484
+ name: Wallis and Futuna
485
+ EH:
486
+ name: Western Sahara
487
+ YE:
488
+ name: Yemen
489
+ ZM:
490
+ name: Zambia
491
+ ZW:
492
+ name: Zimbabwe