phony 2.6.0 → 2.7.0

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: 0c1360362a2bca58b46e145890a6dac68b27ebc6
4
- data.tar.gz: d467a28c0261fe8e1cfc46e6f268dbb582d40862
3
+ metadata.gz: 055df3c7e25fbdb39a1bbab1c292b56a55d7e7e4
4
+ data.tar.gz: ef63c44cee1c6dd42f037e3e1718c5f709e05eed
5
5
  SHA512:
6
- metadata.gz: 5985885fe5ad19b0f3d8b69c4c909e93101ad51985a9f816b069403f342e651a6d034b9acbf21352242cae89e6e7d2fcb091cd0503d4302e8a6c6f410ece722e
7
- data.tar.gz: b74ae8f82233134f546ef5db139d6f405055d2e909e08205e985704aa788ca04b0a2f637cb0ce42e99d9f10e4083b083ceb7dbb04aa736c11708d5560b83ff03
6
+ metadata.gz: 93d72fa4508dd5e8d4f317a4ffa41ad997a2b18278b3c66210dd72a7d1083153a73d22d4504aae031f9a60ee2706ed1b0a2261d72c534b0c8ba71801ef8cd2c8
7
+ data.tar.gz: e5c2bc906b360210632c22ab3eccfdc896fe775d1abc701c2c860821c1d781df5a1b4e437b2806b507aefc182236a62297bd18c5cc5c7c5a0feade85670b6263
@@ -98,7 +98,7 @@ Phony.define do
98
98
  # Hungary.
99
99
  #
100
100
  country '36',
101
- trunk('06') |
101
+ trunk('06', normalize: false) |
102
102
  one_of('104','105','107','112') >> split(3,3) | # Service
103
103
  one_of('1') >> split(3,4) | # Budapest
104
104
  fixed(2) >> split(3,4) # 2-digit NDCs
@@ -597,7 +597,7 @@ Phony.define do
597
597
  # Lithuania
598
598
  #
599
599
  country '370',
600
- trunk('8') |
600
+ trunk('8', normalize: false) |
601
601
  one_of('700', '800') >> split(2,3) | # Service
602
602
  match(/^(6\d\d)\d+$/) >> split(2,3) | # Mobile
603
603
  one_of('5') >> split(3,2,2) | # Vilnius
@@ -118,7 +118,7 @@ ndcs_with_7_subscriber_digits = %w(342 343 347 351 383 391 473 495 496 498 499 8
118
118
 
119
119
  Phony.define do
120
120
  country '7',
121
- trunk('8') |
121
+ trunk('8', normalize: false) |
122
122
  one_of(ndcs_with_5_subscriber_digits) >> split(1, 4) |
123
123
  one_of(ndcs_with_6_subscriber_digits) >> split(2, 4) |
124
124
  one_of(ndcs_with_7_subscriber_digits) >> split(3, 4) |
@@ -12,7 +12,7 @@ module Phony
12
12
  def initialize code, options = {}
13
13
  @code = code
14
14
  @trunk_code_replacement = /\A#{code.rstrip}/
15
- @normalize = options[:normalize]
15
+ @normalize = options[:normalize] || options[:normalize].nil?
16
16
  @split = options[:split]
17
17
  end
18
18
 
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phony
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-27 00:00:00.000000000 Z
11
+ date: 2014-10-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: 'Fast international phone number (E164 standard) normalizing, splitting
13
+ description: ! 'Fast international phone number (E164 standard) normalizing, splitting
14
14
  and formatting. Lots of formatting options: International (+.., 00..), national
15
15
  (0..), and local.'
16
16
  email: florian.hanke+phony@gmail.com
@@ -19,9 +19,6 @@ extensions: []
19
19
  extra_rdoc_files:
20
20
  - README.textile
21
21
  files:
22
- - README.textile
23
- - lib/phony.rb
24
- - lib/phony/countries.rb
25
22
  - lib/phony/countries/austria.rb
26
23
  - lib/phony/countries/bangladesh.rb
27
24
  - lib/phony/countries/belarus.rb
@@ -60,6 +57,7 @@ files:
60
57
  - lib/phony/countries/uruguay.rb
61
58
  - lib/phony/countries/vietnam.rb
62
59
  - lib/phony/countries/zimbabwe.rb
60
+ - lib/phony/countries.rb
63
61
  - lib/phony/country.rb
64
62
  - lib/phony/country_codes.rb
65
63
  - lib/phony/dsl.rb
@@ -74,6 +72,8 @@ files:
74
72
  - lib/phony/national_splitters/variable.rb
75
73
  - lib/phony/trunk_code.rb
76
74
  - lib/phony/vanity.rb
75
+ - lib/phony.rb
76
+ - README.textile
77
77
  - spec/functional/error_spec.rb
78
78
  - spec/functional/normalize_spec.rb
79
79
  - spec/functional/plausibility_spec.rb
@@ -100,17 +100,17 @@ require_paths:
100
100
  - lib
101
101
  required_ruby_version: !ruby/object:Gem::Requirement
102
102
  requirements:
103
- - - ">="
103
+ - - ! '>='
104
104
  - !ruby/object:Gem::Version
105
105
  version: '0'
106
106
  required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - ! '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  requirements: []
112
112
  rubyforge_project:
113
- rubygems_version: 2.2.2
113
+ rubygems_version: 2.0.3
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Fast international phone number (E164 standard) normalizing, splitting and
@@ -132,3 +132,4 @@ test_files:
132
132
  - spec/lib/phony/national_splitters/variable_spec.rb
133
133
  - spec/lib/phony/vanity_spec.rb
134
134
  - spec/lib/phony_spec.rb
135
+ has_rdoc: false