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 +4 -4
- data/lib/phony/countries.rb +1 -0
- data/spec/lib/phony/countries_spec.rb +1 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8b1df19e2caa62c7221c2c41d71c84522d60bff
|
4
|
+
data.tar.gz: cddd43f404e6a015974b3d4c6449509395073a70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af34c18d8a74524c7a6c0aa4e64bdfce2edee04d50abd2505c765463244a909098652f97cdc0e91ec802644ac450b1254cf941137ed5288412ae9b534d32176f
|
7
|
+
data.tar.gz: b5d4e2bbcbdea6c9a3854d421e0c6bc19e2bd3ab9ed6592f9a282a4ff29afc4562fb006a226065f7ceddd5c638fdfbdcbcfc9f7ff6222bfe3a719526469cd673
|
data/lib/phony/countries.rb
CHANGED
@@ -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.
|
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-
|
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.
|
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
|