Permalink
Browse files

+ 1.8.0, to-do countries are more plausible

  • Loading branch information...
1 parent 9c16880 commit 3451373ad76210fea0b634c2bab58bd38ed0e28e Florian René Hanke committed Aug 30, 2012
View
@@ -1,5 +1,9 @@
h2. Upcoming Version.
+h2. Version 1.8.0
+
+* hanke: TODO countries are now plausibility checked less harshly.
+
h2. Version 1.7.12
* hanke: Luxembourg & Nigeria (thanks @jcfischer)!
@@ -9,7 +9,7 @@ def self.instance_for
end
def split national_number
- [nil, nil, national_number]
+ [national_number]
end
end
View
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'phony'
- s.version = '1.7.12'
+ s.version = '1.8.0'
s.authors = ['Florian Hanke']
s.email = 'florian.hanke+phony@gmail.com'
s.homepage = 'http://github.com/floere/phony'
@@ -8,7 +8,7 @@
it 'has a todo' do
Phony.define do
- todo.split("123456789012345").should == [nil, false, nil, nil, '123456789012345']
+ todo.split("123456789012345").should == [nil, false, '123456789012345']
end
end
@@ -22,6 +22,9 @@
# it 'is correct' do
# Phony.plausible?('+1911').should be_false
# end
+ it "correctly plausibilizes to#{}do countries" do
+ Phony.plausible?('6327332350').should be_true
+ end
it 'is correct' do
Phony.plausible?('45 44 11 22 33').should be_true
end

0 comments on commit 3451373

Please sign in to comment.