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.
This commit is contained in:
parent
1d0df87e34
commit
3fb14782a2
14
Rakefile
14
Rakefile
|
@ -1,9 +1,6 @@
|
||||||
require 'rake'
|
require 'rake'
|
||||||
require "rake/rdoctask"
|
require "rake/rdoctask"
|
||||||
|
|
||||||
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
|
|
||||||
require 'couchrest_model'
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
require 'rspec'
|
require 'rspec'
|
||||||
require 'rspec/core/rake_task'
|
require 'rspec/core/rake_task'
|
||||||
|
@ -29,11 +26,10 @@ begin
|
||||||
gemspec.has_rdoc = true
|
gemspec.has_rdoc = true
|
||||||
gemspec.add_dependency("couchrest", "~> 1.0.1")
|
gemspec.add_dependency("couchrest", "~> 1.0.1")
|
||||||
gemspec.add_dependency("mime-types", "~> 1.15")
|
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("tzinfo", "~> 0.3.22")
|
||||||
gemspec.add_dependency('railties', "~> 3.0.0.rc")
|
gemspec.add_dependency('railties', "~> 3.0.0")
|
||||||
gemspec.add_development_dependency('rspec', '~> 2.0.0.beta.19')
|
gemspec.add_development_dependency('rspec', '>= 2.0.0')
|
||||||
gemspec.version = CouchRest::Model::VERSION
|
|
||||||
gemspec.date = Time.now.strftime("%Y-%m-%d")
|
gemspec.date = Time.now.strftime("%Y-%m-%d")
|
||||||
gemspec.require_path = "lib"
|
gemspec.require_path = "lib"
|
||||||
end
|
end
|
||||||
|
@ -43,13 +39,13 @@ end
|
||||||
|
|
||||||
desc "Run all specs"
|
desc "Run all specs"
|
||||||
Rspec::Core::RakeTask.new(:spec) do |spec|
|
Rspec::Core::RakeTask.new(:spec) do |spec|
|
||||||
spec.spec_opts = ["--color"]
|
spec.rspec_opts = ["--color"]
|
||||||
spec.pattern = 'spec/**/*_spec.rb'
|
spec.pattern = 'spec/**/*_spec.rb'
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Print specdocs"
|
desc "Print specdocs"
|
||||||
Rspec::Core::RakeTask.new(:doc) do |spec|
|
Rspec::Core::RakeTask.new(:doc) do |spec|
|
||||||
spec.spec_opts = ["--format", "specdoc"]
|
spec.rspec_opts = ["--format", "specdoc"]
|
||||||
spec.pattern = 'spec/*_spec.rb'
|
spec.pattern = 'spec/*_spec.rb'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue