phony 2.4.0 → 2.4.1

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
  SHA1:
3
- metadata.gz: ffd6c59da8ff1d1b85f32f5caf0203fa49795df3
4
- data.tar.gz: c470c3d8f4d599afd2a99f9f85ad9dc2dda12751
3
+ metadata.gz: aed9df2814f1140b3ed1ddd142dc6f1854209ebf
4
+ data.tar.gz: 2c0478d16ee451f32380f8c0b022175ae346853a
5
5
  SHA512:
6
- metadata.gz: 40fc9bd07e284289fe77be2a92c78acd98713a495995a63779641960773f36ae211ca70215297b7846079014bbf38e486c22191aaef6c382c55f82856cf8b029
7
- data.tar.gz: 25dd2c0b3a98cd81a6d4919856231a525b2bb3d241df085bccea5beba790edf152e7b7314e10b3ab5e32cf7c373f055965604aced8af2b1c94919a93a1ae080c
6
+ metadata.gz: 53806748c41e12355890d8e282b427c3a3e545de310920c9b72ec9f4eb97abcb583a1d57a43dcb429efd94377a1f753300e130349a29a378c6c7ec15ff3f4516
7
+ data.tar.gz: 565cae51875903985f6b65635822d39988642616ba5111588831e15b647779c974250aac09db1ac6aef0b4418eb530b1e730e9d06863f82f39598d185fa19d3b
@@ -17,11 +17,11 @@ Phony.define do
17
17
  /\A\d+\z/ => [3,3]) |
18
18
  one_of(%w(72)) >> split(3,3) | # ISP
19
19
  one_of(%w(60 61 62 63 68 69)) >> matched_split(
20
- /\A\d{3}\z/ => [3],
20
+ /\A\d{3}\z/ => [3],
21
21
  /\A\d{7}\z/ => [3,4],
22
22
  /\A\d+\z/ => [3,3,4]) | # mobile, voicemail (mobile)
23
23
  one_of(%w(66)) >> matched_split(
24
- /\A\d{3}\z/ => [3],
24
+ /\A\d{3}\z/ => [3],
25
25
  /\A\d{6}\z/ => [3,3],
26
26
  /\A\d{7}\z/ => [3,4],
27
27
  /\A\d+\z/ => [3,3,4]) | # mobile, voicemail (mobile)
@@ -29,6 +29,7 @@ Phony.define do
29
29
  /\A\d{2}\z/ => [2],
30
30
  /\A\d{3}\z/ => [3],
31
31
  /\A\d{6}\z/ => [3,3],
32
+ /\A\d{7}\z/ => [3,4],
32
33
  /\A\d+\z/ => [3,3,4]) | # mobile, voicemail (mobile)
33
34
  one_of(%w(70)) >> split(3,3) | # universal access
34
35
  one_of(%w(42 78)) >> split(3,3) | # premium rate
@@ -721,7 +721,9 @@ describe 'plausibility' do
721
721
  '+381 60 123',
722
722
  '+381 60 123 456 7890',
723
723
  '+381 70 123 456',
724
- '+381 66 12 1234']
724
+ '+381 66 12 1234',
725
+ ['+381 64 12 34567', '+381 64 12 3456'],
726
+ ['+381 65 12 34567', '+381 65 12 3456']]
725
727
  it_is_correct_for 'Sierra Leone', :samples => '+232 42 393 972'
726
728
  it_is_correct_for 'Solomon Islands', :samples => '+677 97851'
727
729
  it_is_correct_for 'Somali Democratic Republic', :samples => ['+252 1034 123 45',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phony
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke