Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

+ 1.8.0, to-do countries are more plausible

  • Loading branch information...
commit 3451373ad76210fea0b634c2bab58bd38ed0e28e 1 parent 9c16880
Florian René Hanke authored
View
4 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)!
View
2  lib/phony/national_splitters/default.rb
@@ -9,7 +9,7 @@ def self.instance_for
end
def split national_number
- [nil, nil, national_number]
+ [national_number]
end
end
View
2  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'
View
2  spec/lib/phony/dsl_spec.rb
@@ -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
View
3  spec/lib/phony/validations_spec.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.