phonie 3.1.4 → 3.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +6 -0
- data/Readme.rdoc +1 -0
- data/lib/phonie/data/phone_countries.yml +6 -2
- data/lib/phonie/version.rb +1 -1
- data/test/countries/hk_test.rb +13 -0
- data/test/countries/th_test.rb +1 -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: 313c452c1fe65176f2a8492c1223b1f61efe017c
|
4
|
+
data.tar.gz: 342f4a57124026c40429ca1ca5897668ea71e7f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c60bb1e0a7f7b65b48efa58458868afb7db034cfbf92169d3aebe61efeea69bbfeee9a68b1aee9eb90503af8bf2a30e3d0ac04d54bba68074636dec7796ef4fd
|
7
|
+
data.tar.gz: c2205acaf886b2789268810670ab44fcb205af901fcdf081e8383e14eb608643c28b80ca46d2f1dab157730d7b2e92733f9235da060d07c5df7860fa24f32037
|
data/Changelog.md
CHANGED
data/Readme.rdoc
CHANGED
@@ -608,6 +608,10 @@
|
|
608
608
|
:char_2_code: None
|
609
609
|
:iso_3166_code: HK
|
610
610
|
:name: Hong Kong
|
611
|
+
:area_code: 2|3|5|6|7|8|9
|
612
|
+
:number_format: \d{8}
|
613
|
+
:mobile_format: (5|6|7|9)\d{7}
|
614
|
+
:local_number_format: \d{7}
|
611
615
|
:international_dialing_prefix: '001'
|
612
616
|
-
|
613
617
|
:country_code: '372'
|
@@ -1045,8 +1049,8 @@
|
|
1045
1049
|
:international_dialing_prefix: '001'
|
1046
1050
|
:area_code: '(2|[3-9]\d)'
|
1047
1051
|
:local_number_format: '\d{6,7}'
|
1048
|
-
:number_format: '\d{8}'
|
1049
|
-
:mobile_format: '
|
1052
|
+
:number_format: '\d{8,9}'
|
1053
|
+
:mobile_format: '[6,8,9]\d{7,8}'
|
1050
1054
|
-
|
1051
1055
|
:country_code: '886'
|
1052
1056
|
:national_dialing_prefix: None
|
data/lib/phonie/version.rb
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
|
2
|
+
|
3
|
+
## Hong Kong
|
4
|
+
class HKTest < Phonie::TestCase
|
5
|
+
def test_local
|
6
|
+
parse_test('+85225555555', '852', '2', '5555555', 'Hong Kong', false)
|
7
|
+
end
|
8
|
+
|
9
|
+
def test_mobile
|
10
|
+
parse_test('+85265555555', '852', '6', '5555555', 'Hong Kong', true)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
data/test/countries/th_test.rb
CHANGED
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.5
|
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: 2014-
|
15
|
+
date: 2014-08-14 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: activemodel
|
@@ -147,6 +147,7 @@ files:
|
|
147
147
|
- test/countries/gt_test.rb
|
148
148
|
- test/countries/gu_test.rb
|
149
149
|
- test/countries/gy_test.rb
|
150
|
+
- test/countries/hk_test.rb
|
150
151
|
- test/countries/hr_test.rb
|
151
152
|
- test/countries/ht_test.rb
|
152
153
|
- test/countries/hu_test.rb
|
@@ -282,6 +283,7 @@ test_files:
|
|
282
283
|
- test/countries/gt_test.rb
|
283
284
|
- test/countries/gu_test.rb
|
284
285
|
- test/countries/gy_test.rb
|
286
|
+
- test/countries/hk_test.rb
|
285
287
|
- test/countries/hr_test.rb
|
286
288
|
- test/countries/ht_test.rb
|
287
289
|
- test/countries/hu_test.rb
|