phony 2.15.10 → 2.15.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/phony/countries.rb +2 -2
- data/spec/lib/phony/countries_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60165ce29f31bd500dba689e4f56e6b205ae515c
|
4
|
+
data.tar.gz: e619d808436cbbd10c472aecd371356d1e7ad116
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4305b318866ae2d7e59073a588087f4b2538cf445d8e99ebd03aae019a9d91faf770ca8a70d683ef90bddf5ebe3e0fa1340dde0d3c3bca4197bf90b3b1f358e7
|
7
|
+
data.tar.gz: 3b0324e59fe6d8f20f9db230d8d0ac21bce320cf0f7e6fbf41e10751cf6557361f3b3ced33b15b6ef43a4abe4053c82c15947f3b1cb0fec450c521b3a1be13b8
|
data/lib/phony/countries.rb
CHANGED
@@ -236,8 +236,8 @@ Phony.define do
|
|
236
236
|
country '61',
|
237
237
|
trunk('0') |
|
238
238
|
match(/^(4\d\d)\d+$/) >> split(3,3) | # Mobile
|
239
|
-
match(/^(1800)\d+$/) >> split(
|
240
|
-
match(/^(1300)\d+$/) >> split(
|
239
|
+
match(/^(1800)\d+$/) >> split(3,3) | # 1800 free call
|
240
|
+
match(/^(1300)\d+$/) >> split(3,3) | # 1300 local rate
|
241
241
|
match(/^(13)\d+$/) >> split(2,2) | # 13 local rate
|
242
242
|
fixed(1) >> split(4,4) # Rest
|
243
243
|
|
@@ -57,8 +57,8 @@ describe 'country descriptions' do
|
|
57
57
|
it_splits '61512341234', ['61', '5', '1234', '1234'] # Landline
|
58
58
|
it_splits '61423123123', ['61', '423', '123', '123'] # Mobile
|
59
59
|
it_splits '61131212', ['61', '13', '12', '12'] # 13 local rate
|
60
|
-
it_splits '
|
61
|
-
it_splits '
|
60
|
+
it_splits '611300123123', ['61', '1300', '123', '123'] # 1300 local rate
|
61
|
+
it_splits '611800123123', ['61', '1800', '123', '123'] # 1800 free call
|
62
62
|
end
|
63
63
|
|
64
64
|
describe 'Bahrain' do
|
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.
|
4
|
+
version: 2.15.11
|
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-
|
11
|
+
date: 2015-12-23 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
|