phony 2.15.30 → 2.15.31
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 +1 -1
- data/lib/phony/trunk_code.rb +1 -0
- 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: 1c6818e3cad9d9c7c9e9acba51684dd8ac2016ed
|
4
|
+
data.tar.gz: 1c9a6881d993d5e1b64703823e1ec4d863eb76ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8fa1a7326bf9eb12378dd0806caa728d096f75d72e9a1442b3be0b7634e16e9b1a989ab84a8efd558590e4d562104d56c301d4381bf638daca92b0c9501e632
|
7
|
+
data.tar.gz: 516440d13eed4efa45c44d87e0371a3f3ea7ab9598a61d68814557c042efef0cc4cbbc355cdbab17bbc3695752d30eba5c0d24639866f2ea52a1161205837842
|
data/lib/phony/countries.rb
CHANGED
@@ -234,7 +234,7 @@ Phony.define do
|
|
234
234
|
# Australia.
|
235
235
|
#
|
236
236
|
country '61',
|
237
|
-
trunk('0') |
|
237
|
+
trunk('0', format: false) |
|
238
238
|
match(/^(4\d\d)\d+$/) >> split(3,3) | # Mobile
|
239
239
|
match(/^(1800)\d+$/) >> split(3,3) | # 1800 free call
|
240
240
|
match(/^(1300)\d+$/) >> split(3,3) | # 1300 local rate
|
data/lib/phony/trunk_code.rb
CHANGED
@@ -8,6 +8,7 @@ module Phony
|
|
8
8
|
# Options:
|
9
9
|
# * normalize: Remove the trunk code when normalizing (only use if number scheme is defined unambiguously).
|
10
10
|
# * split: Remove the trunk code when splitting (only use if number scheme is defined unambiguously).
|
11
|
+
# * format: Add the trunk code when formatting (passing `false` will not add it).
|
11
12
|
#
|
12
13
|
def initialize code, options = {}
|
13
14
|
@code = code
|
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.31
|
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-09-
|
11
|
+
date: 2016-09-16 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
|