phony 2.12.10 → 2.12.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 927b163abff186551d579b1e0b6a49b5a2d3dd67
4
- data.tar.gz: 2735b15030ea7367c56249cb6a3cf1a0f4dd232a
3
+ metadata.gz: a1162661f981cd2f15b38bb16353bd0b3fe5494c
4
+ data.tar.gz: 113626e3af2ef2efc0a23354dff6e29805523b02
5
5
  SHA512:
6
- metadata.gz: 20435839853a0411af341890288a25e33180488a084f34e4b24a04d6565e2318ff2b93cd25b97a1204e2e69b2c4c6e0c33ad071d49d71c6d771a93547fbf0be1
7
- data.tar.gz: 0cde0f504c227516e48fe4e48644a001be014e95d9f2ce622e6354b5961603979c5e7faf9b55a07391b0c470531648653c31eda4b3d7986e07f51d62011af2b1
6
+ metadata.gz: ee0e39389cca7d127e1eb5ffc957d7dd5bc04e5afdff48c9e1308090444e0872f43e1430def823fe98b0fe1be6a766356b59950ed7ff58ee2d0cd5aa2d17ee09
7
+ data.tar.gz: 956b831f60a63a3b443e9cb6ab6348ba85a574a926f32f523e9cd8f61ea13e65e608b2bd3a6814ee1afe6ac9edab071babe1f5a5bd340a33ab39ea2b19ee4844
@@ -313,7 +313,16 @@ Phony.define do
313
313
 
314
314
  # country '224' # Guinea, see special file
315
315
 
316
- country '225', none >> split(4,4) # Côte d'Ivoire http://www.wtng.info/wtng-225-ci.html
316
+ # Côte d'Ivoire
317
+ # http://www.wtng.info/wtng-225-ci.html
318
+ # http://www.itu.int/dms_pub/itu-t/oth/02/02/T02020000310001PDFE.pdf
319
+ # http://en.wikipedia.org/wiki/Telephone_numbers_in_Ivory_Coast
320
+ #
321
+ # There is no trunk code for this country and several of the mobile prefixes start with 0
322
+ country '225',
323
+ trunk('', :normalize => false) |
324
+ fixed(2) >> split(2,2,2)
325
+
317
326
  country '226', none >> split(4,4) # Burkina Faso http://www.wtng.info/wtng-226-bf.html
318
327
  country '227', none >> split(4,4) # Niger http://www.wtng.info/wtng-227-ne.html
319
328
  country '228', none >> split(4,4) # Togolese Republic http://www.wtng.info/wtng-228-tg.html
@@ -740,7 +740,8 @@ describe 'country descriptions' do
740
740
  it_splits '50622345678', %w(506 2 234 5678)
741
741
  end
742
742
  describe "Côte d'Ivoire" do
743
- it_splits '22537335518', ['225', false, '3733', '5518']
743
+ it_splits '22507335518', ['225', '07', '33', '55', '18']
744
+ it_splits '22537335518', ['225', '37', '33', '55', '18']
744
745
  end
745
746
  describe 'Democratic Republic of Timor-Leste' do
746
747
  it_splits '6701742945', ['670', false, '174', '2945']
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.12.10
4
+ version: 2.12.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-09 00:00:00.000000000 Z
11
+ date: 2015-04-15 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
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.4.5
115
+ rubygems_version: 2.4.6
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Fast international phone number (E164 standard) normalizing, splitting and