superp-phone 1.1 → 1.2

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.
@@ -1045,6 +1045,9 @@
1045
1045
  :char_3_code: "RU"
1046
1046
  :name: Russian Federation
1047
1047
  :international_dialing_prefix: "810"
1048
+ :area_code: "\\d{3}"
1049
+ :number_format: "\\d{10}"
1050
+ :local_number_format: "\\d{7}"
1048
1051
  "98":
1049
1052
  :country_code: "98"
1050
1053
  :national_dialing_prefix: "0"
@@ -0,0 +1,17 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
2
+
3
+ ## Ukraine
4
+ class RUTest < Phoner::TestCase
5
+
6
+ def test_local
7
+ parse_test('+7 495 739-70-70', '7', '495', '7397070', "Russian Federation")
8
+ end
9
+
10
+ def test_mobile
11
+ parse_test('+7 495 739-70-70', '7', '495', '7397070', "Russian Federation", true)
12
+ end
13
+
14
+ def test_mobile2
15
+ parse_test('7 (495) 739-70-70', '7', '495', '7397070', "Russian Federation", true)
16
+ end
17
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: superp-phone
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.1'
4
+ version: '1.2'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2012-12-05 00:00:00.000000000 Z
15
+ date: 2012-12-11 00:00:00.000000000 Z
16
16
  dependencies: []
17
17
  description: Release for https://github.com/wmoxam/phone fork
18
18
  email:
@@ -53,6 +53,7 @@ files:
53
53
  - test/countries/ua_test.rb
54
54
  - test/countries/us_test.rb
55
55
  - test/countries/za_test.rb
56
+ - test/countries/ru_test.rb
56
57
  homepage: http://github.com/superp/phone
57
58
  licenses: []
58
59
  post_install_message:
@@ -103,3 +104,4 @@ test_files:
103
104
  - test/countries/ua_test.rb
104
105
  - test/countries/us_test.rb
105
106
  - test/countries/za_test.rb
107
+ - test/countries/ru_test.rb