phony 2.15.5 → 2.15.6

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: fb98a6f1e6d86a1a392813411b2ca9c44c843c8b
4
- data.tar.gz: 636250aa357af2170d0372cd3a44c0781b2bd18d
3
+ metadata.gz: a2f4044cacd870dc59e0668a9318a822849f2b9a
4
+ data.tar.gz: c53792edc960f51a5ebca43f9cca8ccb39433ae0
5
5
  SHA512:
6
- metadata.gz: cc64c2d3c67016eb8f64c5d2914c0ef47a1447a740f0ebaf2d7ade08ef2649c5b5732845ae728137bcc857a6249c39602e8437d711a99ce20ff59894e0307ec9
7
- data.tar.gz: 27dcdbf81c7690cb8964b69f1a3bb551b7078236170942a1c2dde6b179274990d8853a4612ea9ecf791a7e63eabe8e89fab27079a95e80b2a78a552005cfe718
6
+ metadata.gz: 04fe8da9943608354feb51da9ed875f2972d695c771ea583ff169f83e85472b6c7715fcc991f777c6d8b2450032c84c044fcc8695320465ebdfdd4230127d4b2
7
+ data.tar.gz: f1074b955e5d0bcbebf5c49fbfad69be277541f07ffe29aa178530983df2c2358837f972e521831b6d840a822ced39e0f37649265d8b17ebb0764a4713f7442d
@@ -236,6 +236,9 @@ 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(4,4) | # 1800 free call
240
+ match(/^(1300)\d+$/) >> split(4,4) | # 1300 local rate
241
+ match(/^(13)\d+$/) >> split(2,2) | # 13 local rate
239
242
  fixed(1) >> split(4,4) # Rest
240
243
 
241
244
  # country '62' # Indonesia (Republic of), see special file
@@ -56,6 +56,9 @@ describe 'country descriptions' do
56
56
  describe 'Australia' do
57
57
  it_splits '61512341234', ['61', '5', '1234', '1234'] # Landline
58
58
  it_splits '61423123123', ['61', '423', '123', '123'] # Mobile
59
+ it_splits '61131212', ['61', '13', '12', '12'] # 13 local rate
60
+ it_splits '61130012341234', ['61', '1300', '1234', '1234'] # 1300 local rate
61
+ it_splits '61180012341234', ['61', '1800', '1234', '1234'] # 1800 free call
59
62
  end
60
63
 
61
64
  describe 'Bahrain' do
@@ -121,7 +124,7 @@ describe 'country descriptions' do
121
124
  it_splits '5511981231234', ['55', '11', '98123', '1234'] # São Paulo's 9 digits mobile
122
125
  it_splits '552181231234', ['55', '21', '8123', '1234']
123
126
  it_splits '5521981231234', ['55', '21', '98123', '1234'] # Rio de Janeiro's 9 digits mobile
124
- it_splits '551931311234', ['55', '19', '3131', '1234']
127
+ it_splits '551931311234', ['55', '19', '3131', '1234']
125
128
  it_splits '5531991311234', ['55', '31', '99131', '1234'] # Belo Horizonte's 9th digit
126
129
  it_splits '5571991311234', ['55', '71', '99131', '1234'] # Salvador's 9th digit
127
130
  it_splits '5579991311234', ['55', '79', '99131', '1234'] # Sergipe's 9th digit
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.5
4
+ version: 2.15.6
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-10-21 00:00:00.000000000 Z
11
+ date: 2015-10-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