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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a95efd861638e45e6481cb045402657210e257ce
4
- data.tar.gz: 1a30bc92058003997101179806c701bdd91cd8bf
3
+ metadata.gz: 1c6818e3cad9d9c7c9e9acba51684dd8ac2016ed
4
+ data.tar.gz: 1c9a6881d993d5e1b64703823e1ec4d863eb76ef
5
5
  SHA512:
6
- metadata.gz: 954b3d729540e8db55394fa70ec550b77087b59cf4dfcc01d07743fed592c141fef232b66620482a0d5a98af673697a98d3e08b840451cdf7e103d89eb2b61ca
7
- data.tar.gz: fc49bb807e7615a33c83b1a89ac3941d9cfafa1446f410c9aadb777dee1e8bd5e0683443fec108a2690057cf7bdf700ae28c5a5387599902765bad30bdb01b9d
6
+ metadata.gz: e8fa1a7326bf9eb12378dd0806caa728d096f75d72e9a1442b3be0b7634e16e9b1a989ab84a8efd558590e4d562104d56c301d4381bf638daca92b0c9501e632
7
+ data.tar.gz: 516440d13eed4efa45c44d87e0371a3f3ea7ab9598a61d68814557c042efef0cc4cbbc355cdbab17bbc3695752d30eba5c0d24639866f2ea52a1161205837842
@@ -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
@@ -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.30
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-14 00:00:00.000000000 Z
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