phonie 3.1.8 → 3.1.9

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: e6360e070ad678580ebb637f28a7c78deee286ad
4
- data.tar.gz: 75f169ea39029c4651b861d067a6fdba364e6a5e
3
+ metadata.gz: b0d080daca46153723d82eaae1d940096c2a9403
4
+ data.tar.gz: a6c2cc098bc7eead4e485b8ace9a8ebc0a656fdd
5
5
  SHA512:
6
- metadata.gz: 43d9ac873ba4d5e6bdb8884fd32ec4ab3cac0593acddcd0367df85bd8ba450bb08f7f944e0ce236214e7e9d4fdb5177f7b8df13d70e914e5ee5046578690a40d
7
- data.tar.gz: c97ba3dcd578f1fe466f128099351b10335531006d96be5e77a70438be916b3709c32dd6018328de1ae1ef20d343e30c80c03392464b6274d8a26d73dec2c750
6
+ metadata.gz: e8594f51e74cffeaa27a47f7b29bd1d14728214784785f86b31f549d23593de3e9d12c4b13894f614104692f6b61a4068c26f7c6277ee6942f08a3fb73068543
7
+ data.tar.gz: 8986b822a8c414f2b26659ea9385b6131274e2a30209e76600b559243a4b97f2090ef023e4e5099cabb565dff6f52b752dfcf56f57d289d682cdb478d1e43698
@@ -1,3 +1,8 @@
1
+ 3.1.9
2
+ =====
3
+
4
+ * Adds support for Trinidad and Tobago
5
+
1
6
  3.1.8
2
7
  =====
3
8
 
@@ -179,6 +179,7 @@ Currently tested on:
179
179
  [SN] Senegal
180
180
  [SV] El Salvador
181
181
  [TO] Tonga
182
+ [TT] Trinidad and Tobago
182
183
  [TW] Taiwan
183
184
  [UA] Ukraine
184
185
  [US] United States
@@ -874,6 +874,16 @@
874
874
  :local_number_format: \d{7}
875
875
  :number_format: \d{10}
876
876
  :mobile_format: (357|359|375|395|4[0-57-9]\d|46[02-9]|5[1-9]\d|50[013-9]|636|646|727)\d{4}
877
+ -
878
+ :country_code: '1'
879
+ :national_dialing_prefix: '1'
880
+ :char_2_code: '1'
881
+ :iso_3166_code: TT
882
+ :name: Trinidad and Tobago
883
+ :international_dialing_prefix: '011'
884
+ :area_code: '868'
885
+ :local_number_format: \d{7}
886
+ :number_format: \d{10}
877
887
  -
878
888
  :country_code: '375'
879
889
  :national_dialing_prefix: '8'
@@ -1,3 +1,3 @@
1
1
  module Phonie
2
- VERSION = '3.1.8'
2
+ VERSION = '3.1.9'
3
3
  end
@@ -0,0 +1,19 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
2
+
3
+ ## Trinidad and Tobago
4
+ class TTTest < Phonie::TestCase
5
+ def test_local
6
+ parse_test('+18681234567', '1', '868', '1234567', 'Trinidad and Tobago')
7
+ end
8
+
9
+ def test_long_with_default_country_code
10
+ Phonie.configuration.default_country_code = '1'
11
+ parse_test('8689735100', '1', '868', '9735100', 'Trinidad and Tobago')
12
+ end
13
+
14
+ def test_short_with_default_country_code_and_area_code
15
+ Phonie.configuration.default_country_code = '1'
16
+ Phonie.configuration.default_area_code = '868'
17
+ parse_test('9735100', '1', '868', '9735100', 'Trinidad and Tobago')
18
+ end
19
+ 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.8
4
+ version: 3.1.9
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-01-23 00:00:00.000000000 Z
15
+ date: 2015-02-11 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activemodel
@@ -199,6 +199,7 @@ files:
199
199
  - test/countries/tn_test.rb
200
200
  - test/countries/to_test.rb
201
201
  - test/countries/tr_test.rb
202
+ - test/countries/tt_test.rb
202
203
  - test/countries/tw_test.rb
203
204
  - test/countries/ua_test.rb
204
205
  - test/countries/us_test.rb
@@ -335,6 +336,7 @@ test_files:
335
336
  - test/countries/tn_test.rb
336
337
  - test/countries/to_test.rb
337
338
  - test/countries/tr_test.rb
339
+ - test/countries/tt_test.rb
338
340
  - test/countries/tw_test.rb
339
341
  - test/countries/ua_test.rb
340
342
  - test/countries/us_test.rb