phony 2.10.3 → 2.10.4

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: cfad2ec40ec90ac3078ab9139e8c4f8f790fd057
4
- data.tar.gz: b3e8672ed3af366fd97e243c23163ac10445fe3a
3
+ metadata.gz: f8b1df19e2caa62c7221c2c41d71c84522d60bff
4
+ data.tar.gz: cddd43f404e6a015974b3d4c6449509395073a70
5
5
  SHA512:
6
- metadata.gz: 9da0c508ace82df68aae2b75622fd74080f436075a5cddb548eb55a5447e1a36fc9847254e4f97e961ae400f2156605c5a94c678854fb4ba73b5146d6af61523
7
- data.tar.gz: bf4244d4dd5c3bfb1a5de8e3cde37bf601ebdfd5d21ee74968cc4afc763310ac7d65538495f2f8494d8c820879fbe2569cd35a01925577c4ec49a3f565fb6b91
6
+ metadata.gz: af34c18d8a74524c7a6c0aa4e64bdfce2edee04d50abd2505c765463244a909098652f97cdc0e91ec802644ac450b1254cf941137ed5288412ae9b534d32176f
7
+ data.tar.gz: b5d4e2bbcbdea6c9a3854d421e0c6bc19e2bd3ab9ed6592f9a282a4ff29afc4562fb006a226065f7ceddd5c638fdfbdcbcfc9f7ff6222bfe3a719526469cd673
@@ -75,6 +75,7 @@ Phony.define do
75
75
  #
76
76
  country '32', trunk('0') |
77
77
  match(/^(70|800|90\d)\d+$/) >> split(3,3) | # Service
78
+ match(/^(468)\d{6}$/) >> split(6) | # Mobile (Telenet)
78
79
  match(/^(4[789]\d)\d{6}$/) >> split(6) | # Mobile
79
80
  one_of('2','3','4','9') >> split(3,2,2) | # Short NDCs
80
81
  fixed(2) >> split(2,2,2) # 2-digit NDCs
@@ -91,6 +91,7 @@ describe 'country descriptions' do
91
91
  it_splits '3245551414', ['32', '4', '555', '14', '14'] # Liège
92
92
  it_splits '3216473200', ['32', '16', '47', '32', '00'] # Leuven
93
93
  it_splits '32475279584', ['32', '475', '279584'] # mobile
94
+ it_splits '32468279584', ['32', '468', '279584'] # mobile (Telenet)
94
95
  it_splits '3270123123', ['32', '70', '123', '123'] # Bus Service?
95
96
  end
96
97
 
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.10.3
4
+ version: 2.10.4
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-01-28 00:00:00.000000000 Z
11
+ date: 2015-02-18 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
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.2.2
115
+ rubygems_version: 2.4.1
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Fast international phone number (E164 standard) normalizing, splitting and
@@ -135,4 +135,3 @@ test_files:
135
135
  - spec/lib/phony/national_splitters/variable_spec.rb
136
136
  - spec/lib/phony/vanity_spec.rb
137
137
  - spec/lib/phony_spec.rb
138
- has_rdoc: false