phonelib 0.10.9 → 0.10.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d02888169692ebcf0b98bd02f467f3d2241eb1d6687345c5176cd3d7054b4b70
4
- data.tar.gz: d73a746b3e5d4f9fed365dca8491d8f259016c4304428c39035cf27792f93502
3
+ metadata.gz: 29c8d88f7ef940fab3d11651f7c87ea94a735a7bc47b5aa712b10931c11efeaa
4
+ data.tar.gz: 2776165ad406bfb2121a53889d7254df712835dc5a8cb3fb0f7092f32b62af7d
5
5
  SHA512:
6
- metadata.gz: 5f0491a84599e35d6d665df74971250c5521b82e91411e00938a98c720efae6b5fb651107e79574fa0050543540a0c9648fced165f73f2b976e0024d89c9aadb
7
- data.tar.gz: adb6f0e9095bb1bf35836860f7049b3e5013d0903b710deedb61a71fbd206b5d0f29f2bdfb2d0da4ea75b0a5eec6ee6c0e174a76a3fc7c43b07e236ae2ec6aca
6
+ metadata.gz: 982af83dc10364b51ae46b415344e47b3f288b234672d6c577e5916a46ba8684e8f7b73ffbcba3437505cb48600d43f87f765347c160b0bbc772e9f7c9e1dcb8
7
+ data.tar.gz: b1e2d7504809d66064b164143db6fa494ab229a027ad88e57f2de8771c12d1867894c080c366d60a7d7e4a642b863cad17507333a025a5d45e1dfa7110e60772
Binary file
data/data/phone_data.dat CHANGED
Binary file
@@ -37,7 +37,7 @@ module Phonelib
37
37
  return @country_code if @country_code
38
38
 
39
39
  code = Phonelib.phone_data[country] && Phonelib.phone_data[country][Core::COUNTRY_CODE]
40
- return @country_code = code unless code == '1' && Phonelib.phone_data[country][Core::LEADING_DIGITS]
40
+ return @country_code = code unless code == '1' && Phonelib.phone_data[country][Core::LEADING_DIGITS] && Phonelib.phone_data[country][Core::LEADING_DIGITS] =~ /[\[\|]/
41
41
 
42
42
  match = e164.match(/\A\+(1(#{Phonelib.phone_data[country][Core::LEADING_DIGITS]}))/)
43
43
  if match
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Phonelib
4
4
  # @private
5
- VERSION = '0.10.9'
5
+ VERSION = '0.10.10'
6
6
  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.10.9
4
+ version: 0.10.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vadim Senderovich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-14 00:00:00.000000000 Z
11
+ date: 2025-06-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  Google libphonenumber library was taken as a basis for
@@ -40,7 +40,7 @@ homepage: https://github.com/daddyz/phonelib
40
40
  licenses:
41
41
  - MIT
42
42
  metadata:
43
- changelog_uri: https://github.com/daddyz/phonelib/releases/tag/v0.10.9
43
+ changelog_uri: https://github.com/daddyz/phonelib/releases/tag/v0.10.10
44
44
  post_install_message:
45
45
  rdoc_options:
46
46
  - " --no-private - CHANGELOG.md --readme README.md"