-
-
Notifications
You must be signed in to change notification settings - Fork 356
/
Rakefile
34 lines (29 loc) · 882 Bytes
/
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
require "rubygems"
require "bundler/setup"
Bundler::GemHelper.install_tasks
require "rake/testtask"
# Run the test with "rake" or "rake test"
desc "Default: run acts_as_list unit tests."
task default: :test
desc "Test the acts_as_list plugin."
Rake::TestTask.new(:test) do |t|
t.libs << "test" << "."
t.test_files = Rake::FileList["test/**/test_*.rb"]
t.verbose = false
end
begin
# Run the rdoc task to generate rdocs for this gem
require "rdoc/task"
RDoc::Task.new do |rdoc|
require "acts_as_list/version"
version = ActiveRecord::Acts::List::VERSION
rdoc.rdoc_dir = "rdoc"
rdoc.title = "acts_as_list #{version}"
rdoc.rdoc_files.include("README*")
rdoc.rdoc_files.include("lib/**/*.rb")
end
rescue LoadError
puts "RDocTask is not supported on this platform."
rescue StandardError
puts "RDocTask is not supported on this platform."
end