phony 3.0.2 → 3.0.4

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 +9 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 914522596278234ccd64fd27a07f0b32426738aa3b886233c14e5ca9469a99f9
4
- data.tar.gz: 9fcbb9e8607a93d2271ff19f61215139a04f922b3f5bbfa1d309ae15b30222bb
3
+ metadata.gz: ee0e24eab160121c01993dbea4575a485aeeb0d6a7c0f58b69401d0ebcdd0d7a
4
+ data.tar.gz: 92422836025ed232116c249d634156e8ec1db87dd55a4f47d14b60080cb3e276
5
5
  SHA512:
6
- metadata.gz: 17cda2331907984caf6a7a876bc7021efd08d2026082081412a93c8a93dad3211c44db1c785f7971fb645b1ee0dbfb0ac10a9849618eab8e045e667f50d7a1b2
7
- data.tar.gz: d6702bd8f91fdb5aaa8a01715a12726df2a4937b9f59161ceb4951049309674aa3e9306c398fc3901b55a3a83f74a634a2aa52ea8670509645dfa5d7e05c6710
6
+ metadata.gz: de03997f21f72c2af8e77ab32c445b18988e0ebe9373d40c0e3f10af7fe2575f50f5cedcb59d95f7a4ab3a4c468455b2f4c1457a12c22bef72c35a7140c9877d
7
+ data.tar.gz: 3042b58ac4ae84d39938fdda9f12cf89ef98717d29f189bffc1642f045a596897d6a4ca3d26ed5320af8fc4cb5ef303e23ddb56be5b5c6b584a51191741501ad
@@ -275,6 +275,10 @@ Phony.define do
275
275
  match(/^(2\d)\d{8}$/) >> split(2, 3, 3) |
276
276
  match(/^(800)\d{6}$/) >> split(3, 3) | # International 800 service where agreed
277
277
  match(/^(800)\d{7}$/) >> split(3, 4) | # International 800 service where agreed
278
+ match(/^(508)\d{6}$/) >> split(3, 3) | # Toll-free 0508
279
+ match(/^(508)\d{7}$/) >> split(3, 4) | # Toll-free 0508
280
+ match(/^(900)\d{5}$/) >> split(3, 2) | # Premium rate 0900
281
+ match(/^(900)\d{6}$/) >> split(3, 3) | # Premium rate 0900
278
282
  fixed(1) >> split(3, 4) # Rest
279
283
 
280
284
  # Singapore (Republic of).
@@ -1251,7 +1255,11 @@ Phony.define do
1251
1255
  one_of(%w[92 97]) >> split(3) | # mobile
1252
1256
  fixed(2) >> split(3, 3)
1253
1257
 
1254
- country '975', fixed(1) >> split(3, 3) # Bhutan (Kingdom of) http://www.wtng.info/wtng-975-bt.html
1258
+ # Bhutan (Kingdom of)
1259
+ # https://en.wikipedia.org/wiki/Telephone_numbers_in_Bhutan
1260
+ country '975',
1261
+ one_of(%w(16 17 77)) >> split(3, 3) | # Mobile
1262
+ one_of(%w(2)) >> split(3, 3) # Landline
1255
1263
 
1256
1264
  # Mongolia
1257
1265
  # https://www.numberingplans.com/?page=plans&sub=phonenr&alpha_2_input=MN
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: 3.0.2
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-13 00:00:00.000000000 Z
11
+ date: 2026-03-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