phony 2.14.8 → 2.14.9
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 +1 -1
- data/spec/functional/plausibility_spec.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d899b7238e4730c3c4dc1c8363e25cc7056e1519
|
|
4
|
+
data.tar.gz: dd00c40bf2d45b68d5795c6531b5dc5ce68b45a9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e60482959cc85b8bde5b75c2f422bb822a9ac9a3a147eb185ef454e5a28f6ec18343210c9c813d7e949c894b390966421b0172be07224030a48f3582ac17768
|
|
7
|
+
data.tar.gz: 2bde5d6738291e1809003f78972fab5a2134f0601c684f005e0420f213617622f0c87019b972acde44d40e8a8c46dc38872844cc74ce6638f472038789603fc3
|
data/lib/phony/countries.rb
CHANGED
|
@@ -732,7 +732,7 @@ Phony.define do
|
|
|
732
732
|
fixed(1) >> split(3,4)
|
|
733
733
|
|
|
734
734
|
# El Salvador (Republic of)
|
|
735
|
-
country '503', fixed(4) >> split(4
|
|
735
|
+
country '503', fixed(4) >> split(4)
|
|
736
736
|
|
|
737
737
|
# Honduras (Republic of) http://www.wtng.info/wtng-504-hn.html
|
|
738
738
|
# https://www.numberingplans.com/?page=dialling&sub=areacodes
|
|
@@ -177,6 +177,10 @@ describe 'plausibility' do
|
|
|
177
177
|
it_is_correct_for 'Reunion / Mayotte (new)', :samples => '+262 295 276 964'
|
|
178
178
|
it_is_correct_for 'Saint Helena', :samples => '+290 5134'
|
|
179
179
|
it_is_correct_for 'Saint Pierre and Miquelon (Collectivité territoriale de la République française)', :samples => '+508 474 714'
|
|
180
|
+
it_is_correct_for 'Salvador (El)', :samples => [
|
|
181
|
+
'+503 2112 1234',
|
|
182
|
+
'+503 6112 1234'
|
|
183
|
+
]
|
|
180
184
|
it_is_correct_for 'Samoa (Independent State of)', :samples => ['+685 800 123',
|
|
181
185
|
'+685 61 123',
|
|
182
186
|
'+685 721 2345',
|
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.14.
|
|
4
|
+
version: 2.14.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Florian Hanke
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-07-
|
|
11
|
+
date: 2015-07-17 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
|