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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1eb8e80676a9158d38224c229ade58f55c1931a6
4
- data.tar.gz: a2f2aa6df6ab0a9ba1cddd33f7e128dba083f484
3
+ metadata.gz: 91826b9ba490e3278c49a0cc9a5972fab533b79e
4
+ data.tar.gz: 53866ac14eeff195795a4d6609dd357fa7d895c8
5
5
  SHA512:
6
- metadata.gz: 5b20f47a10a9f15292aca92548cab3cc65a96154eb261453e194519b0d09aca9600adde3d6d902034fc2ee11c1ccb61502161cf0c983298569d84eef5f1b0817
7
- data.tar.gz: b45fbe4d8f67fa9c1613bcee905c86921dce336dc45f75129f37b8c023e8e6778fe3d923ec74661da75d123eefee2c7d0f05c76b7993f88e0d9f8315fc6903d9
6
+ metadata.gz: eb2c113330a3e967996307db8d1845acca0bfe5f6f0314cb3df5b709ae1fc10a439a586b04e81b3f6418904241d012c210003e90efb5c6abfeec3809af8c6612
7
+ data.tar.gz: 15f0fd46e9c4c3d847786ca437fec54d6b9eaefb973b2de4ba2a8f38214fb4a284fc7b10b3930c95c9f3168df5723d21711d5837a36dba545872305ed34f9bb5
data/Changelog.md CHANGED
@@ -1,3 +1,13 @@
1
+ 3.1.4
2
+ =====
3
+
4
+ * Adds support for Singapore
5
+
6
+ 3.1.3
7
+ =====
8
+
9
+ * Improves support for Brazil
10
+
1
11
  3.1.2
2
12
  =====
3
13
 
data/Readme.rdoc CHANGED
@@ -172,6 +172,7 @@ Currently tested on:
172
172
  [RU] Russian Federation
173
173
  [SA] Saudi Arabia
174
174
  [SE] Sweden
175
+ [SG] Singapore
175
176
  [SI] Slovenia
176
177
  [SK] Slovakia
177
178
  [SN] Senegal
@@ -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'
@@ -1,3 +1,3 @@
1
1
  module Phonie
2
- VERSION = '3.1.3'
2
+ VERSION = '3.1.4'
3
3
  end
@@ -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.3
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-06-30 00:00:00.000000000 Z
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