countries 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 65b46cd7e548cdd07c86baa8e881c197946bfd03
4
- data.tar.gz: d9c0c572a56a059a27cef0ab8524acae7694ebe2
3
+ metadata.gz: 8ae9dfd747ec1372084b22986abba6f658ab75e8
4
+ data.tar.gz: 19c4c7671ac6f1fe824beec3d73a6faa0bf9739f
5
5
  SHA512:
6
- metadata.gz: 557bf6a89c2f0f64e782abc188f683916aeef7f767a563c9bf5ca152d1d2b9634d286ef6ea976de2a5c2bab54e2d69f6f2ca9e6a3c6873d850968f34964a3009
7
- data.tar.gz: fc9411fed5b049ba10455303580d8729745c3464ecdeabb8e6a933b304e84316b6c6a604149511f85b2eb4cdec98a363351be657b807fc7bfd63d8c55e0c1472
6
+ metadata.gz: 442e7bd2674059abfadc4229fddb526a315f837110056356c075e3c5e559dbb00fd2ed201c7af55bf327ed19209a13bd484dcfe281833869f717766ffd0caa9d
7
+ data.tar.gz: 61f75eaf5010cac785ce40e588dcf46765e6bd53877313e3d4a0860ab9ceb821daf2f2c6c19fa6483208c4ed6ab34c638e5cb2f505ffe13d99ae9945f2d283c0
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
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.3
6
+ - Fix comparison with country to nil
7
+ - Add NANP_prefix as separate field
8
+
9
+ ## 2.0.2
10
+ - Add nanp_prefix data.
11
+
5
12
  ## 2.0.1
6
13
  - Content updates
7
14
  - Fix bounding boxes that were mismatched.
@@ -32,7 +32,7 @@ module ISO3166
32
32
  alias names unofficial_names
33
33
 
34
34
  def ==(other)
35
- other.alpha2 == alpha2
35
+ other.respond_to?(:alpha2) && other.alpha2 == alpha2
36
36
  end
37
37
 
38
38
  def eql?(other)
@@ -3,7 +3,8 @@ AG:
3
3
  continent: North America
4
4
  alpha2: AG
5
5
  alpha3: ATG
6
- country_code: '1268'
6
+ country_code: '1'
7
+ nanp_prefix: '1268'
7
8
  international_prefix: '011'
8
9
  ioc: ANT
9
10
  gec: AC
@@ -3,7 +3,8 @@ AI:
3
3
  continent: North America
4
4
  alpha2: AI
5
5
  alpha3: AIA
6
- country_code: '1264'
6
+ country_code: '1'
7
+ nanp_prefix: '1264'
7
8
  international_prefix: '011'
8
9
  ioc:
9
10
  gec: AV
@@ -3,7 +3,8 @@ AS:
3
3
  continent: Australia
4
4
  alpha2: AS
5
5
  alpha3: ASM
6
- country_code: '1684'
6
+ country_code: '1'
7
+ nanp_prefix: '1684'
7
8
  international_prefix: '011'
8
9
  ioc: ASA
9
10
  gec: AQ
@@ -3,7 +3,8 @@ BB:
3
3
  continent: North America
4
4
  alpha2: BB
5
5
  alpha3: BRB
6
- country_code: '1246'
6
+ country_code: '1'
7
+ nanp_prefix: '1246'
7
8
  international_prefix: '011'
8
9
  ioc: BAR
9
10
  gec: BB
@@ -3,7 +3,8 @@ BM:
3
3
  continent: North America
4
4
  alpha2: BM
5
5
  alpha3: BMU
6
- country_code: '1441'
6
+ country_code: '1'
7
+ nanp_prefix: '1441'
7
8
  international_prefix: '011'
8
9
  ioc: BER
9
10
  gec: BD
@@ -3,7 +3,8 @@ BS:
3
3
  continent: North America
4
4
  alpha2: BS
5
5
  alpha3: BHS
6
- country_code: '1242'
6
+ country_code: '1'
7
+ nanp_prefix: '1242'
7
8
  international_prefix: '011'
8
9
  ioc: BAH
9
10
  gec: BF
@@ -3,7 +3,8 @@ DM:
3
3
  continent: North America
4
4
  alpha2: DM
5
5
  alpha3: DMA
6
- country_code: '1767'
6
+ country_code: '1'
7
+ nanp_prefix: '1767'
7
8
  international_prefix: '011'
8
9
  ioc: DMA
9
10
  gec: DO
@@ -3,7 +3,8 @@ GD:
3
3
  continent: North America
4
4
  alpha2: GD
5
5
  alpha3: GRD
6
- country_code: '1473'
6
+ country_code: '1'
7
+ nanp_prefix: '1473'
7
8
  international_prefix: '011'
8
9
  ioc: GRN
9
10
  gec: GJ
@@ -3,7 +3,8 @@ GU:
3
3
  continent: Australia
4
4
  alpha2: GU
5
5
  alpha3: GUM
6
- country_code: '1671'
6
+ country_code: '1'
7
+ nanp_prefix: '1671'
7
8
  international_prefix: '011'
8
9
  ioc: GUM
9
10
  gec: GQ
@@ -3,7 +3,8 @@ JM:
3
3
  continent: North America
4
4
  alpha2: JM
5
5
  alpha3: JAM
6
- country_code: '1876'
6
+ country_code: '1'
7
+ nanp_prefix: '1876'
7
8
  international_prefix: '011'
8
9
  ioc: JAM
9
10
  gec: JM
@@ -3,7 +3,8 @@ KN:
3
3
  continent: North America
4
4
  alpha2: KN
5
5
  alpha3: KNA
6
- country_code: '1869'
6
+ country_code: '1'
7
+ nanp_prefix: '1869'
7
8
  international_prefix: '011'
8
9
  ioc: SKN
9
10
  gec: SC
@@ -3,7 +3,8 @@ KY:
3
3
  continent: North America
4
4
  alpha2: KY
5
5
  alpha3: CYM
6
- country_code: '1345'
6
+ country_code: '1'
7
+ nanp_prefix: '1345'
7
8
  international_prefix: '011'
8
9
  ioc: CAY
9
10
  gec: CJ
@@ -3,7 +3,8 @@ LC:
3
3
  continent: North America
4
4
  alpha2: LC
5
5
  alpha3: LCA
6
- country_code: '1758'
6
+ country_code: '1'
7
+ nanp_prefix: '1758'
7
8
  international_prefix: '011'
8
9
  ioc: LCA
9
10
  gec: ST
@@ -3,7 +3,8 @@ MS:
3
3
  continent: North America
4
4
  alpha2: MS
5
5
  alpha3: MSR
6
- country_code: '1664'
6
+ country_code: '1'
7
+ nanp_prefix: '1664'
7
8
  international_prefix: '011'
8
9
  ioc:
9
10
  gec: MH
@@ -3,7 +3,8 @@ SX:
3
3
  continent: North America
4
4
  alpha2: SX
5
5
  alpha3: SXM
6
- country_code: '1721'
6
+ country_code: '1'
7
+ nanp_prefix: '1721'
7
8
  international_prefix: '011'
8
9
  ioc:
9
10
  gec: NN
@@ -3,7 +3,8 @@ TC:
3
3
  continent: North America
4
4
  alpha2: TC
5
5
  alpha3: TCA
6
- country_code: '1649'
6
+ country_code: '1'
7
+ nanp_prefix: '1649'
7
8
  international_prefix: '011'
8
9
  ioc:
9
10
  gec: TK
@@ -3,7 +3,8 @@ TT:
3
3
  continent: North America
4
4
  alpha2: TT
5
5
  alpha3: TTO
6
- country_code: '1868'
6
+ country_code: '1'
7
+ nanp_prefix: '1868'
7
8
  international_prefix: '011'
8
9
  ioc: TRI
9
10
  gec: TD
@@ -3,7 +3,8 @@ VC:
3
3
  continent: North America
4
4
  alpha2: VC
5
5
  alpha3: VCT
6
- country_code: '1784'
6
+ country_code: '1'
7
+ nanp_prefix: '1784'
7
8
  international_prefix: '011'
8
9
  ioc: VIN
9
10
  gec: VC
@@ -3,7 +3,8 @@ VG:
3
3
  continent: North America
4
4
  alpha2: VG
5
5
  alpha3: VGB
6
- country_code: '1284'
6
+ country_code: '1'
7
+ nanp_prefix: '1284'
7
8
  international_prefix: '011'
8
9
  ioc: IVB
9
10
  gec: VI
@@ -35,6 +35,7 @@ module ISO3166
35
35
  'national_destination_code_lengths' => [],
36
36
  'national_number_lengths' => [],
37
37
  'national_prefix' => nil,
38
+ 'nanp_prefix' => nil,
38
39
  'nationality' => nil,
39
40
  'number' => nil,
40
41
  'languages_official' => [],
@@ -1,3 +1,3 @@
1
1
  module Countries
2
- VERSION = '2.0.2'.freeze
2
+ VERSION = '2.0.3'.freeze
3
3
  end
data/spec/country_spec.rb CHANGED
@@ -20,6 +20,7 @@ describe ISO3166::Country do
20
20
  c2 = ISO3166::Country.new('US')
21
21
  c3 = ISO3166::Country.new('AU')
22
22
  expect(c1).to eq(c2)
23
+ expect(c1).to_not eq(nil)
23
24
  expect(c1.hash).to eq(c2.hash)
24
25
  expect(c3.hash).to_not eq(c2.hash)
25
26
 
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.2
4
+ version: 2.0.3
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-11-21 00:00:00.000000000 Z
13
+ date: 2016-12-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: i18n_data
@@ -704,4 +704,3 @@ test_files:
704
704
  - spec/spec_helper.rb
705
705
  - spec/subdivision_spec.rb
706
706
  - spec/timezone_spec.rb
707
- has_rdoc: