forked from mongomapper/mongomapper
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
55 lines (46 loc) · 1.45 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
require 'rubygems'
require 'rake'
require 'jeweler'
require 'yard'
require 'yard/rake/yardoc_task'
Jeweler::Tasks.new do |gem|
gem.name = "mongo_mapper"
gem.summary = %Q{Awesome gem for modeling your domain and storing it in mongo}
gem.email = "[email protected]"
gem.homepage = "http://github.com/jnunemaker/mongomapper"
gem.authors = ["John Nunemaker"]
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.1')
gem.add_development_dependency('mocha', '0.9.4')
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