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 +4 -4
- data/Changelog.md +5 -0
- data/Readme.rdoc +1 -0
- data/lib/phonie/data/phone_countries.yml +10 -0
- data/lib/phonie/version.rb +1 -1
- data/test/countries/tt_test.rb +19 -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: b0d080daca46153723d82eaae1d940096c2a9403
|
|
4
|
+
data.tar.gz: a6c2cc098bc7eead4e485b8ace9a8ebc0a656fdd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e8594f51e74cffeaa27a47f7b29bd1d14728214784785f86b31f549d23593de3e9d12c4b13894f614104692f6b61a4068c26f7c6277ee6942f08a3fb73068543
|
|
7
|
+
data.tar.gz: 8986b822a8c414f2b26659ea9385b6131274e2a30209e76600b559243a4b97f2090ef023e4e5099cabb565dff6f52b752dfcf56f57d289d682cdb478d1e43698
|
data/Changelog.md
CHANGED
data/Readme.rdoc
CHANGED
|
@@ -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'
|
data/lib/phonie/version.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
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
|