Browse Source

Adding in a neat rake task for development

dev
Andy Meneely 11 years ago
parent
commit
f5e5b1326d
  1. 11
      Rakefile

11
Rakefile

@ -5,6 +5,17 @@ require 'benchmark'
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)
task doc: [:yarddoc, :apply_google_analytics]

Loading…
Cancel
Save