Permalink
Browse files

+ 1.4.5, + spec for #26

  • Loading branch information...
1 parent a04f9f0 commit cf7639b3930d70bfe1a74c38db212e4efa8d9aeb @floere committed Sep 30, 2011
Showing with 10 additions and 6 deletions.
  1. +1 −2 .bundle/config
  2. +4 −0 history.textile
  3. +1 −1 phony.gemspec
  4. +4 −3 spec/lib/phony/countries_spec.rb
View
@@ -1,2 +1 @@
----
-BUNDLE_DISABLE_SHARED_GEMS: "1"
+--- {}
View
@@ -1,5 +1,9 @@
h2. Upcoming Version.
+h2. Version 1.4.5
+
+* hanke: Fix for digits being cut off at the end of a greek mobile number (by vilcsak, thanks!).
+
h2. Version 1.4.4
* hanke: Singapore, Thailand.
View
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'phony'
- s.version = '1.4.4'
+ s.version = '1.4.5'
s.authors = ['Florian Hanke']
s.email = 'florian.hanke+phony@gmail.com'
s.homepage = 'http://github.com/floere/phony'
@@ -88,6 +88,7 @@
it "handles greek numbers" do
Phony.split('3021123456').should == ['30', '21', '123456'] # Athens
Phony.split('3069512345').should == ['30', '695', '12345'] # Mobile
+ Phony.split('302108131234').should == ['30', '21', '08131234'] # Long mobile, noted by vilcsak in pull request #26.
Phony.split('3025941234').should == ['30', '2594', '1234']
Phony.split('3022631234').should == ['30', '2263', '1234']
end
@@ -100,7 +101,7 @@
Phony.split('3544211234').should == ['354', '421', '1234'] # Keflavík
Phony.split('3544621234').should == ['354', '462', '1234'] # Akureyri
Phony.split('3545511234').should == ['354', '551', '1234'] # Reykjavík
- end
+ end
it "handles italian numbers" do
Phony.split('3934869528').should == ['39', '3486', '952', '8'] # Mobile
Phony.split('39068546705').should == ['39', '06', '854', '6705'] # Roma
@@ -205,13 +206,13 @@
it "handles new zealand numbers" do
Phony.split('6491234567').should == ['64', '9', '123', '4567']
end
-
+
it "handles french service numbers" do
Phony.split('33812345678').should == ['33', '8', '12','34','56','78']
end
it "handles swiss service numbers" do
Phony.split('41800334455').should == ['41', '800', '334', '455']
end
end
-
+
end

0 comments on commit cf7639b

Please sign in to comment.