phony 2.22.5 → 2.22.6
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 +4 -4
- data/lib/phony/countries.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ebb2acbd437cd127a36f735a95cd8eb6e0b74e5a7b0e7efdeca826f601ec703a
|
|
4
|
+
data.tar.gz: 0ccc81fcf37fd0713a637963731fcf3298107d890dddb9460e3d3fc255b439e7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c61ce34247d5a81b474f1d838cfab1ce68e948c4e12be0160d61b15db18afc2d3c5044f903e6386ed5090cc5bd0a83fa76056e89abebaa817db11233ee77de17
|
|
7
|
+
data.tar.gz: 5e947e02b55416a29aa9c57d2e561d981d93a968d494823795725fd4c0f43dab43dbf2d32a52cc08be44bfe41d29ff410112dffc9006c825d8228e7fd88d9cc5
|
data/lib/phony/countries.rb
CHANGED
|
@@ -229,6 +229,7 @@ Phony.define do
|
|
|
229
229
|
# Colombia.
|
|
230
230
|
# http://www.itu.int/oth/T020200002C/en
|
|
231
231
|
country '57',
|
|
232
|
+
match(/\A(1800)\d+\z/) >> split(3, 4) | # toll free 1800 numbers
|
|
232
233
|
match(/\A(3\d\d)\d+\z/) >> split(3, 4) | # mobile (300 310 311 312 313 315 316)
|
|
233
234
|
match(/\A(60\d)\d+\z/) >> split(3, 4) |
|
|
234
235
|
fixed(1) >> split(3, 4)
|
|
@@ -899,6 +900,7 @@ Phony.define do
|
|
|
899
900
|
# https://www.numberingplans.com/?page=plans&sub=phonenr&alpha_2_input=EC¤t_page=1
|
|
900
901
|
# https://en.wikipedia.org/wiki/Telephone_numbers_in_Ecuador
|
|
901
902
|
country '593',
|
|
903
|
+
match(/\A(1800)\d+\z/) >> split(3, 3) | # toll free 1800 numbers
|
|
902
904
|
one_of('9') >> split(4, 4) |
|
|
903
905
|
match(/\A([\d]{2})\d{7}\z/) >> split(3, 4) |
|
|
904
906
|
fixed(1) >> split(3, 4)
|
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: 2.22.
|
|
4
|
+
version: 2.22.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Florian Hanke
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-03 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
|