phony 2.22.0 → 2.22.1
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 +8 -1
- 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: 4f66714a6cacac1c5d997c427b432e4cdea15045566297eec6af801566a3183e
|
4
|
+
data.tar.gz: 1d7be8092632578d793621d0ec587f51480a8575e62c8e3be3450a1b642ae0b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ec61646d7b9cf62c895d859d92169f934350adf5f32fdea4684422bc7ecfda52b5aa9516bce041cdaca4d192c53db5e24eea7bc8a4d07f2fbbe1d58865dc3a5
|
7
|
+
data.tar.gz: 684a3db1c3277d54accf7d43d4023ea224d233b013543929d14c17a7006cd2d3926c183f29963f201f49a2a39c18d68f749908c49bb9310735b4debe8954907a
|
data/lib/phony/countries.rb
CHANGED
@@ -800,7 +800,14 @@ Phony.define do
|
|
800
800
|
one_of('1', '2', '3', '4', '5', '7') >> split(3, 4) | # Ljubljana, Maribor, Celje, Kranj, Nova Gorica, Novo mesto
|
801
801
|
fixed(3) >> split(2, 3) # catchall
|
802
802
|
|
803
|
-
|
803
|
+
# Bosnia and Herzegovina
|
804
|
+
country '387',
|
805
|
+
trunk('0') |
|
806
|
+
match(/^(60)(?:31|32|33|34|38|39)/) >> split(7) | # BH Mobile
|
807
|
+
match(/^(64)(?:40|41|42|43|44|45)/) >> split(7) | # Haloo
|
808
|
+
match(/^(67)(?:11|12)/) >> split(7) | # Novotel
|
809
|
+
fixed(2) >> split(3, 3) # catchall
|
810
|
+
|
804
811
|
country '388', trunk('0') | fixed(2) >> split(3, 2, 2) # Group of countries, shared code
|
805
812
|
|
806
813
|
# The Former Yugoslav Republic of Macedonia
|
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.1
|
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-03-
|
11
|
+
date: 2025-03-22 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
|