couchrest_model/Rakefile

69 lines
2.2 KiB
Text
Raw Normal View History

2008-06-20 20:54:25 +02:00
require 'rake'
2008-09-12 07:21:16 +02:00
require "rake/rdoctask"
2010-05-11 15:37:50 +02:00
require File.join(File.expand_path(File.dirname(__FILE__)),'lib','couchrest_extended_document')
2009-01-13 06:33:12 +01:00
begin
require 'spec/rake/spectask'
rescue LoadError
puts <<-EOS
To use rspec for testing you must install rspec gem:
gem install rspec
EOS
exit(0)
end
2010-01-14 00:33:23 +01:00
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
2010-06-11 02:02:22 +02:00
gemspec.name = "couchrest_extended_document"
gemspec.summary = "Extend CouchRest Document class with useful features."
gemspec.description = "CouchRest::ExtendedDocument provides aditional features to the standard CouchRest::Document class such as properties, view designs, callbacks, typecasting and validations."
2010-01-14 00:33:23 +01:00
gemspec.email = "jchris@apache.org"
2010-06-11 02:02:22 +02:00
gemspec.homepage = "http://github.com/couchrest/couchrest_extended_document"
gemspec.authors = ["J. Chris Anderson", "Matt Aimonetti", "Marcos Tapajos", "Will Leinweber"]
2010-01-14 00:33:23 +01:00
gemspec.extra_rdoc_files = %w( README.md LICENSE THANKS.md )
2010-03-31 02:25:23 +02:00
gemspec.files = %w( LICENSE README.md Rakefile THANKS.md history.txt couchrest.gemspec) + Dir["{examples,lib,spec,utils}/**/*"] - Dir["spec/tmp"]
2010-01-14 00:33:23 +01:00
gemspec.has_rdoc = true
2010-06-11 02:02:22 +02:00
gemspec.add_dependency("couchrest", ">= 1.0.0.beta")
2010-01-14 00:33:23 +01:00
gemspec.add_dependency("mime-types", ">= 1.15")
gemspec.add_dependency("activesupport", ">= 2.3.0")
gemspec.version = CouchRest::ExtendedDocument::VERSION
2010-01-14 00:33:23 +01:00
gemspec.date = "2008-11-22"
gemspec.require_path = "lib"
2008-09-12 21:45:21 +02:00
end
2010-01-14 00:33:23 +01:00
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
end
2008-06-20 20:54:25 +02:00
desc "Run all specs"
Spec::Rake::SpecTask.new('spec') do |t|
2009-08-06 21:57:47 +02:00
t.spec_opts = ["--color"]
2008-10-06 21:27:01 +02:00
t.spec_files = FileList['spec/**/*_spec.rb']
2008-06-20 20:54:25 +02:00
end
desc "Print specdocs"
Spec::Rake::SpecTask.new(:doc) do |t|
2008-09-30 06:08:52 +02:00
t.spec_opts = ["--format", "specdoc"]
2008-06-20 20:54:25 +02:00
t.spec_files = FileList['spec/*_spec.rb']
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")
Rake.remove_task("release")