phony 2.15.19 → 2.15.20

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1cb0416a39d1d5c39356ee85ef04e906f258ae3d
4
- data.tar.gz: e9870949c5a18d8861a95ab44d3bad4811599e43
3
+ metadata.gz: 80c3cd9ec064cea03c0a9be28d5b119a70a8b60e
4
+ data.tar.gz: 786121b9ec8465a6a5767c5b47c793d4d918626d
5
5
  SHA512:
6
- metadata.gz: 7361ad4f0066fbaa78277004c3cb4a84c01a03c7b4a6a76437b07d2b3ebf0fea65e00609f24e7675b4c1aa3ded18b651d91464dcd8a3c9e6184136ae59851379
7
- data.tar.gz: 6ba8afedc93786d59ae17be48abf8ffdf3172e072d7ec6ef7634b1168585d16df91a807e18426e1e0bbc85ce0b7f0d145b9c017131d7882d4849fc9665315e74
6
+ metadata.gz: 315fdfbf53096487118204e4918b65e64510ae444bbb8d84bc57c294fb42a29333d3372dea33e7347b863b30027db3d2939fe9f3eec4260af05abfab459e503e
7
+ data.tar.gz: 270f784d5596acc5d11d5364737171125a1df8abaee71934b62990a8c00a777b3747660cce26af9ad7dcd4734b433872d6dfbbc61f1a122743faedbe2159309f
@@ -17,11 +17,11 @@ Phony.define do
17
17
  /\A\d{5}\z/ => [3,2],
18
18
  /\A\d+\z/ => [3,3]) |
19
19
  one_of(%w(72)) >> split(3,3) | # ISP
20
- one_of(%w(60 61 63 68 69)) >> matched_split(
20
+ one_of(%w(60 61 68 69)) >> matched_split(
21
21
  /\A\d{3}\z/ => [3],
22
22
  /\A\d{7}\z/ => [3,4],
23
23
  /\A\d+\z/ => [3,3,4]) | # mobile, voicemail (mobile)
24
- one_of(%w(66)) >> matched_split(
24
+ one_of(%w(66 63)) >> matched_split(
25
25
  /\A\d{3}\z/ => [3],
26
26
  /\A\d{6}\z/ => [3,3],
27
27
  /\A\d{7}\z/ => [3,4],
@@ -213,6 +213,7 @@ describe 'plausibility' do
213
213
  '+381 60 123 456 7890',
214
214
  '+381 70 123 456',
215
215
  '+381 66 12 1234',
216
+ '+381 63 123 456',
216
217
  ['+381 64 12 34567', '+381 64 12 3456'],
217
218
  ['+381 62 12 34567', '+381 62 12 3456'],
218
219
  ['+381 65 12 34567', '+381 65 12 3456']]
@@ -1100,6 +1100,7 @@ describe 'country descriptions' do
1100
1100
  it_splits '38160123', %w(381 60 123)
1101
1101
  it_splits '381601234567890', %w(381 60 123 456 7890)
1102
1102
  it_splits '38170123456', %w(381 70 123 456)
1103
+ it_splits '38163123456', %w(381 63 123 456)
1103
1104
  end
1104
1105
  describe 'Sierra Leone' do
1105
1106
  it_splits '23264629769', %w(232 64 629 769)
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.15.19
4
+ version: 2.15.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-25 00:00:00.000000000 Z
11
+ date: 2016-04-01 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