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 CHANGED
@@ -34,7 +34,7 @@ task :spec => :check_dependencies
34
34
 
35
35
  task :default => :spec
36
36
 
37
- require 'rake/rdoctask'
37
+ require 'rdoc/task'
38
38
  Rake::RDocTask.new do |rdoc|
39
39
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
40
40
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{dialy}
8
- s.version = "0.4.0"
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 = %q{2011-03-25}
13
- s.description = %q{Knows all area codes from Germany, Austria and Switzerland}
14
- s.email = %q{mail@georg-ledermann.de}
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 = %q{http://github.com/ledermann/dialy}
38
+ s.homepage = "http://github.com/ledermann/dialy"
39
39
  s.require_paths = ["lib"]
40
- s.rubygems_version = %q{1.6.2}
41
- s.summary = %q{Formatting phone numbers in E.123}
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
@@ -39,6 +39,9 @@ module Dialy
39
39
  9001, 9003, 9005, 9009,
40
40
  901,
41
41
  902,
42
+
43
+ # 032xx (non geographical numbers)
44
+ 32,
42
45
 
43
46
  # Ortsnetz
44
47
  201, 202, 203, 2041, 2043, 2045, 2051, 2052, 2053, 2054, 2056, 2058, 2064, 2065, 2066, 208, 209, 2102, 2103, 2104,
@@ -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: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
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-03-25 00:00:00 +01:00
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.6.2
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
- - spec/dialy_spec.rb
100
- - spec/spec_helper.rb
96
+ test_files: []
97
+