forked from 12spokes/acts_as_restful_list
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
30 lines (23 loc) · 695 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
require "bundler"
Bundler.setup
Bundler::GemHelper.install_tasks
require 'rake'
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
RSpec::Core::RakeTask.new(:rcov) do |spec|
spec.rcov = true
end
# Run the specs & cukes
task :default do
# Force spec files to be loaded and ran in alphabetical order.
specs_unit = Dir['spec/**/*_spec.rb'].sort.join(' ')
exec "bundle exec rspec #{specs_unit}"
end
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "acts_as_restful_list #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end