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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8eb89b0ff4f52abf8a86f32ce33d1268a029087e
4
- data.tar.gz: 40f878eeb5595721e49c5a213242f2c6c3a80b7c
3
+ metadata.gz: 9f95cd8e0eeed97a523f8ee24345dde64c1337f1
4
+ data.tar.gz: 105a034dd9be06fa21158857f817252793d1e245
5
5
  SHA512:
6
- metadata.gz: 0a8a642516a0f2167d2925ef75149850fb95b709a98ca5a5685f52383237186613a9db64cdc57a204930df48f842630acfd049ab3b88d1c6a13a6cfc995d46dc
7
- data.tar.gz: e7ea6048bf616590daa46944ac420688dcc4b18a6c1d66166ab0c42efe6b51165906f3ad3d18ff0362fd430b39a32cd9ddf25d2e8b8d08494bfc9e88c133b911
6
+ metadata.gz: ff1cc2aa65fd84871baf98ae3ffed72d659b45bd70d3f7b304a53893b696102e25cd0ca0f4bedf58563bd427d35addae10c4fc881a931144aa4771b44f7bf02a
7
+ data.tar.gz: 8b1d8dc556cef403f7b43c3d091d4c6e74efca95e6fa8311d2d89ed1722f02085fc67505f79cea2a896ae3e7971b8479821b30b4ad921a0c30ba9b64235a5d4a
@@ -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.35
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-13 00:00:00.000000000 Z
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