phony 1.5.2 → 1.6.0

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.
data/lib/phony/dsl.rb CHANGED
@@ -83,6 +83,7 @@ module Phony
83
83
  #
84
84
  #
85
85
  def split *local
86
+ local << local.pop + 10 # Allow for call-through numbers with an arbitrary size.
86
87
  LocalSplitters::Fixed.instance_for local
87
88
  end
88
89
  def matched_split options = {}
@@ -270,7 +270,8 @@ describe Phony do
270
270
  describe 'vanity_to_number' do
271
271
  it {Phony.vanity_to_number('41800WEGGLI').should == '41800934454'}
272
272
  it {Phony.vanity_to_number('41800weggli').should == '41800934454'}
273
- it {Phony.vanity_to_number('41800SUCCESSMATCH').should == '41800782237'} # Cut off according to the swiss norms.
273
+ # it {Phony.vanity_to_number('41800SUCCESSMATCH').should == '41800782237'} # Cut off according to the swiss norms.
274
+ it {Phony.vanity_to_number('41800SUCCESSMATCH').should == '41800782237762824'} # Allow for call-through numbers (>= 1.6.0)
274
275
  it {Phony.vanity_to_number('4180BLA').should == '4180252'} # Does not check for validity of number.
275
276
  end
276
277
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phony
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.6.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: