dialy 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/dialy.gemspec +8 -12
- data/lib/dialy/data/de.rb +3 -0
- data/spec/dialy_spec.rb +4 -0
- metadata +7 -10
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.1
|
data/dialy.gemspec
CHANGED
@@ -4,14 +4,14 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.4.
|
7
|
+
s.name = "dialy"
|
8
|
+
s.version = "0.4.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Georg Ledermann"]
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
12
|
+
s.date = "2011-11-02"
|
13
|
+
s.description = "Knows all area codes from Germany, Austria and Switzerland"
|
14
|
+
s.email = "mail@georg-ledermann.de"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
17
|
"README.rdoc"
|
@@ -35,14 +35,10 @@ Gem::Specification.new do |s|
|
|
35
35
|
"spec/spec.opts",
|
36
36
|
"spec/spec_helper.rb"
|
37
37
|
]
|
38
|
-
s.homepage =
|
38
|
+
s.homepage = "http://github.com/ledermann/dialy"
|
39
39
|
s.require_paths = ["lib"]
|
40
|
-
s.rubygems_version =
|
41
|
-
s.summary =
|
42
|
-
s.test_files = [
|
43
|
-
"spec/dialy_spec.rb",
|
44
|
-
"spec/spec_helper.rb"
|
45
|
-
]
|
40
|
+
s.rubygems_version = "1.8.11"
|
41
|
+
s.summary = "Formatting phone numbers in E.123"
|
46
42
|
|
47
43
|
if s.respond_to? :specification_version then
|
48
44
|
s.specification_version = 3
|
data/lib/dialy/data/de.rb
CHANGED
data/spec/dialy_spec.rb
CHANGED
@@ -64,6 +64,10 @@ describe "Dialy" do
|
|
64
64
|
Dialy::Number.new('+41 71 1234567').to_s.should == '+41 71 1234567'
|
65
65
|
Dialy::Number.new('+41 71 1234567').to_s(:short).should == '+41 71 1234567'
|
66
66
|
end
|
67
|
+
|
68
|
+
it "should format non geographical numbers" do
|
69
|
+
Dialy::Number.new('+49 3222 176 45 42').to_s.should == '+49 32 221764542'
|
70
|
+
end
|
67
71
|
end
|
68
72
|
|
69
73
|
describe "German mobile" do
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dialy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 1
|
10
|
+
version: 0.4.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Georg Ledermann
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
19
|
-
default_executable:
|
18
|
+
date: 2011-11-02 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: rspec
|
@@ -61,7 +60,6 @@ files:
|
|
61
60
|
- spec/dialy_spec.rb
|
62
61
|
- spec/spec.opts
|
63
62
|
- spec/spec_helper.rb
|
64
|
-
has_rdoc: true
|
65
63
|
homepage: http://github.com/ledermann/dialy
|
66
64
|
licenses: []
|
67
65
|
|
@@ -91,10 +89,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
89
|
requirements: []
|
92
90
|
|
93
91
|
rubyforge_project:
|
94
|
-
rubygems_version: 1.
|
92
|
+
rubygems_version: 1.8.11
|
95
93
|
signing_key:
|
96
94
|
specification_version: 3
|
97
95
|
summary: Formatting phone numbers in E.123
|
98
|
-
test_files:
|
99
|
-
|
100
|
-
- spec/spec_helper.rb
|
96
|
+
test_files: []
|
97
|
+
|