phony 2.15.32 → 2.15.33

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
  SHA1:
3
- metadata.gz: 7bbc5562935bbf1fdaf45c7d1d0370085d0c9e10
4
- data.tar.gz: 9e0d7d7bd819975aa33dbdae71a1cda249a5565e
3
+ metadata.gz: c93d7b46407fd3b8c6f84bde8d87e497d3d789b5
4
+ data.tar.gz: 3400bc70848d157c94b1b5dd2461d4b8d53a73cc
5
5
  SHA512:
6
- metadata.gz: 1c38998355a9e519c6d39886807aca65826c36b4a74126aee8eab610473241ed5e3d296b21f91f56e690da79ea1b60b5dd229ec112914af42e88d8d97c2ea9da
7
- data.tar.gz: a7c2240aed6e05660d917d65dadda2bc2c44969cdccbb2ed17fb8b57d5b991f5eed73332cbcbe82ddfeaf801165c8b524066c10f1dfa8c6eb7578c6eda982db0
6
+ metadata.gz: b1c2938525bb61b16e5b3c9c73964712fd8c04caaf0410f8bc6cd88da126fa912824d4bbbded842e3d29aa81fda4a512865ac3260b6ee4ff434e9b99959293c2
7
+ data.tar.gz: 1aeb1e817f70ce46bc0543a0b23d0644e6e962b5edd85f4faf567729189e9e5a8faf4f956aa82de217f32b10d9aa904bea755612c6b2c870a92020d24298a6d1
@@ -726,7 +726,7 @@ Phony.define do
726
726
  one_of('1','2','3','4','5','7') >> split(3,4) | # Ljubljana, Maribor, Celje, Kranj, Nova Gorica, Novo mesto
727
727
  fixed(3) >> split(2,3) # catchall
728
728
 
729
- country '387', trunk('0') | fixed(2) >> split(3,2,2) # Bosnia and Herzegovina
729
+ country '387', trunk('0') | fixed(2) >> split(3,3) # Bosnia and Herzegovina
730
730
  country '388', trunk('0') | fixed(2) >> split(3,2,2) # Group of countries, shared code
731
731
 
732
732
  # The Former Yugoslav Republic of Macedonia
@@ -47,6 +47,9 @@ describe 'plausibility' do
47
47
 
48
48
  context 'specific countries' do
49
49
  it_is_correct_for 'Austria', :samples => '+43 720 116987' # VoIP
50
+ it_is_correct_for 'Bosnia and Herzegovina', :samples => ['+387 66 666 666',
51
+ '+387 37 123 456',
52
+ '+387 33 222 111']
50
53
  it_is_correct_for 'Congo', :samples => '+242 1234 56789'
51
54
  it_is_correct_for 'Cook Islands', :samples => '+682 71928'
52
55
  it_is_correct_for 'Costa Rica', :samples => '+506 2 234 5678'
@@ -128,6 +128,11 @@ describe 'country descriptions' do
128
128
  it_splits '26781234567', %w(267 8 1234 567)
129
129
  end
130
130
 
131
+ describe 'Bosnia and Herzegovina' do
132
+ it_splits '38766666666', %w(387 66 666 666)
133
+ it_splits '38733123456', %w(387 33 123 456)
134
+ end
135
+
131
136
  describe 'Brazil' do
132
137
  it_splits '551112341234', ['55', '11', '1234', '1234']
133
138
  it_splits '5511981231234', ['55', '11', '98123', '1234'] # São Paulo's 9 digits mobile
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.15.32
4
+ version: 2.15.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-23 00:00:00.000000000 Z
11
+ date: 2016-10-21 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
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  requirements: []
112
112
  rubyforge_project:
113
- rubygems_version: 2.4.5.1
113
+ rubygems_version: 2.6.7
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Fast international phone number (E164 standard) normalizing, splitting and