phony 2.18.7 → 2.18.8
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/austria.rb +2 -2
- data/spec/functional/plausibility_spec.rb +2 -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: 52ba5d1bdf3df3934d02b98d0e9cc4cfceb98b40aa1d42b128e6c67aadbe60bd
|
|
4
|
+
data.tar.gz: 51e53daf31b85be5d8a403a9e97e019d5b38b76441da664b87704a1046ef5b4b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fff3dc566134933103392fc1f00402d0aa45422cea6e957adb302aca8a01e2a56024257370facc96c23c587ac653b2931259d877c08a659a3aa0a8a90bac56de
|
|
7
|
+
data.tar.gz: 79ca7f07001002ec9303a9df0b21c49fd1cd3b67394c6aaa602b0f6c3bd5e5ad48292e5ccc462e7de9b789aa759d7e5b44496783442dba74b9a805523a45100e
|
|
@@ -85,7 +85,7 @@ service = [
|
|
|
85
85
|
'939'
|
|
86
86
|
]
|
|
87
87
|
|
|
88
|
-
# https://www.rtr.at/en/tk/E129/
|
|
88
|
+
# https://www.rtr.at/en/tk/E129/Austrian_Numbering_Plan_2011-03-30.pdf
|
|
89
89
|
#
|
|
90
90
|
# TODO Add more details.
|
|
91
91
|
#
|
|
@@ -97,7 +97,7 @@ Phony.define do
|
|
|
97
97
|
one_of('800') >> split(6..10) | # Free number length is 9..13
|
|
98
98
|
one_of(corporate_2digit) >> split(3..11) | # Corporate number length is 5..13
|
|
99
99
|
one_of(corporate) >> split(2..10) | # Corporate number length is 5..13
|
|
100
|
-
one_of(ndcs) >> split(
|
|
100
|
+
one_of(ndcs) >> split(5..10) |
|
|
101
101
|
one_of('663') >> split(6..8) | # 6..8 digit mobile.
|
|
102
102
|
one_of(mobile) >> split(4,3..9) |
|
|
103
103
|
one_of(mobile_2digit) >> split(7..7) | # Separate as mobile contains 676 - 67 violates the prefix rule.
|
|
@@ -46,7 +46,8 @@ describe 'plausibility' do
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
context 'specific countries' do
|
|
49
|
-
it_is_correct_for 'Austria', :samples => '+43 720 116987' # VoIP
|
|
49
|
+
it_is_correct_for 'Austria', :samples => ['+43 720 116987', # VoIP
|
|
50
|
+
'+43 463 12345'] # Klagenfurt
|
|
50
51
|
it_is_correct_for 'Bosnia and Herzegovina', :samples => ['+387 66 666 666',
|
|
51
52
|
'+387 37 123 456',
|
|
52
53
|
'+387 33 222 111']
|
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.18.
|
|
4
|
+
version: 2.18.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Florian Hanke
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-09-
|
|
11
|
+
date: 2019-09-11 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
|