phony 2.17.2 → 2.17.3

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
  SHA256:
3
- metadata.gz: 8714dea1833061c894ff4f5d33818aaba74fe8b4f2c2a2bc52a2672f9a0f9d01
4
- data.tar.gz: 61c22d184e6754b933a53c05f0ac2aa6399d5207c8d8a1e223534a85d966d1f2
3
+ metadata.gz: 9810cd0d0649b6a41d966bb912e67b7a47ef2ec0c803a8858478e254b2cdcc6a
4
+ data.tar.gz: 56adabaa45b11c6e361e95db92873290fa64c0ea552ce074f1fc197c3d4b5355
5
5
  SHA512:
6
- metadata.gz: 17504c3bb2bb08f62aef562c3293aff6068c6415bf159f9e104b093f892e234438c6d664bfb0557ba900dc3bced9bbcec6c631bbfd2b8cd5a156730f9e5ef448
7
- data.tar.gz: 63fb26f823caf2948d11fa5a2d13313db2c2956d2a0873afdf709d0a6e1d7d112d95d0117f366670e0f285b7f280fb39ed726321199715899742b20bb456a551
6
+ metadata.gz: 26da96f0c82807ff18ab0d408dffcecc9286d14fe63402297f9de9416c9b3eeb70790f6c75ad14f995dacb6ca0afac44e3c3be65ef89dd91f35ba7d0f4e221ce
7
+ data.tar.gz: 75cad2fd973fd52e84fb66e65fe712f0d8f62cc1045141d64468d2c28047b9d6d7f7cc810878a5ad29bdd5e4f7491cbaab5cceadcec2665f7b467e208b5493ba
data/README.textile CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  h1. Phony
7
7
 
8
- Disclaimer: Phony works with international numbers only, such as @+61 412 345 678@!
8
+ Disclaimer: Phony works with international numbers only, such as @61 412 345 678@!
9
9
 
10
10
  The (admittedly crazy) goal of this Gem is to be able to normalize/format/split all phone numbers in the world.
11
11
 
@@ -1183,9 +1183,9 @@ Phony.define do
1183
1183
  # Israel (State of) (also works for numbers in Palestinian territories)
1184
1184
  country '972',
1185
1185
  trunk('0') |
1186
- one_of('1') >> split(3,3,3) | # special numbers
1187
- one_of('2', '3', '4', '8', '9') >> split(3,4) | # 1 digit ndc
1188
- match(/^(5[023456789]|7[23467])\d+$/) >> split(3,4) # 2 digit ndc
1186
+ one_of('1') >> split(3,3,3) | # special numbers
1187
+ one_of('2', '3', '4', '8', '9') >> split(3,4) | # 1 digit ndc
1188
+ match(/^(5[012345689]|7[234679])\d+$/) >> split(3,4) # 2 digit ndc
1189
1189
 
1190
1190
  country '973', none >> split(4,4..4) # Bahrain (Kingdom of) http://www.itu.int/oth/T0202000011/en
1191
1191
 
@@ -410,14 +410,16 @@ describe 'country descriptions' do
410
410
  end
411
411
 
412
412
  describe 'Israel (972)' do
413
- it_splits '972100', ['972', '1', '00'] # Police
414
- it_splits '97221231234', ['972', '2', '123', '1234'] # Jerusalem Area
415
- it_splits '97282411234', ['972', '8', '241', '1234'] # Gaza Strip (Palestine)
416
- it_splits '97291231234', ['972', '9', '123', '1234'] # Sharon Area
417
- it_splits '972501231234', ['972', '50', '123', '1234'] # Mobile (Pelephone)
418
- it_splits '972591231234', ['972', '59', '123', '1234'] # Mobile Jawwal (Palestine)
419
- it_splits '972771231234', ['972', '77', '123', '1234'] # Cable Phone Services
413
+ it_splits '972100', ['972', '1', '00'] # Police
414
+ it_splits '97221231234', ['972', '2', '123', '1234'] # Jerusalem Area
415
+ it_splits '97282411234', ['972', '8', '241', '1234'] # Gaza Strip (Palestine)
416
+ it_splits '97291231234', ['972', '9', '123', '1234'] # Sharon Area
417
+ it_splits '972501231234', ['972', '50', '123', '1234'] # Mobile (Pelephone)
418
+ it_splits '972591231234', ['972', '59', '123', '1234'] # Mobile Jawwal (Palestine)
419
+ it_splits '972771231234', ['972', '77', '123', '1234'] # Cable Phone Services
420
420
  it_splits '9721700123123', ['972', '1', '700', '123', '123'] # Cable Phone Services
421
+ it_splits '972511234567', ['972', '51', '123', '4567'] # Mobile (We4G)
422
+ it_splits '972791111111', ['972', '79', '111', '1111'] # Landline (Hallo, Cellact, Telzar)
421
423
  end
422
424
  describe 'Israel (970)' do
423
425
  it_splits '97021231234', ['970', '2', '123', '1234'] # Jerusalem Area
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.17.2
4
+ version: 2.17.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-22 00:00:00.000000000 Z
11
+ date: 2019-04-24 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