phony 3.0.0 → 3.0.1

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/phony/countries.rb +5 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22d7b6e8936fc0c98194fa172131611d5bc3d5a9987b634cc560459d500f845d
4
- data.tar.gz: 6efd37bba4276e4c10231b34ca20319b9288b72317ac8e818468717af6e4278a
3
+ metadata.gz: e5491894cacb9480a995f6019cee2bc68b3d3e02b8e18f5263e014478b2877e4
4
+ data.tar.gz: 11c7378a92034ac69617aaa0dd5e0ce2a4da0b1cc29b5ae88a7ee471a8e3c546
5
5
  SHA512:
6
- metadata.gz: d95038f6c3b29ba2cf15048c8c55785d31fbc28b89d0552bbae34cdbd3aef6a0dcb525d34a40a84dd2d62907ab9aae48bbaf4a7f02b6514739b4b6646496b9d8
7
- data.tar.gz: 27de5eb29a2d59da382b5b285b0b860326a34088b2ccd63ef922e417ea093b5a256ad80f227de746e50d41811189a7b5c9053c444abcc0e6563adc5ba129f7ac
6
+ metadata.gz: 7be10b412c69bb4e034b2fdba3968c25191205d89a6c861468169f799d0a28e5d555a1c5a2a3f8a96b957ab0ac5c625c826001f048b6b4055f5da63872329b46
7
+ data.tar.gz: '0619a41caaaeb7d1a72d1688811355bcc6343fdac0c5e54d19fec4e2d90049eb0a73ed04eec0c432f74940ac5c7ba765a7adb7f9d893588b0cdc73d3ec9f7a74'
@@ -101,7 +101,7 @@ Phony.define do
101
101
  match(/^(800|90\d)\d+$/) >> split(2, 3) | # Toll free service and premium numbers
102
102
  match(/^(46[056789])\d{6}$/) >> split(2, 2, 2) | # Mobile (Lycamobile, Telenet, Join Experience, Proximus 0460)
103
103
  match(/^(4[789]\d)\d{6}$/) >> split(2, 2, 2) | # Mobile
104
- match(/^(45[156])\d{6}$/) >> split(2, 2, 2) | # Mobile Vikings, Digi and Voo
104
+ match(/^(45[156])\d{6}$/) >> split(2, 2, 2) | # Mobile Vikings, Digi and Voo
105
105
  one_of('2', '3', '4', '9') >> split(3, 2, 2) | # Short NDCs
106
106
  fixed(2) >> split(2, 2, 2) # 2-digit NDCs
107
107
 
@@ -251,7 +251,7 @@ Phony.define do
251
251
  match(/^(13)\d+$/) >> split(2, 2) | # 13 local rate
252
252
  fixed(1) >> split(4, 4) # Rest
253
253
 
254
- # country '62' # Indonesia (Republic of), see special file
254
+ # country '62' # Indonesia (Republic of), see special file
255
255
 
256
256
  # Philippines (Republic of the)
257
257
  # https://www.numberingplans.com/?page=plans&sub=phonenr&alpha_2_input=PH
@@ -279,7 +279,9 @@ Phony.define do
279
279
 
280
280
  # Singapore (Republic of).
281
281
  #
282
+ # There is no trunk code for this country and some numbers start with 0.
282
283
  country '65',
284
+ trunk('', normalize: false) |
283
285
  none >> matched_split(
284
286
  /^(800)\d{7}$/ => [3, 3, 4], # International Toll Free Service (ITFS) and Home Country Direct Service (HCDS) Numbers
285
287
  /^\d{8}$/ => [4, 4] # TODO: Short Codes
@@ -375,7 +377,7 @@ Phony.define do
375
377
 
376
378
  # Benin http://www.itu.int/oth/T0202000017/en
377
379
  #
378
- # There is no trunk code for this country and prefixes start with 0
380
+ # There is no trunk code for this country and prefixes start with 0.
379
381
  country '229',
380
382
  trunk('', normalize: false) |
381
383
  none >> matched_split(
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phony
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke