phony 2.15.35 → 2.15.36
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 +2 -1
- data/spec/lib/phony/countries_spec.rb +3 -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: 9f95cd8e0eeed97a523f8ee24345dde64c1337f1
|
4
|
+
data.tar.gz: 105a034dd9be06fa21158857f817252793d1e245
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff1cc2aa65fd84871baf98ae3ffed72d659b45bd70d3f7b304a53893b696102e25cd0ca0f4bedf58563bd427d35addae10c4fc881a931144aa4771b44f7bf02a
|
7
|
+
data.tar.gz: 8b1d8dc556cef403f7b43c3d091d4c6e74efca95e6fa8311d2d89ed1722f02085fc67505f79cea2a896ae3e7971b8479821b30b4ad921a0c30ba9b64235a5d4a
|
data/lib/phony/countries.rb
CHANGED
@@ -142,7 +142,8 @@ Phony.define do
|
|
142
142
|
#
|
143
143
|
country '41',
|
144
144
|
trunk('0', normalize: true) |
|
145
|
-
match(/^(8(00|4[0248]))\d+$/) >> split(3,3)|
|
145
|
+
match(/^(8(?:00|4[0248]))\d+$/) >> split(3,3) | # Freecall/Shared Cost
|
146
|
+
match(/^(90[016])\d+$/) >> split(3,3) | # Business
|
146
147
|
fixed(2) >> split(3,2,2)
|
147
148
|
|
148
149
|
# country '43' # Austria, see special file.
|
@@ -678,6 +678,9 @@ describe 'country descriptions' do
|
|
678
678
|
describe 'Switzerland' do
|
679
679
|
it_splits '41443643532', ['41', '44', '364', '35', '32'] # Zurich (usually)
|
680
680
|
it_splits '41800334455', ['41', '800', '334', '455'] # Service number
|
681
|
+
it_splits '41900123456', ['41', '900', '123', '456'] # Business Number
|
682
|
+
it_splits '41901123456', ['41', '901', '123', '456'] # Business Number Entertainment
|
683
|
+
it_splits '41906123456', ['41', '906', '123', '456'] # Business Number Adult Entertainment
|
681
684
|
end
|
682
685
|
describe 'Tanzania' do
|
683
686
|
it_splits '255221231234', ['255', '22', '123', '1234'] # Dar Es Salaam
|
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.36
|
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-11-
|
11
|
+
date: 2016-11-23 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
|