forked from brendon/acts_as_list
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
35 lines (29 loc) · 867 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 'bundler'
Bundler::GemHelper.install_tasks
#require 'rake'
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 << 'lib' << 'test'
t.pattern = '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-rails3 #{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