countries 4.2.1 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/codeql-analysis.yml +70 -0
- data/.github/workflows/tests.yml +1 -5
- data/.rubocop.yml +40 -1
- data/.rubocop_todo.yml +8 -41
- data/CHANGELOG.md +33 -5
- data/Gemfile +5 -3
- data/LICENSE +3 -1
- data/README.markdown +34 -18
- data/Rakefile +15 -31
- data/bin/console +1 -0
- data/countries.gemspec +12 -10
- data/lib/countries/cache/countries.json +1 -1
- data/lib/countries/cache/locales/oc.json +1 -1
- data/lib/countries/cache/locales/ti.json +1 -1
- data/lib/countries/cache/locales/zu.json +1 -1
- data/lib/countries/configuration.rb +2 -0
- data/lib/countries/country/class_methods.rb +12 -97
- data/lib/countries/country/currency_methods.rb +2 -0
- data/lib/countries/country/emoji.rb +2 -3
- data/lib/countries/country/finder_methods.rb +81 -0
- data/lib/countries/country.rb +3 -40
- data/lib/countries/data/countries/AE.yaml +1 -1
- data/lib/countries/data/countries/KN.yaml +0 -1
- data/lib/countries/data/subdivisions/AD.yaml +21 -21
- data/lib/countries/data/subdivisions/AF.yaml +2 -2
- data/lib/countries/data/subdivisions/AG.yaml +1 -1
- data/lib/countries/data/subdivisions/AI.yaml +98 -98
- data/lib/countries/data/subdivisions/AL.yaml +82 -626
- data/lib/countries/data/subdivisions/AZ.yaml +5 -5
- data/lib/countries/data/subdivisions/BA.yaml +11 -11
- data/lib/countries/data/subdivisions/BD.yaml +8 -8
- data/lib/countries/data/subdivisions/BE.yaml +2 -2
- data/lib/countries/data/subdivisions/BF.yaml +13 -13
- data/lib/countries/data/subdivisions/BI.yaml +3 -3
- data/lib/countries/data/subdivisions/BM.yaml +77 -77
- data/lib/countries/data/subdivisions/BS.yaml +22 -22
- data/lib/countries/data/subdivisions/BW.yaml +7 -7
- data/lib/countries/data/subdivisions/BY.yaml +1 -1
- data/lib/countries/data/subdivisions/CD.yaml +19 -19
- data/lib/countries/data/subdivisions/CG.yaml +1 -1
- data/lib/countries/data/subdivisions/CI.yaml +14 -14
- data/lib/countries/data/subdivisions/CK.yaml +77 -77
- data/lib/countries/data/subdivisions/CN.yaml +0 -107
- data/lib/countries/data/subdivisions/CV.yaml +9 -9
- data/lib/countries/data/subdivisions/DK.yaml +1 -0
- data/lib/countries/data/subdivisions/DO.yaml +11 -11
- data/lib/countries/data/subdivisions/EE.yaml +78 -2
- data/lib/countries/data/subdivisions/EH.yaml +12 -12
- data/lib/countries/data/subdivisions/ES.yaml +17 -17
- data/lib/countries/data/subdivisions/FI.yaml +16 -16
- data/lib/countries/data/subdivisions/FJ.yaml +14 -14
- data/lib/countries/data/subdivisions/GB.yaml +21 -20
- data/lib/countries/data/subdivisions/GH.yaml +7 -7
- data/lib/countries/data/subdivisions/GL.yaml +6 -6
- data/lib/countries/data/subdivisions/GN.yaml +7 -7
- data/lib/countries/data/subdivisions/GQ.yaml +1 -0
- data/lib/countries/data/subdivisions/GR.yaml +1 -1
- data/lib/countries/data/subdivisions/GW.yaml +3 -3
- data/lib/countries/data/subdivisions/HT.yaml +1 -1
- data/lib/countries/data/subdivisions/ID.yaml +41 -41
- data/lib/countries/data/subdivisions/IE.yaml +1 -2
- data/lib/countries/data/subdivisions/IN.yaml +4 -3
- data/lib/countries/data/subdivisions/IQ.yaml +1 -1
- data/lib/countries/data/subdivisions/IR.yaml +2 -1
- data/lib/countries/data/subdivisions/IS.yaml +72 -0
- data/lib/countries/data/subdivisions/IT.yaml +7 -8
- data/lib/countries/data/subdivisions/KG.yaml +1 -1
- data/lib/countries/data/subdivisions/KH.yaml +1 -1
- data/lib/countries/data/subdivisions/KN.yaml +2 -2
- data/lib/countries/data/subdivisions/KP.yaml +12 -12
- data/lib/countries/data/subdivisions/KR.yaml +1 -1
- data/lib/countries/data/subdivisions/KZ.yaml +1 -1
- data/lib/countries/data/subdivisions/LA.yaml +1 -1
- data/lib/countries/data/subdivisions/LB.yaml +2 -2
- data/lib/countries/data/subdivisions/LC.yaml +10 -10
- data/lib/countries/data/subdivisions/LK.yaml +9 -9
- data/lib/countries/data/subdivisions/LR.yaml +2 -2
- data/lib/countries/data/subdivisions/LT.yaml +60 -60
- data/lib/countries/data/subdivisions/LU.yaml +1 -1
- data/lib/countries/data/subdivisions/LV.yaml +1 -1
- data/lib/countries/data/subdivisions/MA.yaml +35 -35
- data/lib/countries/data/subdivisions/MC.yaml +17 -17
- data/lib/countries/data/subdivisions/MD.yaml +740 -740
- data/lib/countries/data/subdivisions/ME.yaml +3 -3
- data/lib/countries/data/subdivisions/MH.yaml +2 -2
- data/lib/countries/data/subdivisions/ML.yaml +2 -2
- data/lib/countries/data/subdivisions/MM.yaml +1 -1
- data/lib/countries/data/subdivisions/MR.yaml +3 -3
- data/lib/countries/data/subdivisions/MV.yaml +8 -8
- data/lib/countries/data/subdivisions/MW.yaml +4 -4
- data/lib/countries/data/subdivisions/MX.yaml +1 -1
- data/lib/countries/data/subdivisions/NL.yaml +6 -6
- data/lib/countries/data/subdivisions/NO.yaml +1 -0
- data/lib/countries/data/subdivisions/NP.yaml +12 -12
- data/lib/countries/data/subdivisions/NZ.yaml +1 -1
- data/lib/countries/data/subdivisions/OM.yaml +6 -6
- data/lib/countries/data/subdivisions/PG.yaml +3 -3
- data/lib/countries/data/subdivisions/PH.yaml +16 -16
- data/lib/countries/data/subdivisions/PK.yaml +2 -2
- data/lib/countries/data/subdivisions/PS.yaml +16 -16
- data/lib/countries/data/subdivisions/QA.yaml +2 -2
- data/lib/countries/data/subdivisions/RS.yaml +2 -2
- data/lib/countries/data/subdivisions/SC.yaml +4 -2
- data/lib/countries/data/subdivisions/SH.yaml +1 -1
- data/lib/countries/data/subdivisions/SI.yaml +19 -19
- data/lib/countries/data/subdivisions/SJ.yaml +14 -14
- data/lib/countries/data/subdivisions/SL.yaml +1 -1
- data/lib/countries/data/subdivisions/SN.yaml +3 -3
- data/lib/countries/data/subdivisions/SS.yaml +10 -10
- data/lib/countries/data/subdivisions/ST.yaml +6 -0
- data/lib/countries/data/subdivisions/TD.yaml +6 -6
- data/lib/countries/data/subdivisions/TH.yaml +1 -1
- data/lib/countries/data/subdivisions/TJ.yaml +2 -2
- data/lib/countries/data/subdivisions/TK.yaml +21 -21
- data/lib/countries/data/subdivisions/TM.yaml +1 -1
- data/lib/countries/data/subdivisions/TT.yaml +2 -2
- data/lib/countries/data/subdivisions/TV.yaml +1 -1
- data/lib/countries/data/subdivisions/TW.yaml +3 -17
- data/lib/countries/data/subdivisions/TZ.yaml +5 -5
- data/lib/countries/data/subdivisions/UG.yaml +59 -52
- data/lib/countries/data/subdivisions/UM.yaml +0 -10
- data/lib/countries/data/subdivisions/WF.yaml +3 -13
- data/lib/countries/data/subdivisions/YE.yaml +3 -3
- data/lib/countries/data/subdivisions/ZA.yaml +2 -2
- data/lib/countries/data/subdivisions/ZM.yaml +1 -1
- data/lib/countries/data.rb +34 -37
- data/lib/countries/global.rb +2 -0
- data/lib/countries/iso3166.rb +3 -0
- data/lib/countries/kwarg_struct.rb +2 -0
- data/lib/countries/mongoid.rb +2 -0
- data/lib/countries/sources/cldr/downloader.rb +8 -8
- data/lib/countries/sources/cldr/subdivision.rb +3 -0
- data/lib/countries/sources/cldr/subdivision_updater.rb +23 -17
- data/lib/countries/sources/local/cached_loader.rb +3 -0
- data/lib/countries/sources/local/subdivision.rb +5 -2
- data/lib/countries/sources.rb +2 -0
- data/lib/countries/structure.rb +1 -1
- data/lib/countries/subdivision.rb +2 -0
- data/lib/countries/tasks/geocoding.rake +15 -6
- data/lib/countries/tasks/postal_codes.rake +5 -3
- data/lib/countries/timezones.rb +5 -2
- data/lib/countries/translations.rb +2 -0
- data/lib/countries/version.rb +3 -1
- data/lib/countries.rb +2 -0
- data/spec/00_global_spec.rb +2 -0
- data/spec/configuration_spec.rb +11 -5
- data/spec/country_spec.rb +71 -22
- data/spec/data_spec.rb +24 -18
- data/spec/mongoid_spec.rb +2 -2
- data/spec/perf_spec.rb +16 -16
- data/spec/spec_helper.rb +2 -0
- data/spec/subdivision_spec.rb +6 -4
- data/spec/thread_safety_spec.rb +4 -3
- data/spec/timezone_spec.rb +2 -0
- metadata +18 -45
- data/lib/countries/data/subdivisions/AS.yaml +0 -85
- data/lib/countries/data/subdivisions/AW.yaml +0 -9
- data/lib/countries/data/subdivisions/AX.yaml +0 -51
- data/lib/countries/data/subdivisions/BL.yaml +0 -11
- data/lib/countries/data/subdivisions/CP.yaml +0 -4
- data/lib/countries/data/subdivisions/CW.yaml +0 -9
- data/lib/countries/data/subdivisions/GF.yaml +0 -11
- data/lib/countries/data/subdivisions/GG.yaml +0 -155
- data/lib/countries/data/subdivisions/GP.yaml +0 -11
- data/lib/countries/data/subdivisions/GU.yaml +0 -275
- data/lib/countries/data/subdivisions/HK.yaml +0 -267
- data/lib/countries/data/subdivisions/IC.yaml +0 -4
- data/lib/countries/data/subdivisions/IM.yaml +0 -337
- data/lib/countries/data/subdivisions/JE.yaml +0 -169
- data/lib/countries/data/subdivisions/MF.yaml +0 -9
- data/lib/countries/data/subdivisions/MO.yaml +0 -9
- data/lib/countries/data/subdivisions/MP.yaml +0 -71
- data/lib/countries/data/subdivisions/MQ.yaml +0 -11
- data/lib/countries/data/subdivisions/MS.yaml +0 -43
- data/lib/countries/data/subdivisions/NC.yaml +0 -57
- data/lib/countries/data/subdivisions/PF.yaml +0 -81
- data/lib/countries/data/subdivisions/PM.yaml +0 -39
- data/lib/countries/data/subdivisions/PR.yaml +0 -1107
- data/lib/countries/data/subdivisions/RE.yaml +0 -11
- data/lib/countries/data/subdivisions/SX.yaml +0 -9
- data/lib/countries/data/subdivisions/TA.yaml +0 -4
- data/lib/countries/data/subdivisions/TF.yaml +0 -67
- data/lib/countries/data/subdivisions/VI.yaml +0 -57
- data/lib/countries/data/subdivisions/YT.yaml +0 -247
- data/lib/countries/setup.rb +0 -18
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:
|
4
|
+
version: 5.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Robinson
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2022-
|
14
|
+
date: 2022-04-03 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: i18n_data
|
@@ -19,14 +19,14 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - "~>"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
22
|
+
version: 0.16.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.16.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: sixarm_ruby_unaccent
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: '1.1'
|
44
44
|
- !ruby/object:Gem::Dependency
|
45
|
-
name:
|
45
|
+
name: activesupport
|
46
46
|
requirement: !ruby/object:Gem::Requirement
|
47
47
|
requirements:
|
48
48
|
- - ">="
|
@@ -56,33 +56,33 @@ dependencies:
|
|
56
56
|
- !ruby/object:Gem::Version
|
57
57
|
version: '3'
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
|
-
name:
|
59
|
+
name: nokogiri
|
60
60
|
requirement: !ruby/object:Gem::Requirement
|
61
61
|
requirements:
|
62
62
|
- - ">="
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version: '
|
64
|
+
version: '1.8'
|
65
65
|
type: :development
|
66
66
|
prerelease: false
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
69
|
- - ">="
|
70
70
|
- !ruby/object:Gem::Version
|
71
|
-
version: '
|
71
|
+
version: '1.8'
|
72
72
|
- !ruby/object:Gem::Dependency
|
73
|
-
name:
|
73
|
+
name: rspec
|
74
74
|
requirement: !ruby/object:Gem::Requirement
|
75
75
|
requirements:
|
76
76
|
- - ">="
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version: '
|
78
|
+
version: '3'
|
79
79
|
type: :development
|
80
80
|
prerelease: false
|
81
81
|
version_requirements: !ruby/object:Gem::Requirement
|
82
82
|
requirements:
|
83
83
|
- - ">="
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version: '
|
85
|
+
version: '3'
|
86
86
|
description: All sorts of useful information about every country packaged as pretty
|
87
87
|
little country objects. It includes data from ISO 3166
|
88
88
|
email:
|
@@ -93,6 +93,7 @@ executables: []
|
|
93
93
|
extensions: []
|
94
94
|
extra_rdoc_files: []
|
95
95
|
files:
|
96
|
+
- ".github/workflows/codeql-analysis.yml"
|
96
97
|
- ".github/workflows/tests.yml"
|
97
98
|
- ".gitignore"
|
98
99
|
- ".rspec"
|
@@ -244,6 +245,7 @@ files:
|
|
244
245
|
- lib/countries/country/class_methods.rb
|
245
246
|
- lib/countries/country/currency_methods.rb
|
246
247
|
- lib/countries/country/emoji.rb
|
248
|
+
- lib/countries/country/finder_methods.rb
|
247
249
|
- lib/countries/data.rb
|
248
250
|
- lib/countries/data/countries/AD.yaml
|
249
251
|
- lib/countries/data/countries/AE.yaml
|
@@ -503,11 +505,8 @@ files:
|
|
503
505
|
- lib/countries/data/subdivisions/AM.yaml
|
504
506
|
- lib/countries/data/subdivisions/AO.yaml
|
505
507
|
- lib/countries/data/subdivisions/AR.yaml
|
506
|
-
- lib/countries/data/subdivisions/AS.yaml
|
507
508
|
- lib/countries/data/subdivisions/AT.yaml
|
508
509
|
- lib/countries/data/subdivisions/AU.yaml
|
509
|
-
- lib/countries/data/subdivisions/AW.yaml
|
510
|
-
- lib/countries/data/subdivisions/AX.yaml
|
511
510
|
- lib/countries/data/subdivisions/AZ.yaml
|
512
511
|
- lib/countries/data/subdivisions/BA.yaml
|
513
512
|
- lib/countries/data/subdivisions/BB.yaml
|
@@ -518,7 +517,6 @@ files:
|
|
518
517
|
- lib/countries/data/subdivisions/BH.yaml
|
519
518
|
- lib/countries/data/subdivisions/BI.yaml
|
520
519
|
- lib/countries/data/subdivisions/BJ.yaml
|
521
|
-
- lib/countries/data/subdivisions/BL.yaml
|
522
520
|
- lib/countries/data/subdivisions/BM.yaml
|
523
521
|
- lib/countries/data/subdivisions/BN.yaml
|
524
522
|
- lib/countries/data/subdivisions/BO.yaml
|
@@ -540,11 +538,9 @@ files:
|
|
540
538
|
- lib/countries/data/subdivisions/CM.yaml
|
541
539
|
- lib/countries/data/subdivisions/CN.yaml
|
542
540
|
- lib/countries/data/subdivisions/CO.yaml
|
543
|
-
- lib/countries/data/subdivisions/CP.yaml
|
544
541
|
- lib/countries/data/subdivisions/CR.yaml
|
545
542
|
- lib/countries/data/subdivisions/CU.yaml
|
546
543
|
- lib/countries/data/subdivisions/CV.yaml
|
547
|
-
- lib/countries/data/subdivisions/CW.yaml
|
548
544
|
- lib/countries/data/subdivisions/CY.yaml
|
549
545
|
- lib/countries/data/subdivisions/CZ.yaml
|
550
546
|
- lib/countries/data/subdivisions/DE.yaml
|
@@ -568,35 +564,27 @@ files:
|
|
568
564
|
- lib/countries/data/subdivisions/GB.yaml
|
569
565
|
- lib/countries/data/subdivisions/GD.yaml
|
570
566
|
- lib/countries/data/subdivisions/GE.yaml
|
571
|
-
- lib/countries/data/subdivisions/GF.yaml
|
572
|
-
- lib/countries/data/subdivisions/GG.yaml
|
573
567
|
- lib/countries/data/subdivisions/GH.yaml
|
574
568
|
- lib/countries/data/subdivisions/GL.yaml
|
575
569
|
- lib/countries/data/subdivisions/GM.yaml
|
576
570
|
- lib/countries/data/subdivisions/GN.yaml
|
577
|
-
- lib/countries/data/subdivisions/GP.yaml
|
578
571
|
- lib/countries/data/subdivisions/GQ.yaml
|
579
572
|
- lib/countries/data/subdivisions/GR.yaml
|
580
573
|
- lib/countries/data/subdivisions/GT.yaml
|
581
|
-
- lib/countries/data/subdivisions/GU.yaml
|
582
574
|
- lib/countries/data/subdivisions/GW.yaml
|
583
575
|
- lib/countries/data/subdivisions/GY.yaml
|
584
|
-
- lib/countries/data/subdivisions/HK.yaml
|
585
576
|
- lib/countries/data/subdivisions/HN.yaml
|
586
577
|
- lib/countries/data/subdivisions/HR.yaml
|
587
578
|
- lib/countries/data/subdivisions/HT.yaml
|
588
579
|
- lib/countries/data/subdivisions/HU.yaml
|
589
|
-
- lib/countries/data/subdivisions/IC.yaml
|
590
580
|
- lib/countries/data/subdivisions/ID.yaml
|
591
581
|
- lib/countries/data/subdivisions/IE.yaml
|
592
582
|
- lib/countries/data/subdivisions/IL.yaml
|
593
|
-
- lib/countries/data/subdivisions/IM.yaml
|
594
583
|
- lib/countries/data/subdivisions/IN.yaml
|
595
584
|
- lib/countries/data/subdivisions/IQ.yaml
|
596
585
|
- lib/countries/data/subdivisions/IR.yaml
|
597
586
|
- lib/countries/data/subdivisions/IS.yaml
|
598
587
|
- lib/countries/data/subdivisions/IT.yaml
|
599
|
-
- lib/countries/data/subdivisions/JE.yaml
|
600
588
|
- lib/countries/data/subdivisions/JM.yaml
|
601
589
|
- lib/countries/data/subdivisions/JO.yaml
|
602
590
|
- lib/countries/data/subdivisions/JP.yaml
|
@@ -625,18 +613,13 @@ files:
|
|
625
613
|
- lib/countries/data/subdivisions/MC.yaml
|
626
614
|
- lib/countries/data/subdivisions/MD.yaml
|
627
615
|
- lib/countries/data/subdivisions/ME.yaml
|
628
|
-
- lib/countries/data/subdivisions/MF.yaml
|
629
616
|
- lib/countries/data/subdivisions/MG.yaml
|
630
617
|
- lib/countries/data/subdivisions/MH.yaml
|
631
618
|
- lib/countries/data/subdivisions/MK.yaml
|
632
619
|
- lib/countries/data/subdivisions/ML.yaml
|
633
620
|
- lib/countries/data/subdivisions/MM.yaml
|
634
621
|
- lib/countries/data/subdivisions/MN.yaml
|
635
|
-
- lib/countries/data/subdivisions/MO.yaml
|
636
|
-
- lib/countries/data/subdivisions/MP.yaml
|
637
|
-
- lib/countries/data/subdivisions/MQ.yaml
|
638
622
|
- lib/countries/data/subdivisions/MR.yaml
|
639
|
-
- lib/countries/data/subdivisions/MS.yaml
|
640
623
|
- lib/countries/data/subdivisions/MT.yaml
|
641
624
|
- lib/countries/data/subdivisions/MU.yaml
|
642
625
|
- lib/countries/data/subdivisions/MV.yaml
|
@@ -645,7 +628,6 @@ files:
|
|
645
628
|
- lib/countries/data/subdivisions/MY.yaml
|
646
629
|
- lib/countries/data/subdivisions/MZ.yaml
|
647
630
|
- lib/countries/data/subdivisions/NA.yaml
|
648
|
-
- lib/countries/data/subdivisions/NC.yaml
|
649
631
|
- lib/countries/data/subdivisions/NE.yaml
|
650
632
|
- lib/countries/data/subdivisions/NG.yaml
|
651
633
|
- lib/countries/data/subdivisions/NI.yaml
|
@@ -657,19 +639,15 @@ files:
|
|
657
639
|
- lib/countries/data/subdivisions/OM.yaml
|
658
640
|
- lib/countries/data/subdivisions/PA.yaml
|
659
641
|
- lib/countries/data/subdivisions/PE.yaml
|
660
|
-
- lib/countries/data/subdivisions/PF.yaml
|
661
642
|
- lib/countries/data/subdivisions/PG.yaml
|
662
643
|
- lib/countries/data/subdivisions/PH.yaml
|
663
644
|
- lib/countries/data/subdivisions/PK.yaml
|
664
645
|
- lib/countries/data/subdivisions/PL.yaml
|
665
|
-
- lib/countries/data/subdivisions/PM.yaml
|
666
|
-
- lib/countries/data/subdivisions/PR.yaml
|
667
646
|
- lib/countries/data/subdivisions/PS.yaml
|
668
647
|
- lib/countries/data/subdivisions/PT.yaml
|
669
648
|
- lib/countries/data/subdivisions/PW.yaml
|
670
649
|
- lib/countries/data/subdivisions/PY.yaml
|
671
650
|
- lib/countries/data/subdivisions/QA.yaml
|
672
|
-
- lib/countries/data/subdivisions/RE.yaml
|
673
651
|
- lib/countries/data/subdivisions/RO.yaml
|
674
652
|
- lib/countries/data/subdivisions/RS.yaml
|
675
653
|
- lib/countries/data/subdivisions/RU.yaml
|
@@ -692,12 +670,9 @@ files:
|
|
692
670
|
- lib/countries/data/subdivisions/SS.yaml
|
693
671
|
- lib/countries/data/subdivisions/ST.yaml
|
694
672
|
- lib/countries/data/subdivisions/SV.yaml
|
695
|
-
- lib/countries/data/subdivisions/SX.yaml
|
696
673
|
- lib/countries/data/subdivisions/SY.yaml
|
697
674
|
- lib/countries/data/subdivisions/SZ.yaml
|
698
|
-
- lib/countries/data/subdivisions/TA.yaml
|
699
675
|
- lib/countries/data/subdivisions/TD.yaml
|
700
|
-
- lib/countries/data/subdivisions/TF.yaml
|
701
676
|
- lib/countries/data/subdivisions/TG.yaml
|
702
677
|
- lib/countries/data/subdivisions/TH.yaml
|
703
678
|
- lib/countries/data/subdivisions/TJ.yaml
|
@@ -719,13 +694,11 @@ files:
|
|
719
694
|
- lib/countries/data/subdivisions/UZ.yaml
|
720
695
|
- lib/countries/data/subdivisions/VC.yaml
|
721
696
|
- lib/countries/data/subdivisions/VE.yaml
|
722
|
-
- lib/countries/data/subdivisions/VI.yaml
|
723
697
|
- lib/countries/data/subdivisions/VN.yaml
|
724
698
|
- lib/countries/data/subdivisions/VU.yaml
|
725
699
|
- lib/countries/data/subdivisions/WF.yaml
|
726
700
|
- lib/countries/data/subdivisions/WS.yaml
|
727
701
|
- lib/countries/data/subdivisions/YE.yaml
|
728
|
-
- lib/countries/data/subdivisions/YT.yaml
|
729
702
|
- lib/countries/data/subdivisions/ZA.yaml
|
730
703
|
- lib/countries/data/subdivisions/ZM.yaml
|
731
704
|
- lib/countries/data/subdivisions/ZW.yaml
|
@@ -734,7 +707,6 @@ files:
|
|
734
707
|
- lib/countries/iso3166.rb
|
735
708
|
- lib/countries/kwarg_struct.rb
|
736
709
|
- lib/countries/mongoid.rb
|
737
|
-
- lib/countries/setup.rb
|
738
710
|
- lib/countries/sources.rb
|
739
711
|
- lib/countries/sources/cldr/downloader.rb
|
740
712
|
- lib/countries/sources/cldr/subdivision.rb
|
@@ -758,14 +730,15 @@ files:
|
|
758
730
|
- spec/subdivision_spec.rb
|
759
731
|
- spec/thread_safety_spec.rb
|
760
732
|
- spec/timezone_spec.rb
|
761
|
-
homepage:
|
733
|
+
homepage: https://github.com/countries/countries
|
762
734
|
licenses:
|
763
735
|
- MIT
|
764
736
|
metadata:
|
765
|
-
bug_tracker_uri:
|
737
|
+
bug_tracker_uri: https://github.com/countries/countries/issues
|
766
738
|
changelog_uri: https://github.com/countries/countries/blob/master/CHANGELOG.md
|
767
739
|
source_code_uri: https://github.com/countries/countries
|
768
740
|
wiki_uri: https://github.com/countries/countries/wiki
|
741
|
+
rubygems_mfa_required: 'true'
|
769
742
|
post_install_message:
|
770
743
|
rdoc_options: []
|
771
744
|
require_paths:
|
@@ -774,14 +747,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
774
747
|
requirements:
|
775
748
|
- - ">="
|
776
749
|
- !ruby/object:Gem::Version
|
777
|
-
version: '2.
|
750
|
+
version: '2.7'
|
778
751
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
779
752
|
requirements:
|
780
753
|
- - ">="
|
781
754
|
- !ruby/object:Gem::Version
|
782
755
|
version: '0'
|
783
756
|
requirements: []
|
784
|
-
rubygems_version: 3.3.
|
757
|
+
rubygems_version: 3.3.7
|
785
758
|
signing_key:
|
786
759
|
specification_version: 4
|
787
760
|
summary: Gives you a country object full of all sorts of useful information.
|
@@ -1,85 +0,0 @@
|
|
1
|
-
---
|
2
|
-
'010':
|
3
|
-
name: Eastern District
|
4
|
-
code:
|
5
|
-
unofficial_names: Eastern District
|
6
|
-
geo:
|
7
|
-
latitude: -14.26667
|
8
|
-
longitude: -170.65
|
9
|
-
min_latitude:
|
10
|
-
min_longitude:
|
11
|
-
max_latitude:
|
12
|
-
max_longitude:
|
13
|
-
translations:
|
14
|
-
en: Eastern District
|
15
|
-
comments:
|
16
|
-
'020':
|
17
|
-
name: Manu'a District
|
18
|
-
code:
|
19
|
-
unofficial_names: Manu'a District
|
20
|
-
geo:
|
21
|
-
latitude: -14.23327
|
22
|
-
longitude: -169.47458
|
23
|
-
min_latitude:
|
24
|
-
min_longitude:
|
25
|
-
max_latitude:
|
26
|
-
max_longitude:
|
27
|
-
translations:
|
28
|
-
en: Manu'a District
|
29
|
-
comments:
|
30
|
-
'030':
|
31
|
-
name: Rose Atoll
|
32
|
-
code:
|
33
|
-
unofficial_names: Rose Atoll
|
34
|
-
geo:
|
35
|
-
latitude: -14.54583
|
36
|
-
longitude: -168.15
|
37
|
-
min_latitude:
|
38
|
-
min_longitude:
|
39
|
-
max_latitude:
|
40
|
-
max_longitude:
|
41
|
-
translations:
|
42
|
-
en: Rose Atoll
|
43
|
-
comments:
|
44
|
-
'040':
|
45
|
-
name: Swains Island
|
46
|
-
code:
|
47
|
-
unofficial_names: Swains Island
|
48
|
-
geo:
|
49
|
-
latitude: -11.056
|
50
|
-
longitude: -171.082
|
51
|
-
min_latitude:
|
52
|
-
min_longitude:
|
53
|
-
max_latitude:
|
54
|
-
max_longitude:
|
55
|
-
translations:
|
56
|
-
en: Swains Island
|
57
|
-
comments:
|
58
|
-
'050':
|
59
|
-
name: Western District
|
60
|
-
code:
|
61
|
-
unofficial_names: Western District
|
62
|
-
geo:
|
63
|
-
latitude: -14.31667
|
64
|
-
longitude: -170.76667
|
65
|
-
min_latitude:
|
66
|
-
min_longitude:
|
67
|
-
max_latitude:
|
68
|
-
max_longitude:
|
69
|
-
translations:
|
70
|
-
en: Western District
|
71
|
-
comments:
|
72
|
-
'':
|
73
|
-
name:
|
74
|
-
code:
|
75
|
-
unofficial_names:
|
76
|
-
geo:
|
77
|
-
latitude: -14.270972
|
78
|
-
longitude: -170.132217
|
79
|
-
min_latitude: -14.7217608
|
80
|
-
min_longitude: -171.0076904
|
81
|
-
max_latitude: -13.4056506
|
82
|
-
max_longitude: -169.2059326
|
83
|
-
translations:
|
84
|
-
en: American Samoa
|
85
|
-
comments:
|
@@ -1,51 +0,0 @@
|
|
1
|
-
---
|
2
|
-
'211':
|
3
|
-
name: Mariehamn
|
4
|
-
code:
|
5
|
-
unofficial_names: Mariehamn
|
6
|
-
geo:
|
7
|
-
latitude: 60.08348
|
8
|
-
longitude: 19.94307
|
9
|
-
min_latitude:
|
10
|
-
min_longitude:
|
11
|
-
max_latitude:
|
12
|
-
max_longitude:
|
13
|
-
translations:
|
14
|
-
en: Mariehamn
|
15
|
-
comments:
|
16
|
-
'212':
|
17
|
-
name: Alands landsbygd
|
18
|
-
code:
|
19
|
-
unofficial_names: Alands landsbygd
|
20
|
-
geo:
|
21
|
-
latitude: 60.22496
|
22
|
-
longitude: 19.93363
|
23
|
-
min_latitude:
|
24
|
-
min_longitude:
|
25
|
-
max_latitude:
|
26
|
-
max_longitude:
|
27
|
-
translations:
|
28
|
-
en: Alands landsbygd
|
29
|
-
comments:
|
30
|
-
'213':
|
31
|
-
name: Alands skaergard
|
32
|
-
code:
|
33
|
-
unofficial_names: Alands skaergard
|
34
|
-
geo:
|
35
|
-
latitude: 60.17575
|
36
|
-
longitude: 20.71799
|
37
|
-
min_latitude:
|
38
|
-
min_longitude:
|
39
|
-
max_latitude:
|
40
|
-
max_longitude:
|
41
|
-
translations:
|
42
|
-
en: Alands skaergard
|
43
|
-
comments:
|
44
|
-
'':
|
45
|
-
name:
|
46
|
-
code:
|
47
|
-
unofficial_names:
|
48
|
-
geo:
|
49
|
-
translations:
|
50
|
-
en: Åland Islands
|
51
|
-
comments:
|
@@ -1,155 +0,0 @@
|
|
1
|
-
---
|
2
|
-
'1':
|
3
|
-
name: Saint Pierre du Bois
|
4
|
-
code:
|
5
|
-
unofficial_names: Saint Pierre du Bois
|
6
|
-
geo:
|
7
|
-
latitude: 49.44556
|
8
|
-
longitude: -2.64361
|
9
|
-
min_latitude:
|
10
|
-
min_longitude:
|
11
|
-
max_latitude:
|
12
|
-
max_longitude:
|
13
|
-
translations:
|
14
|
-
en: Saint Pierre du Bois
|
15
|
-
comments:
|
16
|
-
'2':
|
17
|
-
name: Torteval
|
18
|
-
code:
|
19
|
-
unofficial_names: Torteval
|
20
|
-
geo:
|
21
|
-
latitude: 49.43
|
22
|
-
longitude: -2.64889
|
23
|
-
min_latitude:
|
24
|
-
min_longitude:
|
25
|
-
max_latitude:
|
26
|
-
max_longitude:
|
27
|
-
translations:
|
28
|
-
en: Torteval
|
29
|
-
comments:
|
30
|
-
'3':
|
31
|
-
name: Saint Saviour
|
32
|
-
code:
|
33
|
-
unofficial_names: Saint Saviour
|
34
|
-
geo:
|
35
|
-
latitude: 49.44972
|
36
|
-
longitude: -2.62389
|
37
|
-
min_latitude:
|
38
|
-
min_longitude:
|
39
|
-
max_latitude:
|
40
|
-
max_longitude:
|
41
|
-
translations:
|
42
|
-
en: Saint Saviour
|
43
|
-
comments:
|
44
|
-
'4':
|
45
|
-
name: Forest
|
46
|
-
code:
|
47
|
-
unofficial_names: Forest
|
48
|
-
geo:
|
49
|
-
latitude: 49.42583
|
50
|
-
longitude: -2.59194
|
51
|
-
min_latitude:
|
52
|
-
min_longitude:
|
53
|
-
max_latitude:
|
54
|
-
max_longitude:
|
55
|
-
translations:
|
56
|
-
en: Forest
|
57
|
-
comments:
|
58
|
-
'5':
|
59
|
-
name: Saint Martin
|
60
|
-
code:
|
61
|
-
unofficial_names: Saint Martin
|
62
|
-
geo:
|
63
|
-
latitude: 49.43333
|
64
|
-
longitude: -2.55722
|
65
|
-
min_latitude:
|
66
|
-
min_longitude:
|
67
|
-
max_latitude:
|
68
|
-
max_longitude:
|
69
|
-
translations:
|
70
|
-
en: Saint Martin
|
71
|
-
comments:
|
72
|
-
'6':
|
73
|
-
name: Saint Andrew
|
74
|
-
code:
|
75
|
-
unofficial_names: Saint Andrew
|
76
|
-
geo:
|
77
|
-
latitude: 49.44778
|
78
|
-
longitude: -2.57361
|
79
|
-
min_latitude:
|
80
|
-
min_longitude:
|
81
|
-
max_latitude:
|
82
|
-
max_longitude:
|
83
|
-
translations:
|
84
|
-
en: Saint Andrew
|
85
|
-
comments:
|
86
|
-
'7':
|
87
|
-
name: Saint Peter Port
|
88
|
-
code:
|
89
|
-
unofficial_names: Saint Peter Port
|
90
|
-
geo:
|
91
|
-
latitude: 49.46
|
92
|
-
longitude: -2.55194
|
93
|
-
min_latitude:
|
94
|
-
min_longitude:
|
95
|
-
max_latitude:
|
96
|
-
max_longitude:
|
97
|
-
translations:
|
98
|
-
en: Saint Peter Port
|
99
|
-
comments:
|
100
|
-
'8':
|
101
|
-
name: Castel
|
102
|
-
code:
|
103
|
-
unofficial_names: Castel
|
104
|
-
geo:
|
105
|
-
latitude: 49.465
|
106
|
-
longitude: -2.59361
|
107
|
-
min_latitude:
|
108
|
-
min_longitude:
|
109
|
-
max_latitude:
|
110
|
-
max_longitude:
|
111
|
-
translations:
|
112
|
-
en: Castel
|
113
|
-
comments:
|
114
|
-
'9':
|
115
|
-
name: Vale
|
116
|
-
code:
|
117
|
-
unofficial_names: Vale
|
118
|
-
geo:
|
119
|
-
latitude: 49.49361
|
120
|
-
longitude: -2.52833
|
121
|
-
min_latitude:
|
122
|
-
min_longitude:
|
123
|
-
max_latitude:
|
124
|
-
max_longitude:
|
125
|
-
translations:
|
126
|
-
en: Vale
|
127
|
-
comments:
|
128
|
-
'10':
|
129
|
-
name: Saint Sampson
|
130
|
-
code:
|
131
|
-
unofficial_names: Saint Sampson
|
132
|
-
geo:
|
133
|
-
latitude: 49.48194
|
134
|
-
longitude: -2.53722
|
135
|
-
min_latitude:
|
136
|
-
min_longitude:
|
137
|
-
max_latitude:
|
138
|
-
max_longitude:
|
139
|
-
translations:
|
140
|
-
en: Saint Sampson
|
141
|
-
comments:
|
142
|
-
'11':
|
143
|
-
name: Alderney
|
144
|
-
code:
|
145
|
-
unofficial_names: Alderney
|
146
|
-
geo:
|
147
|
-
latitude: 49.71677
|
148
|
-
longitude: -2.19851
|
149
|
-
min_latitude:
|
150
|
-
min_longitude:
|
151
|
-
max_latitude:
|
152
|
-
max_longitude:
|
153
|
-
translations:
|
154
|
-
en: Alderney
|
155
|
-
comments:
|