phony 2.15.18 → 2.15.19

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: 7acbb80be264e642f3e35e07972f83a7b43d2b53
4
- data.tar.gz: 2a5144bd5ed23546f4ca531d0cf3dc3a829b20d6
3
+ metadata.gz: 1cb0416a39d1d5c39356ee85ef04e906f258ae3d
4
+ data.tar.gz: e9870949c5a18d8861a95ab44d3bad4811599e43
5
5
  SHA512:
6
- metadata.gz: c7bc915664754fee769a70307d6e7b9afe57da6aae7bb7acfb40a0a64110cc712285bb8ac15a5f9f9aca88e7bc8fb95453aca0d67ca7568889d31142eb70a086
7
- data.tar.gz: 2cef86c47528c2db8bcea513dac9a92b3338b7c7b408a7dbca1213d6f31335e2e005d0fe4f39fc43ee5008ee6c5859dad4f2cf226e7c5e7526aa77976178a02a
6
+ metadata.gz: 7361ad4f0066fbaa78277004c3cb4a84c01a03c7b4a6a76437b07d2b3ebf0fea65e00609f24e7675b4c1aa3ded18b651d91464dcd8a3c9e6184136ae59851379
7
+ data.tar.gz: 6ba8afedc93786d59ae17be48abf8ffdf3172e072d7ec6ef7634b1168585d16df91a807e18426e1e0bbc85ce0b7f0d145b9c017131d7882d4849fc9665315e74
@@ -29,7 +29,7 @@ Phony.define do
29
29
  /\A\d{3}\z/ => [3],
30
30
  /\A\d+\z/ => [3,2]) |
31
31
  one_of(%w(870)) >> split(3,2) | # satellite
32
- match(/\A(81\d|82\d|84\d|85\d|86\d|87\d|88\d)\d+\z/) >> matched_split( # mobile
32
+ match(/\A(81\d|82\d|83\d|84\d|85\d|86\d|87\d|88\d|89\d)\d+\z/) >> matched_split( # mobile
33
33
  /\A\d{6}\z/ => [3,3],
34
34
  /\A\d{7}\z/ => [3,4],
35
35
  /\A\d+\z/ => [4,4]) |
@@ -43,6 +43,7 @@ describe 'country descriptions' do
43
43
  it_splits '4368100000000', %w( 43 681 0000 0000 ) # Mobile
44
44
  it_splits '436880000000', %w( 43 688 0000 000 ) # Mobile
45
45
  it_splits '4366900000000', %w( 43 669 0000 0000 ) # Mobile
46
+ it_splits '4367000000000', %w( 43 670 0000 0000 ) # Mobile
46
47
  it_splits '433161234567891', %w( 43 316 1234567891 ) # Graz
47
48
  it_splits '432164123456789', %w( 43 2164 123456789 ) # Rohrau
48
49
 
@@ -318,6 +319,7 @@ describe 'country descriptions' do
318
319
  it_splits '62877123456', %w(62 877 123 456)
319
320
  it_splits '62881123456', %w(62 881 123 456)
320
321
  it_splits '6288112345656', %w(62 881 1234 5656)
322
+ it_splits '628990344805', %w(62 899 034 4805)
321
323
  it_splits '6291234567', %w(62 9 1234 567)
322
324
  it_splits '629123456789', %w(62 9 123 456 789)
323
325
  end
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.18
4
+ version: 2.15.19
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-14 00:00:00.000000000 Z
11
+ date: 2016-03-25 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