phony 2.16.7 → 2.16.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e622072f5e3f04ef107fdc8341ccebcb643842bff138528fa977334dcf87563
4
- data.tar.gz: 141e3f0e06ecd7cfa5fd46bc7ad0db41b0db473ac2f6f54626f5aeee1bc98128
3
+ metadata.gz: 4fcfad955fe11d9891d6792403f549144e6baf3d6e88e7195afba3edd19dd924
4
+ data.tar.gz: b73d6f61b64658986c047e04f7ce0a8d5560eb0d86cfe2f9b0a2b04a99bb0555
5
5
  SHA512:
6
- metadata.gz: f279963e4766c3754cca1f4d71b4b3b5b6a7b4b02674ec239bf893b9c60a6a520f0cba61ace62cd2903bb8791a33d0f14d2344238adfc1aec0926ca5a46140aa
7
- data.tar.gz: 49e0e02b826af7466eb003023695f9c8860f25ea8c999e694c746c5cb413d016c0cfbe9f8b004e23e26051a53d00e3f9977d05389b44e5007513a84fea6d7a03
6
+ metadata.gz: ea1b991f593d92fbd37da9ed19c8352159337c929a00bb474e64092a0e0799348a2342c870296f6d810150faaa6cbd337405df15f4f1afbd532328e91813b089
7
+ data.tar.gz: 2d1909f437e133f966b30ccc9ddb9bdf99a967ccd3cc63c002566eb1ab6a0044bc9413b14eaff3e6b5368692f102fc88cf653a016c1225ee9aac4d4373c3eb64
@@ -13,7 +13,7 @@ Used in: "airbnb.com":http://airbnb.com, "socialcam.com":http://socialcam.com, "
13
13
 
14
14
  h2. Runtime Memory Usage
15
15
 
16
- According to "memory_profiler":https://github.com/SamSaffron/memory_profiler, the Phony gem uses roughly 1 MB of memory per Ruby process.
16
+ According to "memory_profiler":https://github.com/SamSaffron/memory_profiler, the Phony gem uses roughly 2 MBs of memory per Ruby process.
17
17
  Usage was generated using: @ruby -e 'require "memory_profiler"; MemoryProfiler.report(allow_files: "phony"){ require "phony" }.pretty_print'@
18
18
 
19
19
  h2. Description
@@ -915,7 +915,14 @@ Phony.define do
915
915
  one_of('115') >> split(4,4) | # voicemail (mobile)
916
916
  one_of(%w(28 29)) >> split(3,2) | # pager
917
917
  one_of(%w(16 18)) >> split(3,2) | # ISP
918
- one_of(%w(71 72 73 76)) >> split(3,3) | # mobile
918
+ one_of(%w(70 71 72 74 75 76 78 79)) >> split(3,3) | # mobile
919
+ one_of(%w(731 732 733 734 735 736 738 739)) >> split(2,3) | # mobile
920
+ one_of(%w(770)) >> split(2,3) | # wireless geographic; Port Moresby, National Capital District
921
+ one_of(%w(771)) >> split(2,3) | # wireless geographic; Momase region
922
+ one_of(%w(772)) >> split(2,3) | # wireless geographic; Highlands region
923
+ one_of(%w(7730)) >> split(1,3) | # wireless geographic; Southern region
924
+ one_of(%w(774)) >> split(2,3) | # wireless geographic; Islands region
925
+ one_of(%w(775)) >> split(2,3) | # mobile
919
926
  one_of(%w(80 81 82 83)) >> split(3,3) | # freephone
920
927
  one_of(%w(90 91 92 93)) >> split(3,3) | # geographic, ISDN
921
928
  one_of(%w(3 4 5 6 7 8 9)) >> split(3,3) # geographic
@@ -357,6 +357,30 @@ describe 'plausibility' do
357
357
  it_is_correct_for 'Oman', :samples => ['+968 24 423 123',
358
358
  '+968 25 423 123']
359
359
  it_is_correct_for 'Palau (Republic of)', :samples => '+680 483 7871'
360
+
361
+ it_is_correct_for 'Papua New Guinea', :samples => ['+675 180 1234',
362
+ '+675 170 12',
363
+ '+675 189 1',
364
+ '+675 184 1234 5678',
365
+ '+675 185 1234',
366
+ '+675 275 1234',
367
+ '+675 278 12',
368
+ '+675 115 1234 5678',
369
+ '+675 28 123 45',
370
+ '+675 16 123 12',
371
+ '+675 711 23 456',
372
+ '+675 731 23 456',
373
+ '+675 741 23 456',
374
+ '+675 770 12 345',
375
+ '+675 771 12 345',
376
+ '+675 772 12 345',
377
+ '+675 773 01 234',
378
+ '+675 774 12 345',
379
+ '+675 775 12 345',
380
+ '+675 80 123 456',
381
+ '+675 90 123 456',
382
+ '+675 3 123 456']
383
+
360
384
  it_is_correct_for 'Panama (Republic of)', :samples => ['+507 800 1234',
361
385
  '+507 6 123 4567',
362
386
  '+507 2 123 456']
@@ -1164,6 +1164,9 @@ describe 'country descriptions' do
1164
1164
  it_splits '6752751234', %w(675 275 1234)
1165
1165
  it_splits '67527912', %w(675 279 12)
1166
1166
  it_splits '67511512345678', %w(675 115 1234 5678)
1167
+ it_splits '67574123456', %w(675 74 123 456)
1168
+ it_splits '67573123456', %w(675 731 23 456)
1169
+ it_splits '67577301234', %w(675 7730 1 234)
1167
1170
  end
1168
1171
  describe 'Reunion / Mayotte (new)' do
1169
1172
  it_splits '262594399265', ['262', '594', '39', '92', '65']
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.16.7
4
+ version: 2.16.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-16 00:00:00.000000000 Z
11
+ date: 2018-11-19 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