phony 2.18.21 → 2.18.22

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: e2b9c50bfb64f0a6eb3e0f191645e5f31de7c33b91034fde8620aa93881dd90a
4
- data.tar.gz: e0d17bcc147253b71f24d713c26b942587df86f002c24e85e1164ff72461db4f
3
+ metadata.gz: 33847decf186c3bcaef4432c7da7c53276d41f166e503086a13a7052ace738a9
4
+ data.tar.gz: 1438fb0f95bd1809fcb33dfb0fd45c7b655bdbf67e584ee91a2b5a1ae297757c
5
5
  SHA512:
6
- metadata.gz: b05a78e8c484e48b7656489b0d1388c990aadbd2634f30e7283ae98cb4bb96d9aa8466eb9bf98ca1a3845b4fa7f450d4ea115d63d4d0b5b24c8c5cb448003c1b
7
- data.tar.gz: 48bad87202e0c1424bc6ea2458f9042de35a74b03d536c3a0267027dc742a9178632e44c14a1ce4b51956cd005a625ea722008af2f308e01c648b35b5ef36b74
6
+ metadata.gz: 51ddf142f68fbb620c8038c2e109a06150168757753847e8afcba52a23ba3124e61c4645a2d4c883f3e511dab6280283624b588f7939662d919aab45586d01bf
7
+ data.tar.gz: b5f7a23c72d5b75d84567fff91c467c4cc9b28b5a1c6f0b8c2e6c4c586b18e07a8fdb2a6b1312a5cf0a3620c128eda42991c7c504fa843fe744c1b6627510bf1
@@ -432,9 +432,9 @@ Phony.define do
432
432
  # http://en.wikipedia.org/wiki/Telephone_numbers_in_Rwanda
433
433
  country '250',
434
434
  trunk('0') |
435
- one_of('25') >> split(7) | # Geographic, fixed
436
- match(/^(7[238])/) >> split(7) | # Non-geographic, mobile
437
- one_of('06') >> split(6) # Satellite
435
+ one_of('25') >> split(7) | # Geographic, fixed
436
+ match(/^(7[2389])/) >> split(7) | # Non-geographic, mobile
437
+ one_of('06') >> split(6) # Satellite
438
438
 
439
439
  country '251', fixed(2) >> split(3, 4) # Ethiopia http://www.wtng.info/wtng-251-et.html
440
440
 
@@ -399,6 +399,12 @@ describe 'plausibility' do
399
399
  '+507 6 123 4567',
400
400
  '+507 2 123 456']
401
401
  it_is_correct_for 'Reunion / Mayotte (new)', :samples => '+262 295 276 964'
402
+ it_is_correct_for 'Rwanda', :samples => ['+250 72 1234567',
403
+ '+250 73 1234567',
404
+ '+250 78 1234567',
405
+ '+250 79 1234567',
406
+ '+250 25 1234567',
407
+ '+250 06 123456']
402
408
  it_is_correct_for 'Saint Helena', :samples => '+290 5134'
403
409
  it_is_correct_for 'Saint Pierre and Miquelon (Collectivité territoriale de la République française)', :samples => '+508 474 714'
404
410
  it_is_correct_for 'Salvador (El)', :samples => [
@@ -677,6 +677,7 @@ describe 'country descriptions' do
677
677
  it_splits '250781234567', ['250', '78', '1234567'] # mobile
678
678
  it_splits '250721234567', ['250', '72', '1234567'] # mobile
679
679
  it_splits '250731234567', ['250', '73', '1234567'] # mobile
680
+ it_splits '250791234567', ['250', '79', '1234567'] # mobile
680
681
  it_splits '250251234567', ['250', '25', '1234567'] # fixed
681
682
  it_splits '25006123456', ['250', '06', '123456'] # fixed
682
683
  end
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.18.21
4
+ version: 2.18.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-29 00:00:00.000000000 Z
11
+ date: 2021-04-06 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