telephone_number 1.2.1 → 1.2.2

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: 041658c6fe3b1c21d246b5aeadb540d05e36c456
4
- data.tar.gz: 3438b0c1458202831561d3670499f56a9b5350db
3
+ metadata.gz: 2a8ab2339f5643f83862103ffea7551e4d2dda62
4
+ data.tar.gz: 9c236600e7088466cbf9cb636612ccb4c2079935
5
5
  SHA512:
6
- metadata.gz: 106e9873bae48214abbc9eb0d9626eb6ef06bf66bec08b1813f7b8c1279fa0b0cb5f5595e7be3f39606ecd1addce7bcb78ca17320a53f6b4df28f8e71b454eae
7
- data.tar.gz: 3229c5c6241c7e37515c4f55ed6a50f88185b5c955568fb4ccca0866cc64a6095b43ec11c236d3c93a4110a0552886117b0663035a72b41cb4fd66ad3b423233
6
+ metadata.gz: 464e58065e59411025bcdd7b3a125a20b0896d01ca545fccdc853b4f1f80c10dcb74ac2e63057e907ff1dd65ff233ceae2f9a9bc125f4422eb838be06e46338b
7
+ data.tar.gz: 0c669ce6fe5cc1f57f91b71f87ebf036bf39ee053f368db0d58941fd62d57632efe00de9e3f4fe3e9690960a694d5eb6dc4ad959e8c4622fcd440723e9dce8f1
@@ -8,7 +8,7 @@ module TelephoneNumber
8
8
  end
9
9
 
10
10
  def parse(number, country = nil)
11
- TelephoneNumber::Number.new(sanitize(number), country)
11
+ TelephoneNumber::Number.new(number, country)
12
12
  end
13
13
 
14
14
  def valid?(number, country = nil, keys = [])
@@ -42,7 +42,7 @@ module TelephoneNumber
42
42
  end
43
43
 
44
44
  def geocoding_path(locale)
45
- path = File.join('data', 'geocoding', locale.to_s, '*.dat')
45
+ path = File.expand_path("../../../data/geocoding/#{locale}/*.dat", __FILE__)
46
46
  Dir.glob(path)
47
47
  end
48
48
 
@@ -1,3 +1,3 @@
1
1
  module TelephoneNumber
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telephone_number
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - MOBI Wireless Management
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-12 00:00:00.000000000 Z
11
+ date: 2017-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler