Permalink
Browse files

Upgraded to rspec 2.0.0.

  • Loading branch information...
1 parent 71f0a3a commit f6c81536ac42f94e37e20e5f8a435bd071b47099 @postmodern committed Oct 11, 2010
Showing with 61 additions and 59 deletions.
  1. +1 −0 .rspec
  2. +10 −9 Rakefile
  3. +48 −48 open_namespace.gemspec
  4. +2 −2 spec/spec_helper.rb
View
1 .rspec
@@ -0,0 +1 @@
+--colour --format documentation
View
@@ -13,7 +13,7 @@ begin
gem.email = 'postmodern.mod3@gmail.com'
gem.homepage = 'http://github.com/postmodern/open-namespace'
gem.authors = ['Postmodern']
- gem.add_development_dependency 'rspec', '>= 1.2.9'
+ gem.add_development_dependency 'rspec', '~> 2.0.0'
gem.add_development_dependency 'yard', '>= 0.5.3'
gem.has_rdoc = 'yard'
end
@@ -22,15 +22,16 @@ rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
-require 'spec/rake/spectask'
-Spec::Rake::SpecTask.new(:spec) do |spec|
- spec.libs += ['lib', 'spec']
- spec.spec_files = FileList['spec/**/*_spec.rb']
- spec.spec_opts = ['--options', '.specopts']
-end
+begin
+ require 'rspec/core/rake_task'
-task :spec => :check_dependencies
-task :default => :spec
+ RSpec::Core::RakeTask.new
+ task :default => :spec
+rescue LoadError
+ task :spec do
+ abort "RSpec 2.0.0 is not available. In order to run spec, you must: gem install rspec"
+ end
+end
begin
require 'yard'
View
@@ -9,79 +9,79 @@ Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Postmodern"]
- s.date = %q{2010-04-28}
+ s.date = %q{2010-10-10}
s.description = %q{OpenNamespace allows namespaces to require and find classes and modules from other RubyGems.}
s.email = %q{postmodern.mod3@gmail.com}
s.extra_rdoc_files = [
"ChangeLog.md",
- "LICENSE.txt",
- "README.md"
+ "LICENSE.txt",
+ "README.md"
]
s.files = [
".gitignore",
- ".specopts",
- ".yardopts",
- "ChangeLog.md",
- "LICENSE.txt",
- "README.md",
- "Rakefile",
- "lib/open_namespace.rb",
- "lib/open_namespace/class_methods.rb",
- "lib/open_namespace/open_namespace.rb",
- "lib/open_namespace/version.rb",
- "open_namespace.gemspec",
- "spec/classes/custom/bad_constant.rb",
- "spec/classes/custom/constant_one.rb",
- "spec/classes/custom/constant_two.rb",
- "spec/classes/custom/odd_constant.rb",
- "spec/classes/custom/sub/constant_four.rb",
- "spec/classes/custom_namespace.rb",
- "spec/classes/simple_namespace.rb",
- "spec/classes/simple_namespace/bad_constant.rb",
- "spec/classes/simple_namespace/constant_one.rb",
- "spec/classes/simple_namespace/constant_two.rb",
- "spec/classes/simple_namespace/odd_constant.rb",
- "spec/classes/simple_namespace/sub/constant_four.rb",
- "spec/open_namespace_spec.rb",
- "spec/spec_helper.rb"
+ ".rspec",
+ ".specopts",
+ ".yardopts",
+ "ChangeLog.md",
+ "LICENSE.txt",
+ "README.md",
+ "Rakefile",
+ "lib/open_namespace.rb",
+ "lib/open_namespace/class_methods.rb",
+ "lib/open_namespace/open_namespace.rb",
+ "lib/open_namespace/version.rb",
+ "open_namespace.gemspec",
+ "spec/classes/custom/bad_constant.rb",
+ "spec/classes/custom/constant_one.rb",
+ "spec/classes/custom/constant_two.rb",
+ "spec/classes/custom/odd_constant.rb",
+ "spec/classes/custom/sub/constant_four.rb",
+ "spec/classes/custom_namespace.rb",
+ "spec/classes/simple_namespace.rb",
+ "spec/classes/simple_namespace/bad_constant.rb",
+ "spec/classes/simple_namespace/constant_one.rb",
+ "spec/classes/simple_namespace/constant_two.rb",
+ "spec/classes/simple_namespace/odd_constant.rb",
+ "spec/classes/simple_namespace/sub/constant_four.rb",
+ "spec/open_namespace_spec.rb",
+ "spec/spec_helper.rb"
]
s.has_rdoc = %q{yard}
s.homepage = %q{http://github.com/postmodern/open-namespace}
s.licenses = ["MIT"]
- s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.6}
+ s.rubygems_version = %q{1.3.7}
s.summary = %q{Allows namespaces to load constants on-demand}
s.test_files = [
- "spec/spec_helper.rb",
- "spec/open_namespace_spec.rb",
- "spec/classes/custom_namespace.rb",
- "spec/classes/custom/constant_two.rb",
- "spec/classes/custom/constant_one.rb",
- "spec/classes/custom/bad_constant.rb",
- "spec/classes/custom/sub/constant_four.rb",
- "spec/classes/custom/odd_constant.rb",
- "spec/classes/simple_namespace.rb",
- "spec/classes/simple_namespace/constant_two.rb",
- "spec/classes/simple_namespace/constant_one.rb",
- "spec/classes/simple_namespace/bad_constant.rb",
- "spec/classes/simple_namespace/sub/constant_four.rb",
- "spec/classes/simple_namespace/odd_constant.rb"
+ "spec/classes/custom/bad_constant.rb",
+ "spec/classes/custom/constant_one.rb",
+ "spec/classes/custom/constant_two.rb",
+ "spec/classes/custom/odd_constant.rb",
+ "spec/classes/custom/sub/constant_four.rb",
+ "spec/classes/custom_namespace.rb",
+ "spec/classes/simple_namespace.rb",
+ "spec/classes/simple_namespace/bad_constant.rb",
+ "spec/classes/simple_namespace/constant_one.rb",
+ "spec/classes/simple_namespace/constant_two.rb",
+ "spec/classes/simple_namespace/odd_constant.rb",
+ "spec/classes/simple_namespace/sub/constant_four.rb",
+ "spec/open_namespace_spec.rb",
+ "spec/spec_helper.rb"
]
if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+ s.add_development_dependency(%q<rspec>, ["~> 2.0.0"])
s.add_development_dependency(%q<yard>, [">= 0.5.3"])
else
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
+ s.add_dependency(%q<rspec>, ["~> 2.0.0"])
s.add_dependency(%q<yard>, [">= 0.5.3"])
end
else
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
+ s.add_dependency(%q<rspec>, ["~> 2.0.0"])
s.add_dependency(%q<yard>, [">= 0.5.3"])
end
end
View
@@ -1,6 +1,6 @@
require 'rubygems'
-gem 'rspec', '>=1.2.9'
-require 'spec'
+gem 'rspec', '~> 2.0.0'
+require 'rspec'
require 'open_namespace/version'

0 comments on commit f6c8153

Please sign in to comment.