phonie 3.1.13 → 3.1.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15de8d87ac4c7994dadd9a234787ef42beb68517
4
- data.tar.gz: 34d1d1a018ad44593f5df559408224ee66d3e2a0
3
+ metadata.gz: 1620761360a710ca44164a7a696470cd4d83101a
4
+ data.tar.gz: 3aa3335fcc7643c113eb58b73a319575dc2deccf
5
5
  SHA512:
6
- metadata.gz: 62e646feaf55f0126c68341a86e81e3361ac7343c7ab9669b6f32ba9b6ec1bf22f9f0fc808438e8b7355726083921c51f4f5f787676c4b9afbb522ee974c8fcf
7
- data.tar.gz: c3ab61534a2b4383b54e98268b8b9b1e1e92dfeae41f9f1ff57573531cf8fc2a39f91ab445dc2ae189a849b76313721120df5b8d18e3b15a96edf3cb4f073ff3
6
+ metadata.gz: bd4bd92ab7862c32c320cbf0ddccc59bf29162fd309ac01c8818fdcc302a5b8e03ad132964ef73aefbe5187eeb09687169cd3909793c5c88b1af2236e0133b31
7
+ data.tar.gz: fecbd4e4a89ef3eeebac81a283d0f267f7e6267c1fda7c98306858516335d14fff3be9539e5e502a7b9d39a1b4f04a212ab76a5ce1fca53d2a7f5a702fafc0bc
data/Changelog.md CHANGED
@@ -1,3 +1,9 @@
1
+ 3.1.14
2
+ ======
3
+
4
+ * Adds support for FJ. (Thanks @dramalho)
5
+ * Tightens up rules for CY (Thanks @dramalho)
6
+
1
7
  3.1.13
2
8
  ======
3
9
 
@@ -7,7 +13,7 @@
7
13
  3.1.12
8
14
  ======
9
15
 
10
- * Adds support for ID numbers (mobile only). Thanks @ivalkeen
16
+ * Adds support for ID numbers (mobile only). Thanks @ivalkeen
11
17
 
12
18
  3.1.11
13
19
  ======
@@ -229,6 +229,10 @@
229
229
  :char_2_code: None
230
230
  :iso_3166_code: FJ
231
231
  :name: Fiji
232
+ :area_code: \d
233
+ :number_format: \d{7}
234
+ :local_number_format: \d{6}
235
+ :mobile_format: '[7,8,92,99]\d{5,6}'
232
236
  :international_dialing_prefix: '00'
233
237
  -
234
238
  :country_code: '509'
@@ -1534,9 +1538,9 @@
1534
1538
  :iso_3166_code: CY
1535
1539
  :name: Cyprus
1536
1540
  :international_dialing_prefix: '00'
1537
- :area_code: 2\d|99
1541
+ :area_code: 2\d|9(9|7|6|5)
1538
1542
  :local_number_format: \d{6}
1539
- :mobile_format: 99\d{6}
1543
+ :mobile_format: 9(9|7|6|5)\d{6}
1540
1544
  :number_format: \d{8}
1541
1545
  -
1542
1546
  :country_code: '45'
@@ -1,3 +1,3 @@
1
1
  module Phonie
2
- VERSION = '3.1.13'
2
+ VERSION = '3.1.14'
3
3
  end
@@ -0,0 +1,14 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
2
+
3
+ ## Fiji
4
+ class FJTest < Phonie::TestCase
5
+ def test_local
6
+ parse_test('+6793254153', '679', '3', '254153', 'Fiji', false)
7
+ end
8
+
9
+ def test_mobile
10
+ parse_test('+6799356584', '679', '9', '356584', 'Fiji', true)
11
+ parse_test('+6798380406', '679', '8', '380406', 'Fiji', true)
12
+ end
13
+
14
+ 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.13
4
+ version: 3.1.14
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-10-19 00:00:00.000000000 Z
15
+ date: 2015-11-03 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activemodel
@@ -138,6 +138,7 @@ files:
138
138
  - test/countries/es_test.rb
139
139
  - test/countries/et_test.rb
140
140
  - test/countries/fi_test.rb
141
+ - test/countries/fj_test.rb
141
142
  - test/countries/fr_test.rb
142
143
  - test/countries/gb_test.rb
143
144
  - test/countries/ge_test.rb
@@ -236,7 +237,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
236
237
  version: '0'
237
238
  requirements: []
238
239
  rubyforge_project:
239
- rubygems_version: 2.4.5.1
240
+ rubygems_version: 2.2.2
240
241
  signing_key:
241
242
  specification_version: 4
242
243
  summary: Phone number parsing, validation and formatting
@@ -277,6 +278,7 @@ test_files:
277
278
  - test/countries/es_test.rb
278
279
  - test/countries/et_test.rb
279
280
  - test/countries/fi_test.rb
281
+ - test/countries/fj_test.rb
280
282
  - test/countries/fr_test.rb
281
283
  - test/countries/gb_test.rb
282
284
  - test/countries/ge_test.rb