From f8d94c745d3c10c19b930e9dfc8ca32c1d780712 Mon Sep 17 00:00:00 2001 From: David Chelimsky Date: Mon, 29 Jun 2009 13:55:31 -0400 Subject: [PATCH] add deps on other rspec packages --- Rakefile | 15 ++++++++++++--- rspec-meta.gemspec | 6 ++++++ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index 937a7995..eea22c71 100644 --- a/Rakefile +++ b/Rakefile @@ -9,6 +9,9 @@ begin gem.email = "dchelimsky@gmail.com;chad.humphries@gmail.com" gem.homepage = "http://github.com/rspec/meta" gem.authors = ["David Chelimsky", "Chad Humphries"] + gem.add_dependency "rspec-core", "0.0.0" + gem.add_dependency "rspec-expectations", "0.0.0" + gem.add_dependency "rspec-mocks", "0.0.0" # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings end @@ -17,9 +20,15 @@ rescue LoadError end require 'spec/rake/spectask' -Spec::Rake::SpecTask.new(:spec) do |spec| - spec.libs << 'lib' << 'spec' - spec.spec_files = FileList['spec/**/*_spec.rb'] +task :spec do + system <<-COMMANDS + cd ../core && + rake spec && + cd ../mocks && + rake spec && + cd ../expectations && + rake spec + COMMANDS end Spec::Rake::SpecTask.new(:rcov) do |spec| diff --git a/rspec-meta.gemspec b/rspec-meta.gemspec index 4b04c33a..da3b4d4d 100644 --- a/rspec-meta.gemspec +++ b/rspec-meta.gemspec @@ -29,8 +29,14 @@ Gem::Specification.new do |s| s.specification_version = 3 if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then + s.add_runtime_dependency(%q, ["= 0.0.0"]) + s.add_runtime_dependency(%q, ["= 0.0.0"]) else + s.add_dependency(%q, ["= 0.0.0"]) + s.add_dependency(%q, ["= 0.0.0"]) end else + s.add_dependency(%q, ["= 0.0.0"]) + s.add_dependency(%q, ["= 0.0.0"]) end end