Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Upgraded to rspec 2.0.0.

  • Loading branch information...
commit f6c81536ac42f94e37e20e5f8a435bd071b47099 1 parent 71f0a3a
Postmodern authored October 10, 2010
1  .rspec
... ...
@@ -0,0 +1 @@
  1
+--colour --format documentation
19  Rakefile
@@ -13,7 +13,7 @@ begin
13 13
     gem.email = 'postmodern.mod3@gmail.com'
14 14
     gem.homepage = 'http://github.com/postmodern/open-namespace'
15 15
     gem.authors = ['Postmodern']
16  
-    gem.add_development_dependency 'rspec', '>= 1.2.9'
  16
+    gem.add_development_dependency 'rspec', '~> 2.0.0'
17 17
     gem.add_development_dependency 'yard', '>= 0.5.3'
18 18
     gem.has_rdoc = 'yard'
19 19
   end
@@ -22,15 +22,16 @@ rescue LoadError
22 22
   puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
23 23
 end
24 24
 
25  
-require 'spec/rake/spectask'
26  
-Spec::Rake::SpecTask.new(:spec) do |spec|
27  
-  spec.libs += ['lib', 'spec']
28  
-  spec.spec_files = FileList['spec/**/*_spec.rb']
29  
-  spec.spec_opts = ['--options', '.specopts']
30  
-end
  25
+begin
  26
+  require 'rspec/core/rake_task'
31 27
 
32  
-task :spec => :check_dependencies
33  
-task :default => :spec
  28
+  RSpec::Core::RakeTask.new
  29
+  task :default => :spec
  30
+rescue LoadError
  31
+  task :spec do
  32
+    abort "RSpec 2.0.0 is not available. In order to run spec, you must: gem install rspec"
  33
+  end
  34
+end
34 35
 
35 36
 begin
36 37
   require 'yard'
96  open_namespace.gemspec
@@ -9,79 +9,79 @@ Gem::Specification.new do |s|
9 9
 
10 10
   s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11 11
   s.authors = ["Postmodern"]
12  
-  s.date = %q{2010-04-28}
  12
+  s.date = %q{2010-10-10}
13 13
   s.description = %q{OpenNamespace allows namespaces to require and find classes and modules from other RubyGems.}
14 14
   s.email = %q{postmodern.mod3@gmail.com}
15 15
   s.extra_rdoc_files = [
16 16
     "ChangeLog.md",
17  
-     "LICENSE.txt",
18  
-     "README.md"
  17
+    "LICENSE.txt",
  18
+    "README.md"
19 19
   ]
20 20
   s.files = [
21 21
     ".gitignore",
22  
-     ".specopts",
23  
-     ".yardopts",
24  
-     "ChangeLog.md",
25  
-     "LICENSE.txt",
26  
-     "README.md",
27  
-     "Rakefile",
28  
-     "lib/open_namespace.rb",
29  
-     "lib/open_namespace/class_methods.rb",
30  
-     "lib/open_namespace/open_namespace.rb",
31  
-     "lib/open_namespace/version.rb",
32  
-     "open_namespace.gemspec",
33  
-     "spec/classes/custom/bad_constant.rb",
34  
-     "spec/classes/custom/constant_one.rb",
35  
-     "spec/classes/custom/constant_two.rb",
36  
-     "spec/classes/custom/odd_constant.rb",
37  
-     "spec/classes/custom/sub/constant_four.rb",
38  
-     "spec/classes/custom_namespace.rb",
39  
-     "spec/classes/simple_namespace.rb",
40  
-     "spec/classes/simple_namespace/bad_constant.rb",
41  
-     "spec/classes/simple_namespace/constant_one.rb",
42  
-     "spec/classes/simple_namespace/constant_two.rb",
43  
-     "spec/classes/simple_namespace/odd_constant.rb",
44  
-     "spec/classes/simple_namespace/sub/constant_four.rb",
45  
-     "spec/open_namespace_spec.rb",
46  
-     "spec/spec_helper.rb"
  22
+    ".rspec",
  23
+    ".specopts",
  24
+    ".yardopts",
  25
+    "ChangeLog.md",
  26
+    "LICENSE.txt",
  27
+    "README.md",
  28
+    "Rakefile",
  29
+    "lib/open_namespace.rb",
  30
+    "lib/open_namespace/class_methods.rb",
  31
+    "lib/open_namespace/open_namespace.rb",
  32
+    "lib/open_namespace/version.rb",
  33
+    "open_namespace.gemspec",
  34
+    "spec/classes/custom/bad_constant.rb",
  35
+    "spec/classes/custom/constant_one.rb",
  36
+    "spec/classes/custom/constant_two.rb",
  37
+    "spec/classes/custom/odd_constant.rb",
  38
+    "spec/classes/custom/sub/constant_four.rb",
  39
+    "spec/classes/custom_namespace.rb",
  40
+    "spec/classes/simple_namespace.rb",
  41
+    "spec/classes/simple_namespace/bad_constant.rb",
  42
+    "spec/classes/simple_namespace/constant_one.rb",
  43
+    "spec/classes/simple_namespace/constant_two.rb",
  44
+    "spec/classes/simple_namespace/odd_constant.rb",
  45
+    "spec/classes/simple_namespace/sub/constant_four.rb",
  46
+    "spec/open_namespace_spec.rb",
  47
+    "spec/spec_helper.rb"
47 48
   ]
48 49
   s.has_rdoc = %q{yard}
49 50
   s.homepage = %q{http://github.com/postmodern/open-namespace}
50 51
   s.licenses = ["MIT"]
51  
-  s.rdoc_options = ["--charset=UTF-8"]
52 52
   s.require_paths = ["lib"]
53  
-  s.rubygems_version = %q{1.3.6}
  53
+  s.rubygems_version = %q{1.3.7}
54 54
   s.summary = %q{Allows namespaces to load constants on-demand}
55 55
   s.test_files = [
56  
-    "spec/spec_helper.rb",
57  
-     "spec/open_namespace_spec.rb",
58  
-     "spec/classes/custom_namespace.rb",
59  
-     "spec/classes/custom/constant_two.rb",
60  
-     "spec/classes/custom/constant_one.rb",
61  
-     "spec/classes/custom/bad_constant.rb",
62  
-     "spec/classes/custom/sub/constant_four.rb",
63  
-     "spec/classes/custom/odd_constant.rb",
64  
-     "spec/classes/simple_namespace.rb",
65  
-     "spec/classes/simple_namespace/constant_two.rb",
66  
-     "spec/classes/simple_namespace/constant_one.rb",
67  
-     "spec/classes/simple_namespace/bad_constant.rb",
68  
-     "spec/classes/simple_namespace/sub/constant_four.rb",
69  
-     "spec/classes/simple_namespace/odd_constant.rb"
  56
+    "spec/classes/custom/bad_constant.rb",
  57
+    "spec/classes/custom/constant_one.rb",
  58
+    "spec/classes/custom/constant_two.rb",
  59
+    "spec/classes/custom/odd_constant.rb",
  60
+    "spec/classes/custom/sub/constant_four.rb",
  61
+    "spec/classes/custom_namespace.rb",
  62
+    "spec/classes/simple_namespace.rb",
  63
+    "spec/classes/simple_namespace/bad_constant.rb",
  64
+    "spec/classes/simple_namespace/constant_one.rb",
  65
+    "spec/classes/simple_namespace/constant_two.rb",
  66
+    "spec/classes/simple_namespace/odd_constant.rb",
  67
+    "spec/classes/simple_namespace/sub/constant_four.rb",
  68
+    "spec/open_namespace_spec.rb",
  69
+    "spec/spec_helper.rb"
70 70
   ]
71 71
 
72 72
   if s.respond_to? :specification_version then
73 73
     current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
74 74
     s.specification_version = 3
75 75
 
76  
-    if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
77  
-      s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
  76
+    if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
  77
+      s.add_development_dependency(%q<rspec>, ["~> 2.0.0"])
78 78
       s.add_development_dependency(%q<yard>, [">= 0.5.3"])
79 79
     else
80  
-      s.add_dependency(%q<rspec>, [">= 1.2.9"])
  80
+      s.add_dependency(%q<rspec>, ["~> 2.0.0"])
81 81
       s.add_dependency(%q<yard>, [">= 0.5.3"])
82 82
     end
83 83
   else
84  
-    s.add_dependency(%q<rspec>, [">= 1.2.9"])
  84
+    s.add_dependency(%q<rspec>, ["~> 2.0.0"])
85 85
     s.add_dependency(%q<yard>, [">= 0.5.3"])
86 86
   end
87 87
 end
4  spec/spec_helper.rb
... ...
@@ -1,6 +1,6 @@
1 1
 require 'rubygems'
2  
-gem 'rspec', '>=1.2.9'
3  
-require 'spec'
  2
+gem 'rspec', '~> 2.0.0'
  3
+require 'rspec'
4 4
 
5 5
 require 'open_namespace/version'
6 6
 

0 notes on commit f6c8153

Please sign in to comment.
Something went wrong with that request. Please try again.