countries 2.0.0.pre → 2.0.0.pre.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e56e233e585a77d0e16537d69e5055d9db7f1201
4
- data.tar.gz: 8e0d126fdd580391306a14f444b1cb1f767b088b
3
+ metadata.gz: 37219d090737e0e00f5982e5655fa06622205589
4
+ data.tar.gz: 07ee78ed6cb32591e38db8d459bd014f5b5ca24c
5
5
  SHA512:
6
- metadata.gz: 1110e82fab2598d0242edcad19c73e398bda739bfd8cd8201dd9c2d6944a2edf2b789526cf42dcf8292ff8c661ce5247b39d94d69991693480a931ffcdc04aa9
7
- data.tar.gz: 2dc3bf71824639180e6daba333f31ba15d7fc6ad74c0da9fdd0df9d884ba89259d2417a5c728baf823e39087eb6873bf32087963b2380e717b972506a9577dd7
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 (unreleased)
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
- [![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) [![Waffle.io Issues in Ready](https://badge.waffle.io/hexorx/countries.svg)](http://waffle.io/hexorx/countries)
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
@@ -16,6 +16,7 @@ CG:
16
16
  - Kongo
17
17
  - "コンゴ共和国"
18
18
  - Congo [Republiek]
19
+ - Democratic Republic of the Congo
19
20
  national_destination_code_lengths:
20
21
  - 2
21
22
  national_number_lengths:
@@ -18,6 +18,7 @@ CI:
18
18
  - Ivoorkust
19
19
  - Cote D'Ivoire (Ivory Coast)
20
20
  - Cote d Ivoire (Ivory Coast)
21
+ - Ivory Coast
21
22
  national_destination_code_lengths:
22
23
  - 2
23
24
  national_number_lengths:
@@ -29,7 +29,6 @@ EE:
29
29
  un_locode: EE
30
30
  languages:
31
31
  - et
32
- - ru
33
32
  nationality: Estonian
34
33
  eu_member: true
35
34
  vat_rates:
@@ -16,6 +16,7 @@ GW:
16
16
  - Guinée-Bissau
17
17
  - "ギニアビサウ"
18
18
  - Guinee-Bissau
19
+ - Guinea Bissau
19
20
  national_destination_code_lengths:
20
21
  - 2
21
22
  national_number_lengths:
@@ -19,6 +19,7 @@ KN:
19
19
  - "セントクリストファー・ネイビス"
20
20
  - Saint Kitts en Nevis
21
21
  - St. Kitts and Nevis
22
+ - St Kitts and Nevis
22
23
  national_destination_code_lengths:
23
24
  - 3
24
25
  national_number_lengths:
@@ -16,6 +16,8 @@ LC:
16
16
  - Saint-Lucie
17
17
  - Santa Lucía
18
18
  - "セントルシア"
19
+ - St. Lucia
20
+ - St Lucia
19
21
  national_destination_code_lengths:
20
22
  - 3
21
23
  national_number_lengths:
@@ -21,6 +21,7 @@ PS:
21
21
  - "パレスチナ"
22
22
  - Palestijnse gebieden
23
23
  - Palestinian Territory Occupied
24
+ - Palestinian Authority
24
25
  national_destination_code_lengths:
25
26
  - 2
26
27
  national_number_lengths:
@@ -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:
@@ -18,6 +18,8 @@ VC:
18
18
  - San Vicente y Granadinas
19
19
  - "セントビンセントおよびグレナディーン諸島"
20
20
  - Saint Vincent en de Grenadines
21
+ - St. Vincent Grenadines
22
+ - St Vincent Grenadines
21
23
  national_destination_code_lengths:
22
24
  - 3
23
25
  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: -90
114
- min_longitude: -180
115
- max_latitude: 90
116
- max_longitude: 180
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
@@ -1,3 +1,3 @@
1
1
  module Countries
2
- VERSION = '2.0.0.pre'
2
+ VERSION = '2.0.0.pre.2'
3
3
  end
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-01-21 00:00:00.000000000 Z
13
+ date: 2016-03-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: i18n_data