From 3fb14782a205360cabe30e7ec43a4418cf28c7e5 Mon Sep 17 00:00:00 2001 From: Matt Parker Date: Sun, 16 Jan 2011 13:30:43 -0500 Subject: [PATCH] Updated Rakefile to make it possible to cleanly install the gem with jeweler's "rake install": -- rspec 2.0.0 or greater now required (no one should be using the beta release anymore) -- activemodel and railties ~> 3.0.0 (no one should be using the beta releases anymore) -- remove 'require "couchrest_model"' dependency: -- version now read from jeweler default VERSION file. -- removing this requirement allows you to now run "rake install", to actually test out if the gem installs cleanly locally before doing any kind of push. --- Rakefile | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Rakefile b/Rakefile index 3d5b68f..e37ba47 100644 --- a/Rakefile +++ b/Rakefile @@ -1,9 +1,6 @@ require 'rake' require "rake/rdoctask" - -$LOAD_PATH.unshift File.expand_path("../lib", __FILE__) -require 'couchrest_model' - + begin require 'rspec' require 'rspec/core/rake_task' @@ -29,11 +26,10 @@ begin gemspec.has_rdoc = true gemspec.add_dependency("couchrest", "~> 1.0.1") gemspec.add_dependency("mime-types", "~> 1.15") - gemspec.add_dependency("activemodel", "~> 3.0.0.rc") + gemspec.add_dependency("activemodel", "~> 3.0.0") gemspec.add_dependency("tzinfo", "~> 0.3.22") - gemspec.add_dependency('railties', "~> 3.0.0.rc") - gemspec.add_development_dependency('rspec', '~> 2.0.0.beta.19') - gemspec.version = CouchRest::Model::VERSION + gemspec.add_dependency('railties', "~> 3.0.0") + gemspec.add_development_dependency('rspec', '>= 2.0.0') gemspec.date = Time.now.strftime("%Y-%m-%d") gemspec.require_path = "lib" end @@ -43,13 +39,13 @@ end desc "Run all specs" Rspec::Core::RakeTask.new(:spec) do |spec| - spec.spec_opts = ["--color"] + spec.rspec_opts = ["--color"] spec.pattern = 'spec/**/*_spec.rb' end desc "Print specdocs" Rspec::Core::RakeTask.new(:doc) do |spec| - spec.spec_opts = ["--format", "specdoc"] + spec.rspec_opts = ["--format", "specdoc"] spec.pattern = 'spec/*_spec.rb' end