couchrest_model/Rakefile

38 lines
881 B
Ruby
Raw Permalink Normal View History

2011-01-17 15:42:05 +01:00
require 'rubygems'
2011-01-17 01:43:07 +01:00
require 'bundler'
2011-05-16 10:50:22 +02:00
require 'rspec/core/rake_task'
2008-09-12 07:21:16 +02:00
require "rake/rdoctask"
2011-01-17 15:42:05 +01:00
2011-05-16 10:50:22 +02:00
Bundler::GemHelper.install_tasks
2008-06-20 20:54:25 +02:00
desc "Run all specs"
2011-05-16 10:50:22 +02:00
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.rspec_opts = ["--color"]
spec.pattern = 'spec/**/*_spec.rb'
2008-06-20 20:54:25 +02:00
end
desc "Print specdocs"
2011-05-16 10:50:22 +02:00
RSpec::Core::RakeTask.new(:doc) do |spec|
spec.rspec_opts = ["--format", "specdoc"]
spec.pattern = 'spec/*_spec.rb'
2008-06-20 20:54:25 +02:00
end
2008-09-12 07:21:16 +02:00
desc "Generate the rdoc"
Rake::RDocTask.new do |rdoc|
files = ["README.rdoc", "LICENSE", "lib/**/*.rb"]
rdoc.rdoc_files.add(files)
rdoc.main = "README.rdoc"
rdoc.title = "CouchRest: Ruby CouchDB, close to the metal"
end
2008-10-15 00:39:40 +02:00
desc "Run the rspec"
2008-06-21 00:06:11 +02:00
task :default => :spec
2010-01-14 12:56:28 +01:00
module Rake
def self.remove_task(task_name)
Rake.application.instance_variable_get('@tasks').delete(task_name.to_s)
end
end
Rake.remove_task("github:release")
2011-05-16 10:50:22 +02:00
Rake.remove_task("release")