phonie 3.2.1 → 3.2.2

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: f8f31f3a293d0b81f63fb726f5771c8ff9ce4639
4
- data.tar.gz: f330f1347b5899e0f2f05b6cd7c84cae16c58ac9
3
+ metadata.gz: 9daf70450b82b58df845ca521df4422b5df09ce9
4
+ data.tar.gz: aed438682499790cfaa43c5f9069dc7995e1223b
5
5
  SHA512:
6
- metadata.gz: a835b49507ffcf55327637e76de049563007886880b8ab231863361d5da6d6bf555d824236697d21e93c0331e3651350321c905e5fc5fc5d2ec7196fcecb7883
7
- data.tar.gz: a7f1a233c5a29fd1a2fbc89b24944e5c8e8a7be5c3eaa09c487bb09aa67b5c984a69b484677a2ee9ba8374171ccb6e97c7ec822f9eb86eebbeb8ff3f4895f636
6
+ metadata.gz: 6e3ff1af95ff7cb8c1f83dbf1fa6a5ba928791ce18cbb2c7cc38d1de8fb5c099d400ea7c29fdccf660ae54d836b55e1ff42de4d766595c4a406f1125e0cb8359
7
+ data.tar.gz: b076886d96aa2ed0f439ca43c4d215d7c6de26aba7ffae04408cb3a414e3646907d0c1c00c4e4a1e24fbee5f0a3f686bfc03c0d91cc4e065d2e87c07d5fec784
@@ -1,3 +1,8 @@
1
+ 3.2.2
2
+ =====
3
+
4
+ * Adds support for Cuba (Thanks @dramalho)
5
+
1
6
  3.2.1
2
7
  =====
3
8
 
@@ -122,6 +122,7 @@ Currently tested on:
122
122
  [CH] Switzerland
123
123
  [CN] China
124
124
  [CR] Costa Rica
125
+ [CU] Cuba
125
126
  [CY] Cyprus
126
127
  [CZ] Czech Republic
127
128
  [DE] Germany
@@ -1890,6 +1890,10 @@
1890
1890
  :char_2_code: '0'
1891
1891
  :iso_3166_code: CU
1892
1892
  :name: Cuba
1893
+ :area_code: '2\d{1}|3\d{1}|4\d{1}|5|7'
1894
+ :mobile_format: '5\d{7}'
1895
+ :number_format: '\d{8}'
1896
+ :local_number_format: '\d{6,7}'
1893
1897
  :international_dialing_prefix: '119'
1894
1898
  -
1895
1899
  :country_code: '211'
@@ -1,3 +1,3 @@
1
1
  module Phonie
2
- VERSION = '3.2.1'
2
+ VERSION = '3.2.2'
3
3
  end
@@ -0,0 +1,13 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
2
+
3
+ ## Cuba
4
+ class CUTest < Phonie::TestCase
5
+ def test_local
6
+ parse_test('+5378346100', '53', '7', '8346100', 'Cuba', false)
7
+ end
8
+
9
+ def test_mobile
10
+ parse_test('+5353478134', '53', '5', '3478134', 'Cuba', true)
11
+ end
12
+
13
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phonie
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomislav Car
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2016-01-05 00:00:00.000000000 Z
15
+ date: 2016-01-12 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activemodel
@@ -128,6 +128,7 @@ files:
128
128
  - test/countries/cn_test.rb
129
129
  - test/countries/co_test.rb
130
130
  - test/countries/cr_test.rb
131
+ - test/countries/cu_test.rb
131
132
  - test/countries/cy_test.rb
132
133
  - test/countries/cz_test.rb
133
134
  - test/countries/de_test.rb
@@ -269,6 +270,7 @@ test_files:
269
270
  - test/countries/cn_test.rb
270
271
  - test/countries/co_test.rb
271
272
  - test/countries/cr_test.rb
273
+ - test/countries/cu_test.rb
272
274
  - test/countries/cy_test.rb
273
275
  - test/countries/cz_test.rb
274
276
  - test/countries/de_test.rb