phony 2.22.0 → 2.22.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 +8 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 148f0154720cf8360fed738f7d1c4cba00dc5f4d796a443dc4edf05483f77db4
4
- data.tar.gz: 8bc31fd2a97ac906ece21616d81ce0e4420afe68c066c529834e3723a9653fb6
3
+ metadata.gz: 4f66714a6cacac1c5d997c427b432e4cdea15045566297eec6af801566a3183e
4
+ data.tar.gz: 1d7be8092632578d793621d0ec587f51480a8575e62c8e3be3450a1b642ae0b8
5
5
  SHA512:
6
- metadata.gz: 50bc05837db5ce9ebb6d8a9239b220bb2b33a4dd76aaa6b9b53444103296c359d7ef8e24b2f3c4dc978eb19ee59c9f284ebe58c737fd0a9a8b97178142f0de6f
7
- data.tar.gz: e73c940e446cebd165726c9122251f2c7e15b9ad342d76ff2413b7860a80457ff754097bb3bf381595b4fa1a882600255b719a957bf802c4ba7c5e3014c54442
6
+ metadata.gz: 3ec61646d7b9cf62c895d859d92169f934350adf5f32fdea4684422bc7ecfda52b5aa9516bce041cdaca4d192c53db5e24eea7bc8a4d07f2fbbe1d58865dc3a5
7
+ data.tar.gz: 684a3db1c3277d54accf7d43d4023ea224d233b013543929d14c17a7006cd2d3926c183f29963f201f49a2a39c18d68f749908c49bb9310735b4debe8954907a
@@ -800,7 +800,14 @@ Phony.define do
800
800
  one_of('1', '2', '3', '4', '5', '7') >> split(3, 4) | # Ljubljana, Maribor, Celje, Kranj, Nova Gorica, Novo mesto
801
801
  fixed(3) >> split(2, 3) # catchall
802
802
 
803
- country '387', trunk('0') | fixed(2) >> split(3, 3) # Bosnia and Herzegovina
803
+ # Bosnia and Herzegovina
804
+ country '387',
805
+ trunk('0') |
806
+ match(/^(60)(?:31|32|33|34|38|39)/) >> split(7) | # BH Mobile
807
+ match(/^(64)(?:40|41|42|43|44|45)/) >> split(7) | # Haloo
808
+ match(/^(67)(?:11|12)/) >> split(7) | # Novotel
809
+ fixed(2) >> split(3, 3) # catchall
810
+
804
811
  country '388', trunk('0') | fixed(2) >> split(3, 2, 2) # Group of countries, shared code
805
812
 
806
813
  # The Former Yugoslav Republic of Macedonia
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.0
4
+ version: 2.22.1
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-03-01 00:00:00.000000000 Z
11
+ date: 2025-03-22 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