Skip to content

Commit

Permalink
+ 1.8.0, to-do countries are more plausible
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian René Hanke committed Aug 30, 2012
1 parent 9c16880 commit 3451373
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions history.textile
@@ -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)!
Expand Down
2 changes: 1 addition & 1 deletion lib/phony/national_splitters/default.rb
Expand Up @@ -9,7 +9,7 @@ def self.instance_for
end

def split national_number
[nil, nil, national_number]
[national_number]
end

end
Expand Down
2 changes: 1 addition & 1 deletion phony.gemspec
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/phony/dsl_spec.rb
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions spec/lib/phony/validations_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit 3451373

Please sign in to comment.