countries 0.11.3 → 0.11.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.markdown +0 -11
- data/countries.gemspec +1 -1
- data/lib/cache/translations.yaml +17080 -17080
- data/lib/countries/version.rb +1 -1
- data/lib/data/countries/AD.yaml +1 -1
- data/lib/data/countries/AE.yaml +3 -3
- data/lib/data/countries/AF.yaml +1 -1
- data/lib/data/countries/AG.yaml +1 -1
- data/lib/data/countries/AI.yaml +1 -1
- data/lib/data/countries/AL.yaml +1 -1
- data/lib/data/countries/AM.yaml +1 -1
- data/lib/data/countries/AN.yaml +1 -1
- data/lib/data/countries/AO.yaml +1 -1
- data/lib/data/countries/AQ.yaml +7 -7
- data/lib/data/countries/AR.yaml +1 -1
- data/lib/data/countries/AS.yaml +1 -1
- data/lib/data/countries/AT.yaml +2 -2
- data/lib/data/countries/AU.yaml +1 -1
- data/lib/data/countries/AW.yaml +1 -1
- data/lib/data/countries/AX.yaml +9 -9
- data/lib/data/countries/AZ.yaml +1 -1
- data/lib/data/countries/BA.yaml +1 -1
- data/lib/data/countries/BB.yaml +1 -1
- data/lib/data/countries/BD.yaml +1 -1
- data/lib/data/countries/BE.yaml +1 -1
- data/lib/data/countries/BF.yaml +1 -1
- data/lib/data/countries/BG.yaml +1 -1
- data/lib/data/countries/BH.yaml +2 -2
- data/lib/data/countries/BI.yaml +1 -1
- data/lib/data/countries/BJ.yaml +1 -1
- data/lib/data/countries/BL.yaml +5 -5
- data/lib/data/countries/BM.yaml +1 -1
- data/lib/data/countries/BN.yaml +1 -1
- data/lib/data/countries/BO.yaml +1 -1
- data/lib/data/countries/BQ.yaml +7 -7
- data/lib/data/countries/BR.yaml +1 -1
- data/lib/data/countries/BS.yaml +1 -1
- data/lib/data/countries/BT.yaml +1 -1
- data/lib/data/countries/BV.yaml +1 -1
- data/lib/data/countries/BW.yaml +1 -1
- data/lib/data/countries/BY.yaml +2 -2
- data/lib/data/countries/BZ.yaml +1 -1
- data/lib/data/countries/CA.yaml +1 -1
- data/lib/data/countries/CC.yaml +1 -1
- data/lib/data/countries/CD.yaml +1 -1
- data/lib/data/countries/CF.yaml +1 -1
- data/lib/data/countries/CG.yaml +1 -1
- data/lib/data/countries/CH.yaml +2 -2
- data/lib/data/countries/CI.yaml +1 -1
- data/lib/data/countries/CK.yaml +2 -2
- data/lib/data/countries/CL.yaml +1 -1
- data/lib/data/countries/CM.yaml +1 -1
- data/lib/data/countries/CN.yaml +1 -1
- data/lib/data/countries/CO.yaml +1 -1
- data/lib/data/countries/CR.yaml +1 -1
- data/lib/data/countries/CU.yaml +1 -1
- data/lib/data/countries/CV.yaml +1 -1
- data/lib/data/countries/CW.yaml +1 -1
- data/lib/data/countries/CX.yaml +1 -1
- data/lib/data/countries/CY.yaml +1 -1
- data/lib/data/countries/CZ.yaml +1 -1
- data/lib/data/countries/DE.yaml +1 -1
- data/lib/data/countries/DJ.yaml +2 -2
- data/lib/data/countries/DK.yaml +1 -1
- data/lib/data/countries/DM.yaml +1 -1
- data/lib/data/countries/DO.yaml +1 -1
- data/lib/data/countries/DZ.yaml +2 -2
- data/lib/data/countries/EC.yaml +2 -2
- data/lib/data/countries/EE.yaml +1 -1
- data/lib/data/countries/EG.yaml +4 -4
- data/lib/data/countries/EH.yaml +2 -2
- data/lib/data/countries/ER.yaml +3 -3
- data/lib/data/countries/ES.yaml +1 -1
- data/lib/data/countries/ET.yaml +3 -3
- data/lib/data/countries/FI.yaml +1 -1
- data/lib/data/countries/FJ.yaml +1 -1
- data/lib/data/countries/FK.yaml +2 -2
- data/lib/data/countries/FM.yaml +1 -1
- data/lib/data/countries/FO.yaml +2 -2
- data/lib/data/countries/FR.yaml +5 -5
- data/lib/data/countries/GA.yaml +1 -1
- data/lib/data/countries/GB.yaml +1 -1
- data/lib/data/countries/GD.yaml +1 -1
- data/lib/data/countries/GE.yaml +3 -3
- data/lib/data/countries/GF.yaml +1 -1
- data/lib/data/countries/GG.yaml +1 -1
- data/lib/data/countries/GH.yaml +1 -1
- data/lib/data/countries/GI.yaml +1 -1
- data/lib/data/countries/GL.yaml +1 -1
- data/lib/data/countries/GM.yaml +1 -1
- data/lib/data/countries/GN.yaml +1 -1
- data/lib/data/countries/GP.yaml +1 -1
- data/lib/data/countries/GQ.yaml +2 -2
- data/lib/data/countries/GR.yaml +1 -1
- data/lib/data/countries/GS.yaml +1 -1
- data/lib/data/countries/GT.yaml +1 -1
- data/lib/data/countries/GU.yaml +1 -1
- data/lib/data/countries/GW.yaml +1 -1
- data/lib/data/countries/GY.yaml +1 -1
- data/lib/data/countries/HK.yaml +1 -1
- data/lib/data/countries/HM.yaml +1 -1
- data/lib/data/countries/HN.yaml +1 -1
- data/lib/data/countries/HR.yaml +1 -1
- data/lib/data/countries/HT.yaml +1 -1
- data/lib/data/countries/HU.yaml +1 -1
- data/lib/data/countries/ID.yaml +1 -1
- data/lib/data/countries/IE.yaml +1 -1
- data/lib/data/countries/IL.yaml +1 -1
- data/lib/data/countries/IM.yaml +2 -2
- data/lib/data/countries/IN.yaml +1 -1
- data/lib/data/countries/IO.yaml +1 -1
- data/lib/data/countries/IQ.yaml +2 -2
- data/lib/data/countries/IR.yaml +1 -1
- data/lib/data/countries/IS.yaml +1 -1
- data/lib/data/countries/IT.yaml +1 -1
- data/lib/data/countries/JE.yaml +1 -1
- data/lib/data/countries/JM.yaml +1 -1
- data/lib/data/countries/JO.yaml +2 -2
- data/lib/data/countries/JP.yaml +1 -1
- data/lib/data/countries/KE.yaml +1 -1
- data/lib/data/countries/KG.yaml +1 -1
- data/lib/data/countries/KH.yaml +1 -1
- data/lib/data/countries/KI.yaml +1 -1
- data/lib/data/countries/KM.yaml +1 -1
- data/lib/data/countries/KN.yaml +1 -1
- data/lib/data/countries/KP.yaml +1 -1
- data/lib/data/countries/KR.yaml +2 -1
- data/lib/data/countries/KW.yaml +2 -2
- data/lib/data/countries/KY.yaml +2 -2
- data/lib/data/countries/KZ.yaml +1 -1
- data/lib/data/countries/LA.yaml +1 -1
- data/lib/data/countries/LB.yaml +2 -2
- data/lib/data/countries/LC.yaml +1 -1
- data/lib/data/countries/LI.yaml +1 -1
- data/lib/data/countries/LK.yaml +1 -1
- data/lib/data/countries/LR.yaml +1 -1
- data/lib/data/countries/LS.yaml +1 -1
- data/lib/data/countries/LT.yaml +2 -2
- data/lib/data/countries/LU.yaml +1 -1
- data/lib/data/countries/LV.yaml +1 -1
- data/lib/data/countries/LY.yaml +2 -2
- data/lib/data/countries/MA.yaml +2 -2
- data/lib/data/countries/MC.yaml +1 -1
- data/lib/data/countries/MD.yaml +1 -1
- data/lib/data/countries/ME.yaml +1 -1
- data/lib/data/countries/MF.yaml +5 -5
- data/lib/data/countries/MG.yaml +1 -1
- data/lib/data/countries/MH.yaml +2 -2
- data/lib/data/countries/MK.yaml +1 -1
- data/lib/data/countries/ML.yaml +1 -1
- data/lib/data/countries/MM.yaml +1 -1
- data/lib/data/countries/MN.yaml +1 -1
- data/lib/data/countries/MO.yaml +1 -1
- data/lib/data/countries/MP.yaml +5 -5
- data/lib/data/countries/MQ.yaml +1 -1
- data/lib/data/countries/MR.yaml +2 -2
- data/lib/data/countries/MS.yaml +1 -1
- data/lib/data/countries/MT.yaml +1 -1
- data/lib/data/countries/MU.yaml +2 -2
- data/lib/data/countries/MV.yaml +1 -1
- data/lib/data/countries/MW.yaml +1 -1
- data/lib/data/countries/MX.yaml +1 -1
- data/lib/data/countries/MY.yaml +1 -1
- data/lib/data/countries/MZ.yaml +1 -1
- data/lib/data/countries/NA.yaml +1 -1
- data/lib/data/countries/NC.yaml +1 -1
- data/lib/data/countries/NE.yaml +1 -1
- data/lib/data/countries/NF.yaml +6 -6
- data/lib/data/countries/NG.yaml +1 -1
- data/lib/data/countries/NI.yaml +1 -1
- data/lib/data/countries/NL.yaml +1 -1
- data/lib/data/countries/NO.yaml +1 -1
- data/lib/data/countries/NP.yaml +1 -1
- data/lib/data/countries/NR.yaml +1 -1
- data/lib/data/countries/NU.yaml +1 -1
- data/lib/data/countries/NZ.yaml +1 -1
- data/lib/data/countries/OM.yaml +2 -2
- data/lib/data/countries/PA.yaml +1 -1
- data/lib/data/countries/PE.yaml +1 -1
- data/lib/data/countries/PF.yaml +1 -1
- data/lib/data/countries/PG.yaml +1 -1
- data/lib/data/countries/PH.yaml +1 -1
- data/lib/data/countries/PK.yaml +1 -1
- data/lib/data/countries/PL.yaml +1 -1
- data/lib/data/countries/PM.yaml +1 -1
- data/lib/data/countries/PN.yaml +1 -1
- data/lib/data/countries/PR.yaml +1 -1
- data/lib/data/countries/PS.yaml +6 -6
- data/lib/data/countries/PT.yaml +1 -1
- data/lib/data/countries/PW.yaml +1 -1
- data/lib/data/countries/PY.yaml +1 -1
- data/lib/data/countries/QA.yaml +2 -2
- data/lib/data/countries/RE.yaml +1 -1
- data/lib/data/countries/RO.yaml +1 -1
- data/lib/data/countries/RS.yaml +1 -1
- data/lib/data/countries/RU.yaml +3 -3
- data/lib/data/countries/RW.yaml +1 -1
- data/lib/data/countries/SA.yaml +2 -2
- data/lib/data/countries/SB.yaml +2 -2
- data/lib/data/countries/SC.yaml +1 -1
- data/lib/data/countries/SD.yaml +2 -2
- data/lib/data/countries/SE.yaml +1 -1
- data/lib/data/countries/SG.yaml +1 -1
- data/lib/data/countries/SH.yaml +1 -1
- data/lib/data/countries/SI.yaml +1 -1
- data/lib/data/countries/SJ.yaml +2 -2
- data/lib/data/countries/SK.yaml +1 -1
- data/lib/data/countries/SL.yaml +1 -1
- data/lib/data/countries/SM.yaml +1 -1
- data/lib/data/countries/SN.yaml +1 -1
- data/lib/data/countries/SO.yaml +2 -2
- data/lib/data/countries/SR.yaml +1 -1
- data/lib/data/countries/SS.yaml +5 -5
- data/lib/data/countries/ST.yaml +1 -1
- data/lib/data/countries/SV.yaml +1 -1
- data/lib/data/countries/SX.yaml +5 -5
- data/lib/data/countries/SY.yaml +3 -3
- data/lib/data/countries/SZ.yaml +1 -1
- data/lib/data/countries/TC.yaml +2 -2
- data/lib/data/countries/TD.yaml +2 -2
- data/lib/data/countries/TF.yaml +1 -1
- data/lib/data/countries/TG.yaml +1 -1
- data/lib/data/countries/TH.yaml +1 -1
- data/lib/data/countries/TJ.yaml +1 -1
- data/lib/data/countries/TK.yaml +2 -2
- data/lib/data/countries/TL.yaml +1 -1
- data/lib/data/countries/TM.yaml +1 -1
- data/lib/data/countries/TN.yaml +2 -2
- data/lib/data/countries/TO.yaml +1 -1
- data/lib/data/countries/TR.yaml +1 -1
- data/lib/data/countries/TT.yaml +1 -1
- data/lib/data/countries/TV.yaml +1 -1
- data/lib/data/countries/TW.yaml +1 -1
- data/lib/data/countries/TZ.yaml +1 -1
- data/lib/data/countries/UA.yaml +4 -4
- data/lib/data/countries/UG.yaml +1 -1
- data/lib/data/countries/UM.yaml +7 -7
- data/lib/data/countries/US.yaml +2 -2
- data/lib/data/countries/UY.yaml +1 -1
- data/lib/data/countries/UZ.yaml +1 -1
- data/lib/data/countries/VA.yaml +1 -1
- data/lib/data/countries/VC.yaml +1 -1
- data/lib/data/countries/VE.yaml +1 -1
- data/lib/data/countries/VG.yaml +2 -2
- data/lib/data/countries/VI.yaml +2 -2
- data/lib/data/countries/VN.yaml +1 -1
- data/lib/data/countries/VU.yaml +1 -1
- data/lib/data/countries/WF.yaml +1 -1
- data/lib/data/countries/WS.yaml +1 -1
- data/lib/data/countries/YE.yaml +2 -2
- data/lib/data/countries/YT.yaml +1 -1
- data/lib/data/countries/ZA.yaml +1 -1
- data/lib/data/countries/ZM.yaml +1 -1
- data/lib/data/countries/ZW.yaml +1 -1
- data/lib/data/subdivisions/AE.yaml +6 -6
- data/lib/data/subdivisions/AM.yaml +2 -2
- data/lib/data/subdivisions/AZ.yaml +2 -2
- data/lib/data/subdivisions/BG.yaml +2 -2
- data/lib/data/subdivisions/CA.yaml +1 -1
- data/lib/data/subdivisions/CD.yaml +2 -2
- data/lib/data/subdivisions/CZ.yaml +3 -3
- data/lib/data/subdivisions/DK.yaml +2 -2
- data/lib/data/subdivisions/EE.yaml +1 -1
- data/lib/data/subdivisions/EG.yaml +1 -1
- data/lib/data/subdivisions/ES.yaml +3 -3
- data/lib/data/subdivisions/FI.yaml +2 -2
- data/lib/data/subdivisions/GE.yaml +1 -1
- data/lib/data/subdivisions/GR.yaml +1 -1
- data/lib/data/subdivisions/HR.yaml +2 -2
- data/lib/data/subdivisions/HU.yaml +2 -2
- data/lib/data/subdivisions/IE.yaml +1 -1
- data/lib/data/subdivisions/KG.yaml +1 -1
- data/lib/data/subdivisions/KZ.yaml +3 -3
- data/lib/data/subdivisions/LT.yaml +1 -1
- data/lib/data/subdivisions/LY.yaml +1 -1
- data/lib/data/subdivisions/ME.yaml +4 -4
- data/lib/data/subdivisions/MK.yaml +6 -6
- data/lib/data/subdivisions/MN.yaml +2 -2
- data/lib/data/subdivisions/MR.yaml +1 -1
- data/lib/data/subdivisions/MT.yaml +13 -13
- data/lib/data/subdivisions/NO.yaml +2 -2
- data/lib/data/subdivisions/PL.yaml +9 -9
- data/lib/data/subdivisions/PT.yaml +2 -2
- data/lib/data/subdivisions/PY.yaml +1 -1
- data/lib/data/subdivisions/RS.yaml +2 -2
- data/lib/data/subdivisions/RU.yaml +91 -91
- data/lib/data/subdivisions/SD.yaml +2 -2
- data/lib/data/subdivisions/SE.yaml +4 -4
- data/lib/data/subdivisions/SI.yaml +40 -40
- data/lib/data/subdivisions/SK.yaml +2 -2
- data/lib/data/subdivisions/TO.yaml +1 -1
- data/lib/data/subdivisions/TR.yaml +6 -6
- data/lib/data/subdivisions/UA.yaml +2 -2
- data/lib/data/subdivisions/UZ.yaml +1 -1
- data/lib/data/subdivisions/VU.yaml +1 -1
- data/lib/data/subdivisions/YE.yaml +3 -3
- data/spec/country_spec.rb +21 -2
- metadata +5 -4
@@ -90,7 +90,7 @@
|
|
90
90
|
names:
|
91
91
|
- East Equatoria
|
92
92
|
- Sharq al Istiwaiyya
|
93
|
-
-
|
93
|
+
- Šarq-al-Istiwaiyyah
|
94
94
|
'20':
|
95
95
|
name: Junqali
|
96
96
|
names:
|
@@ -109,7 +109,7 @@
|
|
109
109
|
name: A?ali an Nil
|
110
110
|
names:
|
111
111
|
- Upper Nile
|
112
|
-
-
|
112
|
+
- ʿAli an Nil
|
113
113
|
'24':
|
114
114
|
name: An Nil al Azraq
|
115
115
|
names:
|
@@ -15,8 +15,8 @@ D:
|
|
15
15
|
name: Södermanlands län
|
16
16
|
names: Södermanlands län
|
17
17
|
E:
|
18
|
-
name:
|
19
|
-
names:
|
18
|
+
name: Östergötlands län
|
19
|
+
names: Östergötlands län
|
20
20
|
F:
|
21
21
|
name: Jönköpings län
|
22
22
|
names: Jönköpings län
|
@@ -47,8 +47,8 @@ S:
|
|
47
47
|
name: Värmlands län
|
48
48
|
names: Värmlands län
|
49
49
|
T:
|
50
|
-
name:
|
51
|
-
names:
|
50
|
+
name: Örebro län
|
51
|
+
names: Örebro län
|
52
52
|
U:
|
53
53
|
name: Västmanlands län
|
54
54
|
names: Västmanlands län
|
@@ -96,8 +96,8 @@
|
|
96
96
|
name: Grosuplje
|
97
97
|
names: Grosuplje
|
98
98
|
'033':
|
99
|
-
name:
|
100
|
-
names:
|
99
|
+
name: Šalovci
|
100
|
+
names: Šalovci
|
101
101
|
'034':
|
102
102
|
name: Hrastnik
|
103
103
|
names: Hrastnik
|
@@ -348,38 +348,38 @@
|
|
348
348
|
name: Sveti Jurij
|
349
349
|
names: Sveti Jurij
|
350
350
|
'117':
|
351
|
-
name:
|
352
|
-
names:
|
351
|
+
name: Šencur
|
352
|
+
names: Šencur
|
353
353
|
'118':
|
354
|
-
name:
|
355
|
-
names:
|
354
|
+
name: Šentilj
|
355
|
+
names: Šentilj
|
356
356
|
'119':
|
357
|
-
name:
|
358
|
-
names:
|
357
|
+
name: Šentjernej
|
358
|
+
names: Šentjernej
|
359
359
|
'120':
|
360
|
-
name:
|
361
|
-
names:
|
360
|
+
name: Šentjur pri Celju
|
361
|
+
names: Šentjur pri Celju
|
362
362
|
'121':
|
363
|
-
name:
|
364
|
-
names:
|
363
|
+
name: Škocjan
|
364
|
+
names: Škocjan
|
365
365
|
'122':
|
366
|
-
name:
|
367
|
-
names:
|
366
|
+
name: Škofja Loka
|
367
|
+
names: Škofja Loka
|
368
368
|
'123':
|
369
|
-
name:
|
370
|
-
names:
|
369
|
+
name: Škofljica
|
370
|
+
names: Škofljica
|
371
371
|
'124':
|
372
|
-
name:
|
373
|
-
names:
|
372
|
+
name: Šmarje pri Jelšah
|
373
|
+
names: Šmarje pri Jelšah
|
374
374
|
'125':
|
375
|
-
name:
|
376
|
-
names:
|
375
|
+
name: Šmartno ob Paki
|
376
|
+
names: Šmartno ob Paki
|
377
377
|
'126':
|
378
|
-
name:
|
379
|
-
names:
|
378
|
+
name: Šoštanj
|
379
|
+
names: Šoštanj
|
380
380
|
'127':
|
381
|
-
name:
|
382
|
-
names:
|
381
|
+
name: Štore
|
382
|
+
names: Štore
|
383
383
|
'128':
|
384
384
|
name: Tolmin
|
385
385
|
names: Tolmin
|
@@ -432,11 +432,11 @@
|
|
432
432
|
name: Zrece
|
433
433
|
names: Zrece
|
434
434
|
'146':
|
435
|
-
name:
|
436
|
-
names:
|
435
|
+
name: Železniki
|
436
|
+
names: Železniki
|
437
437
|
'147':
|
438
|
-
name:
|
439
|
-
names:
|
438
|
+
name: Žiri
|
439
|
+
names: Žiri
|
440
440
|
'148':
|
441
441
|
name: Benedikt
|
442
442
|
names: Benedikt
|
@@ -543,8 +543,8 @@
|
|
543
543
|
name: Sveti Andraž v Slovenskih goricah
|
544
544
|
names: Sveti Andraž v Slovenskih goricah
|
545
545
|
'183':
|
546
|
-
name:
|
547
|
-
names:
|
546
|
+
name: Šempeter-Vrtojba
|
547
|
+
names: Šempeter-Vrtojba
|
548
548
|
'184':
|
549
549
|
name: Tabor
|
550
550
|
names: Tabor
|
@@ -564,17 +564,17 @@
|
|
564
564
|
name: Vransko
|
565
565
|
names: Vransko
|
566
566
|
'190':
|
567
|
-
name:
|
568
|
-
names:
|
567
|
+
name: Žalec
|
568
|
+
names: Žalec
|
569
569
|
'191':
|
570
|
-
name:
|
571
|
-
names:
|
570
|
+
name: Žetale
|
571
|
+
names: Žetale
|
572
572
|
'192':
|
573
|
-
name:
|
574
|
-
names:
|
573
|
+
name: Žirovnica
|
574
|
+
names: Žirovnica
|
575
575
|
'193':
|
576
|
-
name:
|
577
|
-
names:
|
576
|
+
name: Žužemberk
|
577
|
+
names: Žužemberk
|
578
578
|
'194':
|
579
|
-
name:
|
580
|
-
names:
|
579
|
+
name: Šmartno pri Litiji
|
580
|
+
names: Šmartno pri Litiji
|
@@ -54,15 +54,15 @@
|
|
54
54
|
name: Bursa
|
55
55
|
names: Bursa
|
56
56
|
'17':
|
57
|
-
name:
|
58
|
-
names:
|
57
|
+
name: Çanakkale
|
58
|
+
names: Çanakkale
|
59
59
|
'18':
|
60
|
-
name:
|
60
|
+
name: Çankiri
|
61
61
|
names:
|
62
|
-
-
|
62
|
+
- Çankiri
|
63
63
|
'19':
|
64
|
-
name:
|
65
|
-
names:
|
64
|
+
name: Çorum
|
65
|
+
names: Çorum
|
66
66
|
'20':
|
67
67
|
name: Denizli
|
68
68
|
names: Denizli
|
@@ -3,10 +3,10 @@ AB:
|
|
3
3
|
name: Abyan
|
4
4
|
names: Abyan
|
5
5
|
AD:
|
6
|
-
name:
|
6
|
+
name: ʿAdan
|
7
7
|
names:
|
8
8
|
- Adan
|
9
|
-
-
|
9
|
+
- ʿAdan
|
10
10
|
- Aden
|
11
11
|
- Aden
|
12
12
|
- Adén
|
@@ -25,7 +25,7 @@ DH:
|
|
25
25
|
names:
|
26
26
|
- Dhamar
|
27
27
|
- Dhomar
|
28
|
-
-
|
28
|
+
- Đomar
|
29
29
|
HD:
|
30
30
|
name: Hadramawt
|
31
31
|
names:
|
data/spec/country_spec.rb
CHANGED
@@ -465,10 +465,29 @@ describe ISO3166::Country do
|
|
465
465
|
|
466
466
|
# Spot checks #241
|
467
467
|
context 'when search name not found' do
|
468
|
-
let(:
|
468
|
+
let(:israel) { ISO3166::Country.find_country_by_name('Israel') }
|
469
469
|
|
470
470
|
it 'should be a country instance' do
|
471
|
-
expect(
|
471
|
+
expect(israel.alpha2).to eq('IL')
|
472
|
+
end
|
473
|
+
end
|
474
|
+
|
475
|
+
# Spot checks #241
|
476
|
+
context 'when search name not found' do
|
477
|
+
let(:israel) { ISO3166::Country.find_by_name('Israel') }
|
478
|
+
|
479
|
+
it 'should be a country instance' do
|
480
|
+
expect(israel[0]).to eq('IL')
|
481
|
+
end
|
482
|
+
end
|
483
|
+
|
484
|
+
# Spot checks #241
|
485
|
+
context 'when search name not found' do
|
486
|
+
let(:israel) { ISO3166::Country.find_all_by(:name, 'Israel') }
|
487
|
+
|
488
|
+
it 'should be a country instance' do
|
489
|
+
expect(israel.size).to eq(1)
|
490
|
+
expect(israel.first[0]).to eq('IL')
|
472
491
|
end
|
473
492
|
end
|
474
493
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: countries
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Robinson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-05-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n_data
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.
|
20
|
+
version: 0.7.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 0.
|
27
|
+
version: 0.7.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: currencies
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -568,3 +568,4 @@ test_files:
|
|
568
568
|
- spec/country_spec.rb
|
569
569
|
- spec/mongoid_spec.rb
|
570
570
|
- spec/spec_helper.rb
|
571
|
+
has_rdoc:
|