phony 3.0.3 → 3.0.5

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: 791dda58c1a448a35162db9f85af9fd103500e3120796c04d60c0a190773a9b7
4
- data.tar.gz: 27933aabd62b90068779bc6d3ba4bbbecb64fbc24ffea12b00accbe00f790aaa
3
+ metadata.gz: 4f37288b8ea31fdca99cce51f1fef36d82e52af7098fda16d874b3d935363a36
4
+ data.tar.gz: 9e61873f0cc56aa2f654e36caeac1ee93d2c9093c025108db0b3ab95c83f1b2c
5
5
  SHA512:
6
- metadata.gz: 61a2344d76eb13b2660803ea4c0f89a01171fdb2e314cffda9b5229c26aa5586a72a3f7c407e525170159783e719b40aae6f3d4822254e082f2e42faa8cb0266
7
- data.tar.gz: 2eaeb27b07f7ddf7b9291f1deb6f09cff24b1cdd7d00f4086a4f951d26c98e4605570cc7309e8159ff04090fd4cac7f0ac09be95f1017050ff2a685f389558b9
6
+ metadata.gz: a1acc8bf572986ef164afee309810729954efbcc37780810126cb16b89874b5f7ca9190a6ced46f752043c7bd1bd78a925a90a2daca2ff8766474444bac65c8f
7
+ data.tar.gz: 89c7a7c6b6a2f98f28f553d873dde061c906c6dd4c53a91bfb00d74d3bb489a7de518c5c3be60d13a2232d2c0c3bf69fbfed0ffc912e32ce823bb3ef46cd0b73
@@ -93,14 +93,14 @@ ndcs = '(11|12|13|14|15|16|17|18|19|21|22|24|27|28|31|32|33|34|35|36|37|38|41|42
93
93
 
94
94
  service = %w[100 128 190 191 192 193 194 197 198 199] # State specific numbers were not added. See http://www.brasil.gov.br/navegue_por/aplicativos/agenda
95
95
 
96
- special_numbers_3_4 = %w[0800]
96
+ toll_free = %w[800 0800]
97
97
  special_numbers_4 = %w[3003 4003 4004 4020]
98
98
 
99
99
  Phony.define do
100
100
  country '55',
101
101
  match(/^#{ndcs}9\d{8}$/) >> split(5, 4) |
102
102
  match(/^#{ndcs}[2-5]\d{7}$/) >> split(4, 4) |
103
- one_of(special_numbers_3_4) >> split(3, 4) |
103
+ one_of(toll_free) >> split(3, 4) |
104
104
  one_of(special_numbers_4) >> split(4) |
105
105
  one_of(service) >> split(3) |
106
106
  fixed(3) >> split(3)
@@ -1255,7 +1255,11 @@ Phony.define do
1255
1255
  one_of(%w[92 97]) >> split(3) | # mobile
1256
1256
  fixed(2) >> split(3, 3)
1257
1257
 
1258
- 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
1259
1263
 
1260
1264
  # Mongolia
1261
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.3
4
+ version: 3.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-09 00:00:00.000000000 Z
11
+ date: 2026-03-26 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