phony 2.15.12 → 2.15.13

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: 07e49c60c2970dddab809bebb407b1d38dc08c07
4
- data.tar.gz: 93d90872664aea9bf51d6deedd69ed581f95a500
3
+ metadata.gz: 7f96bfbdf7d8396522e35eb71add389ef5a51eff
4
+ data.tar.gz: bc48eaac2fda894921d48bb0ff1de85607a39355
5
5
  SHA512:
6
- metadata.gz: f56b026ff64cd2272dd01808d632b8215fa0e516bd00005c545248073f436393bcc288c22e95a6eb55654897c51c54fecda0c660bf5fe16227bd0975839deaba
7
- data.tar.gz: 307da5099fdfb1ed4037382a0177205fd15f219714d268c7ab893e704debc563545a4d2912c2cea721b3a5425e6bc928db25b3e6957e2c82f70fd785eac2281e
6
+ metadata.gz: c24cfe4be6e31c5ff4a37857a1528546e4d234086def93a452acdfb43d5a2bbb247f1e8967c756707387d572f306848eedb191e7d248f8744ebe27cc254f40cb
7
+ data.tar.gz: 7938d62c6936874ab474eda0f0ff30596b3a8f3c833bec4cbd0ca3daf06adc6c7a2024f08ad6cebd64b3be7448b3c73f32337bb23d591c44f4cc47050467187c
@@ -17,7 +17,7 @@ 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 62 63 68 69)) >> matched_split(
20
+ one_of(%w(60 61 63 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)
@@ -26,7 +26,7 @@ Phony.define do
26
26
  /\A\d{6}\z/ => [3,3],
27
27
  /\A\d{7}\z/ => [3,4],
28
28
  /\A\d+\z/ => [3,3,4]) | # mobile, voicemail (mobile)
29
- one_of(%w(64 65)) >> matched_split(
29
+ one_of(%w(62 64 65)) >> matched_split(
30
30
  /\A\d{2}\z/ => [2],
31
31
  /\A\d{3}\z/ => [3],
32
32
  /\A\d{6}\z/ => [3,3],
@@ -214,6 +214,7 @@ describe 'plausibility' do
214
214
  '+381 70 123 456',
215
215
  '+381 66 12 1234',
216
216
  ['+381 64 12 34567', '+381 64 12 3456'],
217
+ ['+381 62 12 34567', '+381 62 12 3456'],
217
218
  ['+381 65 12 34567', '+381 65 12 3456']]
218
219
  it_is_correct_for 'Sierra Leone', :samples => '+232 42 393 972'
219
220
  it_is_correct_for 'Solomon Islands', :samples => '+677 97851'
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.12
4
+ version: 2.15.13
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-12-30 00:00:00.000000000 Z
11
+ date: 2016-01-05 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