phonie 3.1.9 → 3.1.10
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/lib/phonie/data/phone_countries.yml +1 -1
- data/lib/phonie/version.rb +1 -1
- data/test/countries/br_test.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f6fe869ff503eefbaac4a87fcbb45848004175e
|
4
|
+
data.tar.gz: 7d0a7cda850961ac6d71ce6c97448ddb438c21c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bccc1c82aeb45401d9dcfd5317d4bec4a52306887f227dab7a7ed769e6caa145c5806870b16bc31593834b998890e3bcc5a95864f4790a34963c2dace62529d
|
7
|
+
data.tar.gz: 081cd2f00e8e8a8dc1191a89dd817769dae930e7c2b10b648a772d3c62f42d52eb6e8834ae44350e969ebf96106c4a6e03c97777f8b53d3d9b8625684fe01173
|
data/Changelog.md
CHANGED
@@ -183,7 +183,7 @@
|
|
183
183
|
:char_2_code: '55'
|
184
184
|
:iso_3166_code: BR
|
185
185
|
:name: Brazil
|
186
|
-
:area_code: ((1[1-9]|2[
|
186
|
+
:area_code: ((1[1-9]|2[12478]|3[1-578]|4[1-9]|5[1-5]|6[1-9]|7[134579]|8[1-9]|9[1-9])|0[3589]00)
|
187
187
|
:local_number_format: ([2-5]\d{7}|9?[6-9]\d{7}|\d{7})
|
188
188
|
:mobile_format: ([129][1-9]9|[3-9][1-9])[6-9]\d{7}
|
189
189
|
:number_format: \d{10,11}
|
data/lib/phonie/version.rb
CHANGED
data/test/countries/br_test.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
|
2
2
|
|
3
3
|
## Brazil
|
4
|
-
# http://
|
4
|
+
# http://legislacao.anatel.gov.br/resolucoes/2001/383-resolucao-263
|
5
5
|
class BRTest < Phonie::TestCase
|
6
6
|
|
7
7
|
def test_local
|
@@ -17,11 +17,7 @@ class BRTest < Phonie::TestCase
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def test_area_max
|
20
|
-
parse_test('+55
|
21
|
-
end
|
22
|
-
|
23
|
-
def test_area_max_fail
|
24
|
-
parse_failure('+55 99 59995678')
|
20
|
+
parse_test('+55 99 59995678', '55', '99', '59995678', 'Brazil', false)
|
25
21
|
end
|
26
22
|
|
27
23
|
def test_paid_toll
|
@@ -85,4 +81,8 @@ class BRTest < Phonie::TestCase
|
|
85
81
|
def test_mobile_area_21_with_9
|
86
82
|
parse_test('55 21 98765 5678', '55', '21', '987655678', 'Brazil', true)
|
87
83
|
end
|
84
|
+
|
85
|
+
def test_mobile_area_22_with_9
|
86
|
+
parse_test('55 22 98765 5678', '55', '22', '987655678', 'Brazil', true)
|
87
|
+
end
|
88
88
|
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.1.
|
4
|
+
version: 3.1.10
|
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: 2015-
|
15
|
+
date: 2015-04-10 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: activemodel
|