phony 3.0.4 → 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: ee0e24eab160121c01993dbea4575a485aeeb0d6a7c0f58b69401d0ebcdd0d7a
4
- data.tar.gz: 92422836025ed232116c249d634156e8ec1db87dd55a4f47d14b60080cb3e276
3
+ metadata.gz: 4f37288b8ea31fdca99cce51f1fef36d82e52af7098fda16d874b3d935363a36
4
+ data.tar.gz: 9e61873f0cc56aa2f654e36caeac1ee93d2c9093c025108db0b3ab95c83f1b2c
5
5
  SHA512:
6
- metadata.gz: de03997f21f72c2af8e77ab32c445b18988e0ebe9373d40c0e3f10af7fe2575f50f5cedcb59d95f7a4ab3a4c468455b2f4c1457a12c22bef72c35a7140c9877d
7
- data.tar.gz: 3042b58ac4ae84d39938fdda9f12cf89ef98717d29f189bffc1642f045a596897d6a4ca3d26ed5320af8fc4cb5ef303e23ddb56be5b5c6b584a51191741501ad
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)
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.4
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-24 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