2024-11-23 03:22:33 +00:00
|
|
|
require "bundler/gem_tasks"
|
2024-11-23 04:12:14 +00:00
|
|
|
require "rake/testtask"
|
|
|
|
|
|
|
|
task :default => :test
|
2024-11-23 03:22:33 +00:00
|
|
|
|
2024-11-23 04:12:14 +00:00
|
|
|
Rake::TestTask.new(:test) do |t|
|
|
|
|
t.libs << 'lib'
|
|
|
|
t.libs << 'test'
|
|
|
|
t.pattern = 'test/**/*_test.rb'
|
|
|
|
t.verbose = false
|
|
|
|
end
|
2024-11-23 03:22:33 +00:00
|
|
|
|
2024-11-23 04:12:14 +00:00
|
|
|
desc "Open a Pry console for this library"
|
|
|
|
task :console do
|
|
|
|
require "pry"
|
|
|
|
require "autodiscover"
|
|
|
|
ARGV.clear
|
|
|
|
Pry.start
|
|
|
|
end
|