phony 1.8.7 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/phony/country.rb CHANGED
@@ -43,6 +43,7 @@ module Phony
43
43
  normalized = code.normalize national_number
44
44
  return normalized if normalized && !normalized.empty?
45
45
  end
46
+ return nil
46
47
  end
47
48
 
48
49
  # Is this national number a vanity number?
@@ -24,6 +24,9 @@ describe Phony do
24
24
 
25
25
  describe "normalize" do
26
26
  describe "some examples" do
27
+ it "should normalize a too short number" do
28
+ Phony.normalize('+972').should == '972'
29
+ end
27
30
  it "should normalize an already normalized number" do
28
31
  Phony.normalize('41443643533').should == '41443643533'
29
32
  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.8.7
4
+ version: 1.9.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: