phony 2.2.7 → 2.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/phony/countries.rb +1 -1
- data/spec/lib/phony/country_codes_spec.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
N2NhMzg4MzRmZjZkYWMxNGQxNzZjMTQwMjhkYmFhN2U1MDA4MmQ2ZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzY1M2UwZWI3MTVmNGUwNGMzMTJhYWM3YzYwNGI3YzdiZjUxYTM3Mw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODVkM2RmYmI2N2NjZmJjZmQ5YzE4MTc1NGExN2VmOWRkODYwN2VkYjJiYzg1
|
10
|
+
OTk2MzBhNTI0YzJkYWUzOWE1NjhjZjE5ZjE1ZTczMTA4ZjZhMmQ1MDhhOWUw
|
11
|
+
NTgxYTE5OWUxNzNjNDBiNjcxNDlkNDc1ZGUzYTAxNzgwYzIwNTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDNjOWE4NWYwZjUwNjAwOGI3ZTUyYzY1YTc0YWI3ZjhkODllYTBjYjRjOGY2
|
14
|
+
OWIyOTNlZDk5MDZkY2ExODA2MTY1MWYyODhiNWNjODQ0ZTE3NGUyZWM5YjY4
|
15
|
+
M2MyYzc2NDE4NjgyNzczNmQ1ZGJlYTQyZjhjNWI1MDk2NWQ0MTI=
|
data/lib/phony/countries.rb
CHANGED
@@ -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.
|
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-
|
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
|