phony 3.0.6 → 3.0.7

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: 9339012fe2b02a70b5c7cd4b8cc85ab4acc273abd0210b2897f1801b3d90a6e1
4
- data.tar.gz: f1686fc319228b4ab0815a7dcdc5889b39013ebe66eefb976ea79be01c3fef5f
3
+ metadata.gz: 441d0dbf7565477e2cfacbcaee8eabd753d913ae8b63d4ba69c74a23f7f433e1
4
+ data.tar.gz: d3bfdb4e3a747e03dc322c6e58fc15f8be60ed029250e64c951ce7e11a489b22
5
5
  SHA512:
6
- metadata.gz: c6b41b07baaee3ce84a6aaa8910f1859109397f511a8c58ac9797e3f72414e2714fa2fca83ce671f14d64e805c911d2aab4c5b84a569a17df5e3878f8a60d99f
7
- data.tar.gz: 504ac2475ef093416e75998c7f402e6d0e9d8299ad024b4b096adfe1c9247ea07703809dfe64fda7a5238fa8a6a5a6bd46fc3536d98f01dbf19a7f26a61bf4b6
6
+ metadata.gz: 5a10c26c9b54329432f2fdd6c7262c2424d95c60d190a87983972f3f6dbc530168eb63065bd94423bc52ec6107484ce3e9106ef51df3f09169377e6fa215064a
7
+ data.tar.gz: e852a59e36e98c18f2cfeae12623662902a97057b7242606f8b7335d7e22078b3c8f0b59a1bfe1f4bd2ed600d4520ee244497a12a254ee7469067de3e5e0738e
@@ -69,7 +69,10 @@ ndcs_with_3_subscriber_digits = %w[331700]
69
69
 
70
70
  Phony.define do
71
71
  country '992',
72
- trunk('8') |
72
+ # The trunk code '8' is also the leading digit of the MegaFon mobile
73
+ # NDCs (88x), so the scheme is ambiguous. Do not strip it on normalize
74
+ # (same as Russia and Latvia, which share this '8' ambiguity).
75
+ trunk('8', normalize: false) |
73
76
  one_of(ndcs_with_3_subscriber_digits) >> split(3) |
74
77
  one_of(ndcs_with_5_subscriber_digits) >> split(3, 2) |
75
78
  one_of(ndcs_with_6_subscriber_digits) >> split(3, 3) |
@@ -536,6 +536,7 @@ Phony.define do
536
536
  match(/\A(32)\d+\z/) >> split(2, 3, 2) | # mobile Orange Madagascar
537
537
  match(/\A(33)\d+\z/) >> split(2, 3, 2) | # mobile Airtel Madagascar
538
538
  match(/\A(34)\d+\z/) >> split(2, 3, 2) | # mobile Telecom Malagasy (Telma)
539
+ match(/\A(35)\d+\z/) >> split(2, 3, 2) | # mobile Airtel Madagascar
539
540
  match(/\A(37)\d+\z/) >> split(2, 3, 2) | # mobile Orange Madagascar
540
541
  match(/\A(38)\d+\z/) >> split(2, 3, 2) | # mobile Telecom Malagasy (Telma)
541
542
  match(/\A(39)\d+\z/) >> split(2, 3, 2) # mobile Blueline Madagascar
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phony
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.6
4
+ version: 3.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-09 00:00:00.000000000 Z
11
+ date: 2026-08-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'Fast international phone number (E164 standard) normalizing, splitting
14
14
  and formatting. Lots of formatting options: International (+.., 00..), national