torasup 0.0.13 → 0.0.14

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: 9fdf2d640d4ca37de8ebcd7b46287b7328bf2306
4
- data.tar.gz: 478f64b6107838cad82ae757fa8e18b99f64e1ed
3
+ metadata.gz: b7144467b57e2eeafdba6c249cb437af5c6343c2
4
+ data.tar.gz: cc55cdf7563d65b4d12976e2e0e1a766ace0cb7c
5
5
  SHA512:
6
- metadata.gz: 8ec7bcfc6bd64f348a4e29afc431ba6a9c5d4aa9c59c49fd374484a57a72965e25eb1c3fdbc5431c3364e5f03a467d4d31a620268ef5da242d6c9c4ad4c0555f
7
- data.tar.gz: 263ffd901abb1a741d7db8b01b0e32396dcda9a040d25758a3ef0f131bdeb2b53b7e75480b356a9443bab1381e41f89c6ceb56c7928c27ccdc05c7c4964f0545
6
+ metadata.gz: 0e95a24e60abc5a90b55664e2d07a54fff4c629a7ca9bc7111d7deace3b51c5179ffc15e34f2c4bd076384745cc74e885ca28da5e11958788197ffbcff843f73
7
+ data.tar.gz: 8a5ea60ec29983fb47037ccc48eea81466644012ca60f0a7d9b0718e42f8c23536dc0de7f03382accd9c9c86455e58d4b3c9a3f58b34e35009dd02bdd63aa7d6
@@ -1,3 +1,3 @@
1
1
  module Torasup
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
data/lib/torasup.rb CHANGED
@@ -21,9 +21,9 @@ module Torasup
21
21
 
22
22
  def load_international_dialing_codes!
23
23
  @international_dialing_codes = {}
24
- ISO3166::Country.all.each do |name, country_id|
25
- dialing_code = ISO3166::Country[country_id].country_code
26
- @international_dialing_codes[dialing_code] = country_id unless @international_dialing_codes[dialing_code] && !configuration.default_countries.include?(country_id)
24
+ ISO3166::Country.all.each do |country|
25
+ dialing_code = country.country_code
26
+ @international_dialing_codes[dialing_code] = country.alpha2 if !@international_dialing_codes[dialing_code] && !configuration.default_countries.include?(country.alpha2)
27
27
  end
28
28
  end
29
29
 
data/torasup.gemspec CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
18
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
19
  gem.require_paths = ["lib"]
20
20
 
21
- gem.add_runtime_dependency "countries"
21
+ gem.add_runtime_dependency "countries", '>= 1.1.0'
22
22
  gem.add_runtime_dependency "phony", '>= 2.14.14'
23
23
  gem.add_runtime_dependency "deep_merge"
24
24
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torasup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Wilkie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-17 00:00:00.000000000 Z
11
+ date: 2015-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: countries
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 1.1.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 1.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: phony
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  requirements: []
136
136
  rubyforge_project:
137
- rubygems_version: 2.4.5
137
+ rubygems_version: 2.4.5.1
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: '"Retuns metadata about a phone number such as operator, area code and more"'