countries 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/countries/country.rb +4 -0
- data/lib/countries/version.rb +1 -1
- data/lib/data/countries/MO.yaml +1 -0
- data/lib/data/countries/NO.yaml +1 -1
- data/lib/data/subdivisions/DK.yaml +1 -1
- data/lib/data/subdivisions/FR.yaml +12 -12
- data/spec/country_spec.rb +10 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68db55f4a800a6550927a8ff53be5b2aafe17c46
|
4
|
+
data.tar.gz: 76dae2ad449277ed7372b741e1f584bb3f23665b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e2185942067efbe4b726e79e6af655c253f0af86c33cebef5c7e5976cb7b7eb039e2b19d0f3971d53e6e545052addfeaff4ad0e73932e7dac795bfa19c03354
|
7
|
+
data.tar.gz: 7d6fa78fe31b17e5b0a6b7cf9e8c45da32f5cfec6fb20329fe1aee50afa90cf83f3e7771cca78fce347c4456e742901dc18038ffe11f3ada7b3a36a954f1c62e
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,12 @@
|
|
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
|
+
## 1.1.0
|
6
|
+
- Adding compare operation to country @guilleart
|
7
|
+
- Content Updates @rposbone
|
8
|
+
- Correct NL to NO for un_locode @ohenrik
|
9
|
+
- Fix spelling of Sjælland @boatrite
|
10
|
+
- Add alternate spelling of Macao/Macau @nityaoberoi
|
5
11
|
|
6
12
|
## 1.0.0
|
7
13
|
- Switch to Marshalling for cache storage @rposborne
|
data/lib/countries/country.rb
CHANGED
data/lib/countries/version.rb
CHANGED
data/lib/data/countries/MO.yaml
CHANGED
data/lib/data/countries/NO.yaml
CHANGED
@@ -857,8 +857,8 @@
|
|
857
857
|
max_latitude: 49.241504
|
858
858
|
max_longitude: 2.5949791
|
859
859
|
NC:
|
860
|
-
name: Nouvelle-Calédonie
|
861
|
-
names: Nouvelle-Calédonie
|
860
|
+
name: Nouvelle-Calédonie
|
861
|
+
names: Nouvelle-Calédonie
|
862
862
|
latitude: 35.7595731
|
863
863
|
longitude: -79.01929969999999
|
864
864
|
min_latitude: 33.8409689
|
@@ -866,17 +866,17 @@ NC:
|
|
866
866
|
max_latitude: 36.5881568
|
867
867
|
max_longitude: -75.4599515
|
868
868
|
PF:
|
869
|
-
name: Polynésie française
|
870
|
-
names: Polynésie française
|
869
|
+
name: Polynésie française
|
870
|
+
names: Polynésie française
|
871
871
|
PM:
|
872
|
-
name: Saint-Pierre-et-Miquelon
|
873
|
-
names: Saint-Pierre-et-Miquelon
|
872
|
+
name: Saint-Pierre-et-Miquelon
|
873
|
+
names: Saint-Pierre-et-Miquelon
|
874
874
|
TF:
|
875
|
-
name: Terres Australes Françaises
|
876
|
-
names: Terres Australes Françaises
|
875
|
+
name: Terres Australes Françaises
|
876
|
+
names: Terres Australes Françaises
|
877
877
|
WF:
|
878
|
-
name: Wallis et Futuna
|
879
|
-
names: Wallis et Futuna
|
878
|
+
name: Wallis et Futuna
|
879
|
+
names: Wallis et Futuna
|
880
880
|
YT:
|
881
|
-
name: Mayotte
|
882
|
-
names: Mayotte
|
881
|
+
name: Mayotte
|
882
|
+
names: Mayotte
|
data/spec/country_spec.rb
CHANGED
@@ -177,8 +177,17 @@ describe ISO3166::Country do
|
|
177
177
|
end
|
178
178
|
end
|
179
179
|
|
180
|
+
describe 'compare' do
|
181
|
+
it 'should compare itself with other countries by its name' do
|
182
|
+
canada = ISO3166::Country.search('CA')
|
183
|
+
mexico = ISO3166::Country.search('MX')
|
184
|
+
expect(mexico <=> canada).to eq(1)
|
185
|
+
expect(canada <=> mexico).to eq(-1)
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
180
189
|
describe 'all' do
|
181
|
-
it 'should return an
|
190
|
+
it 'should return an array list of all countries' do
|
182
191
|
countries = ISO3166::Country.all
|
183
192
|
expect(countries).to be_an(Array)
|
184
193
|
expect(countries.first).to be_an(ISO3166::Country)
|
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: 1.
|
4
|
+
version: 1.1.0
|
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-09-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: i18n_data
|
@@ -580,7 +580,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
580
580
|
version: '0'
|
581
581
|
requirements: []
|
582
582
|
rubyforge_project:
|
583
|
-
rubygems_version: 2.4.
|
583
|
+
rubygems_version: 2.4.5.1
|
584
584
|
signing_key:
|
585
585
|
specification_version: 4
|
586
586
|
summary: Gives you a country object full of all sorts of useful information.
|