Fetching contributors…
Cannot retrieve contributors at this time
55 lines (46 sloc) 1.47 KB
require 'rubygems'
require 'rake'
require 'jeweler'
require 'yard'
require 'yard/rake/yardoc_task'
Jeweler::Tasks.new do |gem|
gem.name = "djsun-mongo_mapper"
gem.summary = %(Model your domain, store it in MongoDB)
gem.email = "nunemaker@gmail.com"
gem.homepage = "http://github.com/jnunemaker/mongomapper"
gem.authors = ["John Nunemaker", "David James"]
gem.add_dependency('activesupport', '>= 2.3')
gem.add_dependency('mongo', '>= 0.16')
gem.add_dependency('jnunemaker-validatable', '>= 1.8.1')
gem.add_development_dependency('jnunemaker-matchy', '>= 0.4.0')
gem.add_development_dependency('shoulda', '>= 2.10.2')
gem.add_development_dependency('timecop', '>= 0.3.2')
gem.add_development_dependency('mocha', '>= 0.9.8')
end
Jeweler::GemcutterTasks.new
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'test'
test.ruby_opts << '-rubygems'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
namespace :test do
Rake::TestTask.new(:units) do |test|
test.libs << 'test'
test.ruby_opts << '-rubygems'
test.pattern = 'test/unit/**/test_*.rb'
test.verbose = true
end
Rake::TestTask.new(:functionals) do |test|
test.libs << 'test'
test.ruby_opts << '-rubygems'
test.pattern = 'test/functional/**/test_*.rb'
test.verbose = true
end
end
task :default => :test
task :test => :check_dependencies
YARD::Rake::YardocTask.new(:doc) do |t|
t.options = ["--legacy"]
end