phonelib 0.6.52 → 0.6.53

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
  SHA256:
3
- metadata.gz: dddd33a5cee524ab9b4838ef9cf4857271f8f2d425791b165469f07bd3ebf8cb
4
- data.tar.gz: 0c62ef36c5cae469aea4a6759262c15cd494f5cc03ed8fbb0450c57a0d82f9d8
3
+ metadata.gz: 4801da2a9c49dd2b0295e53602d7061b1c6177484e5da8e2ba470b0f2de547d5
4
+ data.tar.gz: 282238ee5f874e8f03f813b0c575e410d2a1f3d3bf4ae51b53bdc45b12e246d4
5
5
  SHA512:
6
- metadata.gz: 5dacc59d0697e724eb461b4306a7d5fc3a804a9c557eb83c56947ec3656559213f23337656c62eea1bb1aeee96f0bc41ca9d0093b438e12aecbea59b671ffca3
7
- data.tar.gz: 0f3c6f0eef8dbc9f660c981e254e7ecb6663a605b61f185095b41dc33a42a7f5093397c79fec2106a3d06d78ce99960b674ac457312b7b410c47fced46b579b2
6
+ metadata.gz: aa81f599a3ec2e01f773fdd43b652aa447561b7c630f302ef2ea86e815311c9ab22b2c36624111c49e2c2faddc54858c780d6c1fb306365f5c889de9b37f1f0c
7
+ data.tar.gz: b5753621b2cf0d7947b029dcf0ec6fae358706b4d73a67eed881150cfca6be8fe287b031e5021f3759022bfd408c92d3a235c8b1b90491d77294da4b9cadd6d2
Binary file
data/data/phone_data.dat CHANGED
Binary file
@@ -148,7 +148,7 @@ module Phonelib
148
148
  io = open('http://api.geonames.org/countryInfoCSV?username=demo&style=full')
149
149
  csv = CSV.new(io, {col_sep: "\t"})
150
150
  csv.each do |row|
151
- next if row[0].nil? || row[0].start_with?('#') || row[0].empty?
151
+ next if row[0].nil? || row[0].start_with?('#') || row[0].empty? || row[0].size != 2
152
152
 
153
153
  @countries[row[0]] = row[4]
154
154
  end
@@ -1,4 +1,4 @@
1
1
  module Phonelib
2
2
  # @private
3
- VERSION = '0.6.52'
3
+ VERSION = '0.6.53'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phonelib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.52
4
+ version: 0.6.53
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vadim Senderovich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-31 00:00:00.000000000 Z
11
+ date: 2021-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake