phony 2.22.4 → 2.22.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/phony/countries/libya.rb +4 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70b211455d497b5f0db953a0b7a674fdddae906fa2ef4beb9d6038f45f429f48
4
- data.tar.gz: 6ff8c7f7383fa7d00c54b75d4017db2c282e1bf0f498b633e7be3ef1518cf617
3
+ metadata.gz: 15fe4a45564285d917d9b05ee4920c57bc6ec58bcc6aac6dab9ed256816c485c
4
+ data.tar.gz: 8da0d416b96f250e1be5b33f107ce2c7a4c271434a317fdec2e5ad06908d4cca
5
5
  SHA512:
6
- metadata.gz: d9f346c5cd7cadb47d34b0d4cd387889c766042b6b320db26be935bdfa1c21294ea29e167ade52fd2a26741e06950fabc8f89c0b6879849a6ff62f5f964cbfc9
7
- data.tar.gz: e9515019859332ab94ef95c1c81c5ebe6980466df053d4445a896fdc7b3e272560c5ea881591dc53054c52026d94b29c2c0a6fa311c5994354ca22cf4993898b
6
+ metadata.gz: dbf0a852848c4946d737b9a25b5533c4926d3fa74e22003f05d2f2071c4cdc8a9761e5904cd3c955f1a04d3dae2cb0a60062f6db031abdfe85facd78c87fcf13
7
+ data.tar.gz: 765fce9b275b40578903c13697a3f27f5ff479b75b236a3b1c06ab8ce3e408b5003bc75d71ab7f88722527edceea60f081a0907105d939908780ca85bd30f5c2
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Lybia, https://www.numberingplans.com/?page=dialling&sub=areacodes
3
+ # Libya, https://www.numberingplans.com/?page=dialling&sub=areacodes
4
4
  # https://www.numberingplans.com/?page=plans&sub=phonenr&alpha_2_input=LY
5
5
 
6
6
  ndcs_with_7_subscriber_numbers = %w[21]
@@ -106,11 +106,13 @@ ndcs_with_5_subscriber_numbers = %w[
106
106
  884
107
107
  ]
108
108
 
109
+ mobile_with_7_subscriber_numbers = %w[91 92 93 94 95]
110
+
109
111
  Phony.define do
110
112
  country '218',
111
113
  one_of(ndcs_with_5_subscriber_numbers) >> split(3, 2) |
112
114
  one_of(ndcs_with_6_subscriber_numbers) >> split(3, 3) |
113
115
  one_of(ndcs_with_7_subscriber_numbers) >> split(4, 3) |
114
- one_of(%w[91 92 94 95]) >> split(4, 3) | # mobile
116
+ one_of(mobile_with_7_subscriber_numbers) >> split(4, 3) |
115
117
  fixed(2) >> split(3, 3)
116
118
  end
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.22.4
4
+ version: 2.22.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: 2025-08-08 00:00:00.000000000 Z
11
+ date: 2025-08-18 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