phonie 3.2.1 → 3.2.2
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 +4 -4
- data/Changelog.md +5 -0
- data/Readme.rdoc +1 -0
- data/lib/phonie/data/phone_countries.yml +4 -0
- data/lib/phonie/version.rb +1 -1
- data/test/countries/cu_test.rb +13 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9daf70450b82b58df845ca521df4422b5df09ce9
|
|
4
|
+
data.tar.gz: aed438682499790cfaa43c5f9069dc7995e1223b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e3ff1af95ff7cb8c1f83dbf1fa6a5ba928791ce18cbb2c7cc38d1de8fb5c099d400ea7c29fdccf660ae54d836b55e1ff42de4d766595c4a406f1125e0cb8359
|
|
7
|
+
data.tar.gz: b076886d96aa2ed0f439ca43c4d215d7c6de26aba7ffae04408cb3a414e3646907d0c1c00c4e4a1e24fbee5f0a3f686bfc03c0d91cc4e065d2e87c07d5fec784
|
data/Changelog.md
CHANGED
data/Readme.rdoc
CHANGED
|
@@ -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'
|
data/lib/phonie/version.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
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
|