Adding in a neat rake task for development

dev
Andy Meneely 2015-01-31 20:49:14 -05:00
parent b0b69186e7
commit f5e5b1326d
1 changed files with 11 additions and 0 deletions

View File

@ -5,6 +5,17 @@ require 'benchmark'
task default: [:install, :spec] task default: [:install, :spec]
# Useful for hooking up with SublimeText.
# e.g. rake sample[basic.rb]
task :run,[:file] => :install do |t, args|
args.with_defaults(file: 'basic.rb')
Dir.chdir('samples') do
puts "Running samples/#{args[:file]}"
load args[:file]
end
end
RSpec::Core::RakeTask.new(:spec) RSpec::Core::RakeTask.new(:spec)
task doc: [:yarddoc, :apply_google_analytics] task doc: [:yarddoc, :apply_google_analytics]