phonelib 0.4.5 → 0.4.6

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: d41c3a2238fcd37fa705df52c45f41e697e48cd6
4
- data.tar.gz: 1153c7ee8509aeb4b113d1d06312e1e320a7aeb8
3
+ metadata.gz: 5f9e38bbe2ee3e0959e7de3d027ecebbf6394d35
4
+ data.tar.gz: 93ab5c6ed5875e7648e30d663328b1102fe4f30e
5
5
  SHA512:
6
- metadata.gz: dceade03f94f9bb6c17146fd375d7f83827b1358bd5e6457a526b7ca6eacc6e80ce2b9ad19a50cda4502d4955cb80e71a778f5f494a213431456ef7fbc55e180
7
- data.tar.gz: 2cf7ff6c7962ea7874af17374393b835dbdf60e9516ce0fb1158925f93a00e39920536c03ae5ab5abbab9d336c606ac003536ae175c72c77cd7e1215d035add6
6
+ metadata.gz: 8987605e00c44847d1ed0cff1442d00da44c00c52e1c0b088c4d6367eb3f8250e82f34724f2d197f4961a83f7d345e96fc0bf414b9ef708c9422e5af1ae90c56
7
+ data.tar.gz: 36ac9c17df407b5f00e0e12b37cc93a609fe0f4e9072061795a3f92171d86dbabfea99a0ba9a3c6bf01a08cf090a6e3a14e2fa17ab58e3ab6ddf20b0385e5920
@@ -18,7 +18,8 @@ module Phonelib
18
18
  result = try_to_parse_single_country(phone, country)
19
19
  # if previous parsing failed, trying for all countries
20
20
  if result.nil? || result.empty? || result.values.first[:valid].empty?
21
- result = detect_and_parse phone
21
+ detected = detect_and_parse phone
22
+ result = detected.empty? ? result || {} : detected
22
23
  end
23
24
  result
24
25
  end
@@ -1,5 +1,5 @@
1
1
  # :nodoc:
2
2
  module Phonelib
3
3
  # :nodoc:
4
- VERSION = '0.4.5'
4
+ VERSION = '0.4.6'
5
5
  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.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vadim Senderovich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-03 00:00:00.000000000 Z
11
+ date: 2015-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake