phony 2.2.8 → 2.2.9

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2NhMzg4MzRmZjZkYWMxNGQxNzZjMTQwMjhkYmFhN2U1MDA4MmQ2ZA==
4
+ M2I3ZTIzMzhmMjQ2ZmFmNDU3NThlN2YyNzVjNjZkYzk2ZGY1YWZhNg==
5
5
  data.tar.gz: !binary |-
6
- YzY1M2UwZWI3MTVmNGUwNGMzMTJhYWM3YzYwNGI3YzdiZjUxYTM3Mw==
6
+ YmRmYmEzNmMwYmI0NmY3MjAwYjMwOTdhZjljNWY4OWExYWZmNTE1Ng==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODVkM2RmYmI2N2NjZmJjZmQ5YzE4MTc1NGExN2VmOWRkODYwN2VkYjJiYzg1
10
- OTk2MzBhNTI0YzJkYWUzOWE1NjhjZjE5ZjE1ZTczMTA4ZjZhMmQ1MDhhOWUw
11
- NTgxYTE5OWUxNzNjNDBiNjcxNDlkNDc1ZGUzYTAxNzgwYzIwNTE=
9
+ NGQ1YzBhODc1MGVhZGUxMDI5MDdlZGU5YmFjMmFhMDM1NmE1MWEyZTdjNDU5
10
+ MDRkMzI4YjQ0YzYyMGI5MDliMzY4ZTc2YmZiNGY1YzZkMmFkOGFkZTY5OTU0
11
+ NzMwYTRhYzlhMDE5ZDFjODY2OWViYTZkNTkyNmYyOWI0MGUyNGY=
12
12
  data.tar.gz: !binary |-
13
- MDNjOWE4NWYwZjUwNjAwOGI3ZTUyYzY1YTc0YWI3ZjhkODllYTBjYjRjOGY2
14
- OWIyOTNlZDk5MDZkY2ExODA2MTY1MWYyODhiNWNjODQ0ZTE3NGUyZWM5YjY4
15
- M2MyYzc2NDE4NjgyNzczNmQ1ZGJlYTQyZjhjNWI1MDk2NWQ0MTI=
13
+ YTczMzUzZWMzOGE1MDk5NzZiMDA2OGM2MTc0ZWZiMmE1ZWI2MDQ0ODZkNTc0
14
+ ZmRmYjJkZWExMWQyYjM0MWZlMDUzMzFmOTg3M2M1ZDU0ZTZjODE3MDdlNjMz
15
+ YjZhZjE2MjFkYWU0ZTI3N2FkNzQ0ZjU4YzUzN2UxZmU2NmY4N2Y=
@@ -6,6 +6,7 @@ Phony.define do
6
6
  country '62',
7
7
  one_of('21') >> matched_split(
8
8
  /\A\d{5}\z/ => [3,2],
9
+ /\A\d{7}\z/ => [3,4],
9
10
  /\A\d+\z/ => [4,4]) |
10
11
  one_of(%w(22 23 24 25 26 27 28 29 31 32 33 34 35 36 37 38 39 72)) >> matched_split(
11
12
  /\A\d{5}\z/ => [3,2],
@@ -495,7 +495,7 @@ describe 'plausibility' do
495
495
  '+62 178 123',
496
496
  '+62 178 123 45',
497
497
  '+62 21 123 45',
498
- '+62 21 1234 5567',
498
+ ['+62 21 123 4567', '+62 21 1234 5567'],
499
499
  '+62 22 123 45',
500
500
  '+62 22 123 4567',
501
501
  '+62 4 311 234',
@@ -260,7 +260,7 @@ describe 'country descriptions' do
260
260
  describe 'Indonesia' do
261
261
  it_splits '6242323032', ["62", "4", "2323", "032"]
262
262
  it_splits '6285220119289', ['62', '852', '2011', '9289']
263
- it_splits '62217815263', ['62', '21', '7815', '263']
263
+ it_splits '62217815263', %w(62 21 781 5263)
264
264
  it_splits '6213123', %w(62 13 123)
265
265
  it_splits '6213123456', %w(62 13 123 456)
266
266
  it_splits '6217412', %w(62 174 12)
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.8
4
+ version: 2.2.9
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-16 00:00:00.000000000 Z
11
+ date: 2014-05-21 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