phony 2.18.7 → 2.18.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc7effe6a83fbea02459d9360ed7b3110943b0f2f6cdd93842ba49a8b0c57a53
4
- data.tar.gz: 2cce60443a4838b3d00465b4f846ee4672cae256b777b86a5b2a6ef21c09c4ea
3
+ metadata.gz: 52ba5d1bdf3df3934d02b98d0e9cc4cfceb98b40aa1d42b128e6c67aadbe60bd
4
+ data.tar.gz: 51e53daf31b85be5d8a403a9e97e019d5b38b76441da664b87704a1046ef5b4b
5
5
  SHA512:
6
- metadata.gz: 47fd5724f9f51c3f9ebec8066d807cec3696b29e28bb0089dea3f161dcac1f44339f77c14d47dd96666e975c0dea71f83c16f66bc4b30c2342ee476eb1204668
7
- data.tar.gz: 2f5c1eb7b33ab1666ed3a8bcf84dab9accf91a0da767876f055266ac5a7b679e38d5f29fc4b895cf1d481e60b545763a2721cd2e852f331e5155a7040208d885
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/2312_Austrian_Numbering_Plan_2011-03-30.pdf
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(6..10) |
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.7
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-04 00:00:00.000000000 Z
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