phonelib 0.9.0 → 0.9.1

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: cfc1c4a9625861e072096320aec6b4867d509d47b170fcd0a92c0ffde521f7b5
4
- data.tar.gz: f0d3db76ed4614f8667796d79b4166d2827801997b04986429d7b80418337420
3
+ metadata.gz: 2cc35b2b49e08abb5a2da2075e9ff6a33398b9e07a97fdc1e377ccb273eb3114
4
+ data.tar.gz: fee9d2ac1700bbe33c056f0d658e8a260408acf320e76e62b4f993efe31fe940
5
5
  SHA512:
6
- metadata.gz: 03fd33d4683e7845bb94c5293ab0d9e28654cf4e9024a60221e62017d60a396c71167382ce40eef5ff60fcc1c2578845a6bdf996050f275e198dc04c280a54b3
7
- data.tar.gz: 9fe16f0ecab0ce8f583a61c7516052b59394d11f4555b267c1602cd6c5113fda3b109a8e0e4d6c3624ce2e01c39b3e32e89b52b2f63ffb0e019e7359b6cddb5f
6
+ metadata.gz: 0f24a98ff377ab4eda20f1c8c0a3c68a608b103ff90009933ef5094aa68bf019a4fb17b65ea734f17364682666802cddf06906f3850299538b908f9781696f01
7
+ data.tar.gz: 7e80f05ab5f94310250700eaea3f8bac83842dba84fca847cb7d6e93cf7da38eb27001af69550417d74f41dc888dbd4781fb5d73ae7ca8bb30912d411f21ee53
@@ -8,6 +8,7 @@ module Phonelib
8
8
  result
9
9
  else
10
10
  matched_countries = country_or_default_country(nil) & result.keys
11
+ matched_countries = result.keys.take(1) if matched_countries.size == 0
11
12
  result = result.keep_if {|k, _v| matched_countries.include?(k) } if matched_countries
12
13
  Hash[result.take(1)]
13
14
  end
@@ -1,4 +1,4 @@
1
1
  module Phonelib
2
2
  # @private
3
- VERSION = '0.9.0'
3
+ VERSION = '0.9.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phonelib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vadim Senderovich