phony 2.2.9 → 2.2.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2I3ZTIzMzhmMjQ2ZmFmNDU3NThlN2YyNzVjNjZkYzk2ZGY1YWZhNg==
4
+ MzAzNTY4NmJkYjM3ZjgyMTBhMmI1NDRhZGEzMjdlYzI5YTA0ZTY4Zg==
5
5
  data.tar.gz: !binary |-
6
- YmRmYmEzNmMwYmI0NmY3MjAwYjMwOTdhZjljNWY4OWExYWZmNTE1Ng==
6
+ OWE3ZjY4NzdjMzkyZjc4NGZjOTA5MWMxMjQ2YmFmYjQ2NjJlNDY5Zg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NGQ1YzBhODc1MGVhZGUxMDI5MDdlZGU5YmFjMmFhMDM1NmE1MWEyZTdjNDU5
10
- MDRkMzI4YjQ0YzYyMGI5MDliMzY4ZTc2YmZiNGY1YzZkMmFkOGFkZTY5OTU0
11
- NzMwYTRhYzlhMDE5ZDFjODY2OWViYTZkNTkyNmYyOWI0MGUyNGY=
9
+ MDA0ZjdjNzYzZGU5ZjE1YzQzODc2MDQ2YmNmOTZlMjU4MjQ0MTVlZmU0MzE0
10
+ ZjA0NmRlODgyZDcxZDQwNmY4MGI1ZDMwMGY1YmYxNDlmYWZmMTI1ZGQyZjAy
11
+ NDBjMWM4NGI5NDA3NjJjN2E5ZWRhYjIzOTM0Mjg0ODFmYThkNWM=
12
12
  data.tar.gz: !binary |-
13
- YTczMzUzZWMzOGE1MDk5NzZiMDA2OGM2MTc0ZWZiMmE1ZWI2MDQ0ODZkNTc0
14
- ZmRmYjJkZWExMWQyYjM0MWZlMDUzMzFmOTg3M2M1ZDU0ZTZjODE3MDdlNjMz
15
- YjZhZjE2MjFkYWU0ZTI3N2FkNzQ0ZjU4YzUzN2UxZmU2NmY4N2Y=
13
+ ZTY5MTFjNDgzYTA0OGZhN2RkNzVjZTkxMDA2NzRiNjZmMzJiOWZmMzc2MDlm
14
+ YTkyYjZjODBjMDUyMWIzNmFiODg3NDg1M2RlZGVhNTE5OGU2NjkzNDA0MmRj
15
+ ZDI0NWI3NzY1ZmE4M2Q1NWVmYmQ4YmIzNTc1MmQ2MDUyN2I3NGQ=
@@ -29,6 +29,7 @@ Phony.define do
29
29
  /\A\d+\z/ => [3,2]) |
30
30
  match(/\A(81\d|85\d|86\d|88\d)\d+\z/) >> matched_split( # mobile
31
31
  /\A\d{6}\z/ => [3,3],
32
+ /\A\d{7}\z/ => [3,4],
32
33
  /\A\d+\z/ => [4,4]) |
33
34
  match(/\A(82\d|83\d)\d+\z/) >> split(3,3) | # mobile
34
35
  one_of(%w(870)) >> split(3,2) | # satellite
@@ -503,13 +503,12 @@ describe 'plausibility' do
503
503
  ['+62 6 221 2345', '+62 6 2212 3456'],
504
504
  '+62 70 123 456',
505
505
  ['+62 71 123 456', '+62 71 123 4567'],
506
- '+62 810 123 456',
507
- '+62 810 1234 5678',
506
+ ['+62 810 123 456', '+62 810 123 4567', '+62 810 1234 5678'],
507
+ ['+62 815 123 456', '+62 815 123 4567', '+62 815 1234 5678'],
508
508
  '+62 820 123 456',
509
509
  '+62 870 123 45',
510
510
  '+62 877 123 456',
511
- '+62 881 123 456',
512
- '+62 881 1234 5656',
511
+ ['+62 881 123 456', '+62 881 123 4567', '+62 881 1234 5678'],
513
512
  '+62 9 1234 567',
514
513
  '+62 9 123 456 789']
515
514
  it_is_correct_for 'Iraq', :samples => ['+964 1 123 4567',
@@ -282,6 +282,7 @@ describe 'country descriptions' do
282
282
  it_splits '62711234567', %w(62 71 123 4567)
283
283
  it_splits '62810123456', %w(62 810 123 456)
284
284
  it_splits '6281012345678', %w(62 810 1234 5678)
285
+ it_splits '628151234567', %w(62 815 123 4567)
285
286
  it_splits '62820123456', %w(62 820 123 456)
286
287
  it_splits '6287012345', %w(62 870 123 45)
287
288
  it_splits '62877123456', %w(62 877 123 456)
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.2.9
4
+ version: 2.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-21 00:00:00.000000000 Z
11
+ date: 2014-05-22 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