countries 2.0.0.pre → 2.0.0.pre.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -1
- data/README.markdown +2 -1
- data/lib/countries/cache/countries +0 -0
- data/lib/countries/cache/locales/ar +0 -0
- data/lib/countries/data/countries/CG.yaml +1 -0
- data/lib/countries/data/countries/CI.yaml +1 -0
- data/lib/countries/data/countries/EE.yaml +0 -1
- data/lib/countries/data/countries/GW.yaml +1 -0
- data/lib/countries/data/countries/KN.yaml +1 -0
- data/lib/countries/data/countries/LC.yaml +2 -0
- data/lib/countries/data/countries/PS.yaml +1 -0
- data/lib/countries/data/countries/TC.yaml +2 -1
- data/lib/countries/data/countries/VC.yaml +2 -0
- data/lib/countries/data/subdivisions/PH.yaml +29 -0
- data/lib/countries/data/subdivisions/US.yaml +5 -7
- data/lib/countries/version.rb +1 -1
- data/spec/country_spec.rb +29 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37219d090737e0e00f5982e5655fa06622205589
|
4
|
+
data.tar.gz: 07ee78ed6cb32591e38db8d459bd014f5b5ca24c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd08605ecead0f13f013d6158a80e8290d6f9012aa38b7c97eaa3718769aaa344897fe5bfd6cd585d07f838c2722fdd9db6cbaa5c3a437eb7042b82056653277
|
7
|
+
data.tar.gz: 1f0a831b563b757f17e547e3f5f3b3ed125b479fad07d2dae412e033bbce731d3520c8678e25c1e0d9e2139ad4091a06bc25350e8a8519736e8c8411c66c8a79
|
data/CHANGELOG.md
CHANGED
@@ -2,13 +2,19 @@
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
4
|
|
5
|
-
## 2.0.0
|
5
|
+
## 2.0.0.pre.2
|
6
|
+
- Bringing in content from 1.x branch
|
7
|
+
|
8
|
+
## 2.0.0.pre
|
6
9
|
- Selective loading translations of countries
|
7
10
|
- Auto detect I18n locales to load
|
8
11
|
- Add Configuration methods to force locales to load
|
9
12
|
- Dropped currencies gem in favor of money
|
10
13
|
- Add Time Zone Support
|
11
14
|
|
15
|
+
## 1.2.5 @ 2016-01-22
|
16
|
+
- Rebuilding cache
|
17
|
+
|
12
18
|
## 1.2.4 @ 2016-01-21
|
13
19
|
- Romanian Standard VAT rate is 20% as of 2016-01-01 #325 @dougal
|
14
20
|
- Palestine submit #324 @samizan
|
data/README.markdown
CHANGED
@@ -3,7 +3,8 @@ Countries
|
|
3
3
|
|
4
4
|
Countries is a collection of all sorts of useful information for every country in the ISO 3166 standard. It contains info for the following standards ISO3166-1(countries), ISO3166-2(states/subdivisions), ISO4217(currency) and E.164(phone numbers). I will add any country based data I can get access to. I hope this to be a repository for all country based information.
|
5
5
|
|
6
|
-
[![
|
6
|
+
[![Gem Version](https://badge.fury.io/rb/countries.svg)](https://badge.fury.io/rb/countries)
|
7
|
+
[![Build Status](https://travis-ci.org/hexorx/countries.svg)](https://travis-ci.org/hexorx/countries) [![Dependency Status](https://gemnasium.com/hexorx/countries.svg)](https://gemnasium.com/hexorx/countries) [![Code Climate](https://codeclimate.com/github/hexorx/countries.svg)](https://codeclimate.com/github/hexorx/countries)
|
7
8
|
|
8
9
|
Installation
|
9
10
|
------------
|
Binary file
|
Binary file
|
@@ -6,7 +6,7 @@ TC:
|
|
6
6
|
country_code: '1'
|
7
7
|
currency: USD
|
8
8
|
international_prefix: '011'
|
9
|
-
ioc:
|
9
|
+
ioc:
|
10
10
|
gec: TK
|
11
11
|
latitude: 21 45 N
|
12
12
|
longitude: 71 35 W
|
@@ -18,6 +18,7 @@ TC:
|
|
18
18
|
- Islas Turks y Caicos
|
19
19
|
- "タークス・カイコス諸島"
|
20
20
|
- Turks- en Caicoseilanden
|
21
|
+
- Turks and Caicos
|
21
22
|
national_destination_code_lengths:
|
22
23
|
- 3
|
23
24
|
national_number_lengths:
|
@@ -261,6 +261,24 @@ DAV:
|
|
261
261
|
min_longitude: 125.250456
|
262
262
|
max_latitude: 7.997327
|
263
263
|
max_longitude: 125.944498
|
264
|
+
DIN:
|
265
|
+
name: Dinagat Islands
|
266
|
+
names: Dinagat Islands
|
267
|
+
latitude: 10.1281816
|
268
|
+
longitude: 125.6095474
|
269
|
+
min_latitude: 9.8547497
|
270
|
+
min_longitude: 125.465279
|
271
|
+
max_latitude: 10.4716027
|
272
|
+
max_longitude: 125.7067526
|
273
|
+
DVO:
|
274
|
+
name: Davao Occidental
|
275
|
+
names: Davao Occidental
|
276
|
+
latitude: 12.879721
|
277
|
+
longitude: 121.774017
|
278
|
+
min_latitude: 4.5870339
|
279
|
+
min_longitude: 116.7029193
|
280
|
+
max_latitude: 19.5740241
|
281
|
+
max_longitude: 126.6043837
|
264
282
|
EAS:
|
265
283
|
name: Eastern Samar
|
266
284
|
names: Eastern Samar
|
@@ -737,3 +755,14 @@ ZSI:
|
|
737
755
|
names: Zamboanga Sibuguey [Zamboanga Sibugay]
|
738
756
|
latitude: 7.02427
|
739
757
|
longitude: 122.189
|
758
|
+
'00':
|
759
|
+
name: National Capital Region
|
760
|
+
names:
|
761
|
+
- National Capital Region
|
762
|
+
- Pambansang Punong Rehiyon
|
763
|
+
latitude: 14.6090537
|
764
|
+
longitude: 121.0222565
|
765
|
+
min_latitude: 14.3493861
|
766
|
+
min_longitude: 120.9172569
|
767
|
+
max_latitude: 14.781217
|
768
|
+
max_longitude: 121.132012
|
@@ -60,9 +60,7 @@ AZ:
|
|
60
60
|
max_longitude: -109.0452231
|
61
61
|
CA:
|
62
62
|
name: California
|
63
|
-
names:
|
64
|
-
- Californie
|
65
|
-
- Kalifornien
|
63
|
+
names: California
|
66
64
|
latitude: 36.778261
|
67
65
|
longitude: -119.4179324
|
68
66
|
min_latitude: 32.5342321
|
@@ -110,10 +108,10 @@ FL:
|
|
110
108
|
names: Florida
|
111
109
|
latitude: 27.6648274
|
112
110
|
longitude: -81.5157535
|
113
|
-
min_latitude:
|
114
|
-
min_longitude: -
|
115
|
-
max_latitude:
|
116
|
-
max_longitude:
|
111
|
+
min_latitude: 24.5210795
|
112
|
+
min_longitude: -87.634896
|
113
|
+
max_latitude: 31.000968
|
114
|
+
max_longitude: -80.0311371
|
117
115
|
GA:
|
118
116
|
name: Georgia
|
119
117
|
names: Georgia
|
data/lib/countries/version.rb
CHANGED
data/spec/country_spec.rb
CHANGED
@@ -635,4 +635,33 @@ describe ISO3166::Country do
|
|
635
635
|
end.to raise_error(TypeError, "can't convert Fixnum into ISO3166::Country")
|
636
636
|
end
|
637
637
|
end
|
638
|
+
|
639
|
+
describe 'Added country names to search by' do
|
640
|
+
it 'should return country code for Democratic Republic of the Congo' do
|
641
|
+
expect(ISO3166::Country.find_country_by_name('Democratic Republic of the Congo').alpha2).to eq 'CG'
|
642
|
+
end
|
643
|
+
it 'should return country code for Ivory Coast' do
|
644
|
+
expect(ISO3166::Country.find_country_by_name('Ivory Coast').alpha2).to eq 'CI'
|
645
|
+
end
|
646
|
+
it 'should return Pakistan code for Guinea Bissau' do
|
647
|
+
expect(ISO3166::Country.find_country_by_name('Guinea Bissau').alpha2).to eq 'GW'
|
648
|
+
end
|
649
|
+
it 'should return Pakistan code for St Kitts and Nevis' do
|
650
|
+
expect(ISO3166::Country.find_country_by_name('St Kitts and Nevis').alpha2).to eq 'KN'
|
651
|
+
end
|
652
|
+
it 'should return Pakistan code for St Lucia' do
|
653
|
+
expect(ISO3166::Country.find_country_by_name('St Lucia').alpha2).to eq 'LC'
|
654
|
+
expect(ISO3166::Country.find_country_by_name('St. Lucia').alpha2).to eq 'LC'
|
655
|
+
end
|
656
|
+
it 'should return Pakistan code for Turks and Caicos' do
|
657
|
+
expect(ISO3166::Country.find_country_by_name('Turks and Caicos').alpha2).to eq 'TC'
|
658
|
+
end
|
659
|
+
it 'should return Pakistan code for St Vincent Grenadines' do
|
660
|
+
expect(ISO3166::Country.find_country_by_name('St Vincent Grenadines').alpha2).to eq 'VC'
|
661
|
+
expect(ISO3166::Country.find_country_by_name('St. Vincent Grenadines').alpha2).to eq 'VC'
|
662
|
+
end
|
663
|
+
it 'should return country code for Palestinian Authority' do
|
664
|
+
expect(ISO3166::Country.find_country_by_name('Palestinian Authority').alpha2).to eq 'PS'
|
665
|
+
end
|
666
|
+
end
|
638
667
|
end
|
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: 2.0.0.pre
|
4
|
+
version: 2.0.0.pre.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Robinson
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-03-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: i18n_data
|