phonie 3.1.3 → 3.1.4
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 +10 -0
- data/Readme.rdoc +1 -0
- data/lib/phonie/data/phone_countries.yml +4 -0
- data/lib/phonie/version.rb +1 -1
- data/test/countries/sg_test.rb +13 -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: 91826b9ba490e3278c49a0cc9a5972fab533b79e
|
|
4
|
+
data.tar.gz: 53866ac14eeff195795a4d6609dd357fa7d895c8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eb2c113330a3e967996307db8d1845acca0bfe5f6f0314cb3df5b709ae1fc10a439a586b04e81b3f6418904241d012c210003e90efb5c6abfeec3809af8c6612
|
|
7
|
+
data.tar.gz: 15f0fd46e9c4c3d847786ca437fec54d6b9eaefb973b2de4ba2a8f38214fb4a284fc7b10b3930c95c9f3168df5723d21711d5837a36dba545872305ed34f9bb5
|
data/Changelog.md
CHANGED
data/Readme.rdoc
CHANGED
|
@@ -913,6 +913,10 @@
|
|
|
913
913
|
:char_2_code: None
|
|
914
914
|
:iso_3166_code: SG
|
|
915
915
|
:name: Singapore
|
|
916
|
+
:area_code: 3|6|8|9
|
|
917
|
+
:number_format: \d{8}
|
|
918
|
+
:mobile_format: (8|9)\d{7}
|
|
919
|
+
:local_number_format: \d{7}
|
|
916
920
|
:international_dialing_prefix: '000'
|
|
917
921
|
-
|
|
918
922
|
:country_code: '290'
|
data/lib/phonie/version.rb
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
|
|
2
|
+
|
|
3
|
+
## Singapore
|
|
4
|
+
class SGTest < Phonie::TestCase
|
|
5
|
+
def test_local
|
|
6
|
+
parse_test('+6568801234', '65', '6', '8801234', 'Singapore', false)
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def test_mobile
|
|
10
|
+
parse_test('+6591233132', '65', '9', '1233132', 'Singapore', true)
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
|
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.4
|
|
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-07-27 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: activemodel
|
|
@@ -189,6 +189,7 @@ files:
|
|
|
189
189
|
- test/countries/ru_test.rb
|
|
190
190
|
- test/countries/sa_test.rb
|
|
191
191
|
- test/countries/se_test.rb
|
|
192
|
+
- test/countries/sg_test.rb
|
|
192
193
|
- test/countries/si_test.rb
|
|
193
194
|
- test/countries/sk_test.rb
|
|
194
195
|
- test/countries/sn_test.rb
|
|
@@ -323,6 +324,7 @@ test_files:
|
|
|
323
324
|
- test/countries/ru_test.rb
|
|
324
325
|
- test/countries/sa_test.rb
|
|
325
326
|
- test/countries/se_test.rb
|
|
327
|
+
- test/countries/sg_test.rb
|
|
326
328
|
- test/countries/si_test.rb
|
|
327
329
|
- test/countries/sk_test.rb
|
|
328
330
|
- test/countries/sn_test.rb
|