phonelib 0.6.49 → 0.6.53

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
  SHA256:
3
- metadata.gz: 12f73e3e6226d24c7ab2fdd3deae4726ac707db3ae037181c8ad7b938927bb20
4
- data.tar.gz: f21fb20997e7c37aa91353397ee4a3a049d9eb77be46da89e6d2e497ac1a5b88
3
+ metadata.gz: 4801da2a9c49dd2b0295e53602d7061b1c6177484e5da8e2ba470b0f2de547d5
4
+ data.tar.gz: 282238ee5f874e8f03f813b0c575e410d2a1f3d3bf4ae51b53bdc45b12e246d4
5
5
  SHA512:
6
- metadata.gz: c09e9804e3ad4ebca358adad87e66a1284714c3ee66fb714f316da6cb70cd6de274bd77028ddf7561c90490db7b266eff9fbf0ef4e68092ed64ee0313e869433
7
- data.tar.gz: 767db7a6c8a6f17c1101fcf150f2bd216040250adb316b015cf1162739ccedec532e4be40017d3b6ab5597e2e887fe06bc2e3b9f00e38b41b7397d015fcb6936
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
@@ -7,6 +7,9 @@ module Phonelib
7
7
  # @!attribute [r] extension
8
8
  # @return [String] phone extension passed for parsing after a number
9
9
  attr_reader :extension
10
+ # @!attribute [r] national_number
11
+ # @return [String] phone national number
12
+ attr_reader :national_number
10
13
 
11
14
  # including module that has all phone analyzing methods
12
15
  include Phonelib::PhoneAnalyzer
@@ -1,4 +1,4 @@
1
1
  module Phonelib
2
2
  # @private
3
- VERSION = '0.6.49'
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.49
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-03-21 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