phony 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -75,7 +75,9 @@ module Phony
75
75
  ),
76
76
  '43' => Countries::Austria,
77
77
  '44' => fixed(2), # TODO United Kingdom of Great Britain and Northern Ireland
78
- '45' => fixed(2), # TODO Denmark
78
+ '45' => fixed(2, # Denmark
79
+ :local_format => [2, 2, 2]
80
+ ),
79
81
  '46' => Countries::Sweden,
80
82
  '47' => fixed(4, # Norway
81
83
  :local_format => [4]
@@ -8,6 +8,9 @@ describe Phony do
8
8
  it "should handle austrian numbers" do
9
9
  Phony.split('43198110').should == ['43', '1', '98110']
10
10
  end
11
+ it 'handles danish numbers' do
12
+ Phony.split('4532121212').should == ['45', '32', '12', '12', '12']
13
+ end
11
14
  it "should handle dutch numbers" do
12
15
  Phony.split('31612345678').should == ['31', '6', '12345678'] # mobile
13
16
  Phony.split('31201234567').should == ['31', '20', '1234567']
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 3
9
- version: 1.1.3
8
+ - 4
9
+ version: 1.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Florian Hanke