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 +4 -4
- data/lib/phonelib/phone_analyzer.rb +2 -1
- data/lib/phonelib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f9e38bbe2ee3e0959e7de3d027ecebbf6394d35
|
4
|
+
data.tar.gz: 93ab5c6ed5875e7648e30d663328b1102fe4f30e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
21
|
+
detected = detect_and_parse phone
|
22
|
+
result = detected.empty? ? result || {} : detected
|
22
23
|
end
|
23
24
|
result
|
24
25
|
end
|
data/lib/phonelib/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|