snail 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/snail/constants.rb +20 -13
  2. metadata +3 -3
@@ -45,7 +45,6 @@ class Snail
45
45
  'Cayman Islands',
46
46
  'Central African Republic',
47
47
  'Chad',
48
- 'Channel Islands',
49
48
  'Chile',
50
49
  'China',
51
50
  'Colombia',
@@ -345,7 +344,7 @@ class Snail
345
344
  AU_REGIONS = REGIONS[:au]
346
345
 
347
346
  module Iso3166
348
- # as of June 3rd, 2010
347
+ # as of January 28, 2013
349
348
  # pulled http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
350
349
  ALPHA2 = {
351
350
  'AD' => ["ANDORRA"],
@@ -391,24 +390,28 @@ class Snail
391
390
  'CF' => ["CENTRAL AFRICAN REPUBLIC"],
392
391
  'CG' => ["CONGO", "REPUBLIC OF THE CONGO"],
393
392
  'CH' => ["SWITZERLAND"],
394
- 'CI' => ["COTE D'IVOIRE"],
393
+ 'CI' => ["COTE D'IVOIRE", "CôTE D'IVOIRE", "IVORY COAST", "REPUBLIC OF CôTE D'IVOIRE"],
395
394
  'CK' => ["COOK ISLANDS"],
396
395
  'CL' => ["CHILE"],
397
396
  'CM' => ["CAMEROON"],
398
397
  'CN' => ["CHINA", "PEOPLE'S REPUBLIC OF CHINA"],
399
398
  'CO' => ["COLOMBIA"],
399
+ 'CP' => ["CLIPPERTON ISLAND"],
400
400
  'CR' => ["COSTA RICA"],
401
401
  'CU' => ["CUBA"],
402
402
  'CV' => ["CAPE VERDE"],
403
+ 'CW' => ["CURACAO", "CURAçAO"],
403
404
  'CX' => ["CHRISTMAS ISLAND"],
404
405
  'CY' => ["CYPRUS"],
405
406
  'CZ' => ["CZECH REPUBLIC"],
406
407
  'DE' => ["GERMANY"],
408
+ 'DG' => ["DIEGO GARCIA"],
407
409
  'DJ' => ["DJIBOUTI"],
408
410
  'DK' => ["DENMARK"],
409
411
  'DM' => ["DOMINICA"],
410
412
  'DO' => ["DOMINICAN REPUBLIC"],
411
413
  'DZ' => ["ALGERIA"],
414
+ 'EA' => ["CEUTA, MELILLA"],
412
415
  'EC' => ["ECUADOR"],
413
416
  'EE' => ["ESTONIA"],
414
417
  'EG' => ["EGYPT"],
@@ -416,6 +419,7 @@ class Snail
416
419
  'ER' => ["ERITREA"],
417
420
  'ES' => ["SPAIN"],
418
421
  'ET' => ["ETHIOPIA"],
422
+ 'EU' => ["EUROPEAN UNION"],
419
423
  'FI' => ["FINLAND"],
420
424
  'FJ' => ["FIJI"],
421
425
  'FK' => ["FALKLAND ISLANDS"],
@@ -436,7 +440,7 @@ class Snail
436
440
  'GP' => ["GUADELOUPE"],
437
441
  'GQ' => ["EQUATORIAL GUINEA"],
438
442
  'GR' => ["GREECE"],
439
- 'GS' => ["SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS"],
443
+ 'GS' => ["SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS", "SOUTH GEORGIA", "SOUTH SANDWICH ISLANDS"],
440
444
  'GT' => ["GUATEMALA"],
441
445
  'GU' => ["GUAM"],
442
446
  'GW' => ["GUINEA-BISSAU"],
@@ -447,6 +451,7 @@ class Snail
447
451
  'HR' => ["CROATIA"],
448
452
  'HT' => ["HAITI"],
449
453
  'HU' => ["HUNGARY"],
454
+ 'IC' => ["CANARY ISLANDS"],
450
455
  'ID' => ["INDONESIA"],
451
456
  'IE' => ["IRELAND"],
452
457
  'IL' => ["ISRAEL"],
@@ -482,7 +487,7 @@ class Snail
482
487
  'LT' => ["LITHUANIA"],
483
488
  'LU' => ["LUXEMBOURG"],
484
489
  'LV' => ["LATVIA"],
485
- 'LY' => ["LIBYAN ARAB JAMAHIRIYA"],
490
+ 'LY' => ["LIBYA", "STATE OF LIBYA", "LIBYAN ARAB JAMAHIRIYA"],
486
491
  'MA' => ["MOROCCO"],
487
492
  'MC' => ["MONACO"],
488
493
  'MD' => ["MOLDOVA"],
@@ -527,9 +532,9 @@ class Snail
527
532
  'PK' => ["PAKISTAN"],
528
533
  'PL' => ["POLAND"],
529
534
  'PM' => ["SAINT PIERRE AND MIQUELON"],
530
- 'PN' => ["PITCAIRN"],
535
+ 'PN' => ["PITCAIRN", "PITCAIRN ISLAND", "PITCAIRN ISLANDS"],
531
536
  'PR' => ["PUERTO RICO"],
532
- 'PS' => ["PALESTINIAN TERRITORIES"],
537
+ 'PS' => ["PALESTINIAN TERRITORIES", "PALESTINIAN TERRITORY", "OCCUPIED PALESTINIAN TERRITORIES"],
533
538
  'PT' => ["PORTUGAL"],
534
539
  'PW' => ["PALAU"],
535
540
  'PY' => ["PARAGUAY"],
@@ -548,7 +553,7 @@ class Snail
548
553
  'SH' => ["SAINT HELENA"],
549
554
  'SI' => ["SLOVENIA"],
550
555
  'SJ' => ["SVALBARD AND JAN MAYEN"],
551
- 'SK' => ["SLOVAKIA"],
556
+ 'SK' => ["SLOVAKIA", "SLOVAK REPPUBLIC"],
552
557
  'SL' => ["SIERRA LEONE"],
553
558
  'SM' => ["SAN MARINO"],
554
559
  'SN' => ["SENEGAL"],
@@ -559,6 +564,7 @@ class Snail
559
564
  'SV' => ["EL SALVADOR"],
560
565
  'SY' => ["SYRIAN ARAB REPUBLIC", "SYRIA"],
561
566
  'SZ' => ["SWAZILAND"],
567
+ 'TA' => ["TRISTAN DA CUNHA"],
562
568
  'TC' => ["TURKS AND CAICOS ISLANDS"],
563
569
  'TD' => ["CHAD"],
564
570
  'TF' => ["FRENCH SOUTHERN TERRITORIES"],
@@ -566,7 +572,7 @@ class Snail
566
572
  'TH' => ["THAILAND"],
567
573
  'TJ' => ["TAJIKISTAN"],
568
574
  'TK' => ["TOKELAU"],
569
- 'TL' => ["TIMOR-LESTE"],
575
+ 'TL' => ["TIMOR-LESTE", "EAST TIMOR", "DEMOCRATIC REPUBLIC OF TIMOR-LESTE"],
570
576
  'TM' => ["TURKMENISTAN"],
571
577
  'TN' => ["TUNISIA"],
572
578
  'TO' => ["TONGA"],
@@ -584,12 +590,13 @@ class Snail
584
590
  'VA' => ["VATICAN CITY"],
585
591
  'VC' => ["SAINT VINCENT AND THE GRENADINES"],
586
592
  'VE' => ["VENEZUELA"],
587
- 'VG' => ["VIRGIN ISLANDS, BRITISH"],
593
+ 'VG' => ["VIRGIN ISLANDS, BRITISH", "BRITISH VIRGIN ISLANDS"],
588
594
  'VI' => ["VIRGIN ISLANDS, U.S."],
589
- 'VN' => ["VIET NAM"],
595
+ 'VN' => ["VIET NAM", "VIETNAM", "SOCIALIST REPUBLIC OF VIETNAM"],
590
596
  'VU' => ["VANUATU"],
591
- 'WF' => ["WALLIS AND FUTUNA"],
592
- 'WS' => ["SAMOA"],
597
+ 'WF' => ["WALLIS AND FUTUNA", "WALLIS AND FUTUNA ISLANDS"],
598
+ 'WS' => ["SAMOA", "INDEPENDENT STATE OF SAMOA", "WESTERN SAMOA"],
599
+ 'XK' => ["KOSOVO"],
593
600
  'YE' => ["YEMEN"],
594
601
  'YT' => ["MAYOTTE"],
595
602
  'ZA' => ["SOUTH AFRICA"],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-14 00:00:00.000000000 Z
12
+ date: 2013-01-28 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: International snail mail addressing is a pain. This begins to make it
15
15
  easier.
@@ -49,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
49
  version: '0'
50
50
  requirements: []
51
51
  rubyforge_project:
52
- rubygems_version: 1.8.11
52
+ rubygems_version: 1.8.24
53
53
  signing_key:
54
54
  specification_version: 3
55
55
  summary: Easily format snail mail addresses for international delivery