Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (42 sloc) 1.21 KB
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "active_document"
s.summary = %Q{Schemaless models in Berkeley DB}
s.email = "code@justinbalthrop.com"
s.homepage = "http://github.com/ninjudd/active_document"
s.description = "Schemaless models in Berkeley DB."
s.authors = ["Justin Balthrop"]
s.add_dependency('bdb', '>= 0.1.0')
s.add_dependency('tuple', '>= 0.1.1')
s.add_dependency('activesupport', '>= 2.0.0')
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end
Rake::TestTask.new do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
t.verbose = false
end
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'active_document'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |t|
t.libs << 'test'
t.test_files = FileList['test/**/*_test.rb']
t.verbose = true
end
rescue LoadError
end
task :default => :test