Add spec & help rules to Rakefile.
This commit is contained in:
parent
3ad741c96a
commit
1a5d96c250
1 changed files with 26 additions and 1 deletions
27
Rakefile
27
Rakefile
|
@ -1 +1,26 @@
|
|||
require "bundler/gem_tasks"
|
||||
|
||||
require 'rake'
|
||||
require 'rake/testtask'
|
||||
|
||||
Rake::TaskManager.record_task_metadata = true
|
||||
|
||||
require 'bundler/gem_tasks'
|
||||
|
||||
Rake::TestTask.new do |t|
|
||||
#t.warning = true
|
||||
t.verbose = true
|
||||
t.libs << "spec"
|
||||
t.test_files = FileList['spec/**/*_spec.rb']
|
||||
end
|
||||
|
||||
# Set default task to list all task
|
||||
desc 'Default task (build)'
|
||||
task :default do
|
||||
puts 'Usage : rake <taskname>'
|
||||
puts ''
|
||||
|
||||
Rake::application.options.show_tasks = :tasks # this solves sidewaysmilk problem
|
||||
Rake::application.options.show_task_pattern = //
|
||||
Rake::application.display_tasks_and_comments
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue