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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0d080daca46153723d82eaae1d940096c2a9403
4
- data.tar.gz: a6c2cc098bc7eead4e485b8ace9a8ebc0a656fdd
3
+ metadata.gz: 8f6fe869ff503eefbaac4a87fcbb45848004175e
4
+ data.tar.gz: 7d0a7cda850961ac6d71ce6c97448ddb438c21c1
5
5
  SHA512:
6
- metadata.gz: e8594f51e74cffeaa27a47f7b29bd1d14728214784785f86b31f549d23593de3e9d12c4b13894f614104692f6b61a4068c26f7c6277ee6942f08a3fb73068543
7
- data.tar.gz: 8986b822a8c414f2b26659ea9385b6131274e2a30209e76600b559243a4b97f2090ef023e4e5099cabb565dff6f52b752dfcf56f57d289d682cdb478d1e43698
6
+ metadata.gz: 7bccc1c82aeb45401d9dcfd5317d4bec4a52306887f227dab7a7ed769e6caa145c5806870b16bc31593834b998890e3bcc5a95864f4790a34963c2dace62529d
7
+ data.tar.gz: 081cd2f00e8e8a8dc1191a89dd817769dae930e7c2b10b648a772d3c62f42d52eb6e8834ae44350e969ebf96106c4a6e03c97777f8b53d3d9b8625684fe01173
@@ -1,3 +1,8 @@
1
+ 3.1.10
2
+ ======
3
+
4
+ * Adds new BR area codes (Thanks @lunks!)
5
+
1
6
  3.1.9
2
7
  =====
3
8
 
@@ -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[147]|3[1-578]|4[1-9]|5[1-5]|6[1235-9]|7[134579]|8[1-8]|9[12568])|0[3589]00)
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}
@@ -1,3 +1,3 @@
1
1
  module Phonie
2
- VERSION = '3.1.9'
2
+ VERSION = '3.1.10'
3
3
  end
@@ -1,7 +1,7 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
2
2
 
3
3
  ## Brazil
4
- # http://www.wisetel.com.br/acoes_de_regulacao/normas/n_96_28.htm
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 98 59995678', '55', '98', '59995678', 'Brazil', false)
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.9
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-02-11 00:00:00.000000000 Z
15
+ date: 2015-04-10 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activemodel