phony 2.2.7 → 2.2.8

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NmYyM2E1MmVmYTM2OTE0YzIyM2U2MzE4YWY1MTMxMTdjYTQ0ZDU5OA==
4
+ N2NhMzg4MzRmZjZkYWMxNGQxNzZjMTQwMjhkYmFhN2U1MDA4MmQ2ZA==
5
5
  data.tar.gz: !binary |-
6
- ZjgyODQ1OGVhZjFkNDI0OWVjOWNiYjhkMzJhOThhOGZkYzUxMDZjNQ==
6
+ YzY1M2UwZWI3MTVmNGUwNGMzMTJhYWM3YzYwNGI3YzdiZjUxYTM3Mw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NTI5ZGNhOGYwM2YyYTljNTU2OGZmNmMyMWE2MDE5NzY0YjYwM2E0ZTQ2OWYz
10
- ZmE0NmJhZGU0NThiODc3ZGI0MjgxNTBlNjAwMzgzMjc0NTE4OGQwYjhmMzgw
11
- NTYxOWU0MDI0MmYzYmM0OWMyMDFiNTBmNDUzZTNiZGE3MDc2NTI=
9
+ ODVkM2RmYmI2N2NjZmJjZmQ5YzE4MTc1NGExN2VmOWRkODYwN2VkYjJiYzg1
10
+ OTk2MzBhNTI0YzJkYWUzOWE1NjhjZjE5ZjE1ZTczMTA4ZjZhMmQ1MDhhOWUw
11
+ NTgxYTE5OWUxNzNjNDBiNjcxNDlkNDc1ZGUzYTAxNzgwYzIwNTE=
12
12
  data.tar.gz: !binary |-
13
- OTkyY2I5YmNhNzhmZDRlY2RmMzRmNzVhNjYzNjAxOTc5MDMyNTVlNzQzMzY3
14
- ZDU2NDIwYzcxOTE5YmJjMTk5NGJmMWY2N2UzNjM1NDVlY2U4OTcyNzI3YzBh
15
- MDY0YWJmNDM3MWM3ZTcxZTkwOWNkNjAwZGU5MDE3MTcxZWE1ZmI=
13
+ MDNjOWE4NWYwZjUwNjAwOGI3ZTUyYzY1YTc0YWI3ZjhkODllYTBjYjRjOGY2
14
+ OWIyOTNlZDk5MDZkY2ExODA2MTY1MWYyODhiNWNjODQ0ZTE3NGUyZWM5YjY4
15
+ M2MyYzc2NDE4NjgyNzczNmQ1ZGJlYTQyZjhjNWI1MDk2NWQ0MTI=
@@ -81,7 +81,7 @@ Phony.define do
81
81
  # Spain.
82
82
  #
83
83
  country '34',
84
- fixed(2) >> split(3,4)
84
+ fixed(2, :zero => false) >> split(3,4)
85
85
 
86
86
  # Hungary.
87
87
  #
@@ -69,6 +69,9 @@ describe Phony::CountryCodes do
69
69
  it 'formats ireland correctly' do
70
70
  @countries.formatted("353411231234", :format => :national).should eql '041 123 1234'
71
71
  end
72
+ it 'formats spain correctly' do
73
+ @countries.formatted("34123456789", :format => :national).should eql '12 345 6789'
74
+ end
72
75
  end
73
76
  context 'default' do
74
77
  it "should format swiss numbers" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phony
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.7
4
+ version: 2.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Hanke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-27 00:00:00.000000000 Z
11
+ date: 2014-05-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: ! 'Fast international phone number (E164 standard) normalizing, splitting
14
14
  and formatting. Lots of formatting options: International (+.., 00..), national