phony 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
data/lib/phony/country.rb
CHANGED
@@ -59,7 +59,7 @@ module Phony
|
|
59
59
|
|
60
60
|
if ndc_mapping[:service]
|
61
61
|
service_national_splitter = Phony::NationalSplitters::Variable.new nil, :service => ndc_mapping[:service]
|
62
|
-
service_local_splitter = Phony::LocalSplitter.instance_for options[:service_local_format] || [3,
|
62
|
+
service_local_splitter = Phony::LocalSplitter.instance_for options[:service_local_format] || [3, 6]
|
63
63
|
service_code = Phony::NationalCode.new service_national_splitter, service_local_splitter
|
64
64
|
end
|
65
65
|
|
@@ -19,6 +19,9 @@ describe Phony::Countries::Germany do
|
|
19
19
|
it "should handle Nettetal-Lobberich" do
|
20
20
|
@germany.split('21535100').should == ['2153', '510', '0']
|
21
21
|
end
|
22
|
+
it "should handle service numbers with 180 [regression]" do
|
23
|
+
@germany.split('1805878323').should == ['180', '587', '8323']
|
24
|
+
end
|
22
25
|
end
|
23
26
|
|
24
27
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 1.1.
|
8
|
+
- 6
|
9
|
+
version: 1.1.6
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Florian Hanke
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-12-
|
17
|
+
date: 2010-12-08 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|