Rakefile in squib-0.4.0 vs Rakefile in squib-0.5.0
- old
+ new
@@ -9,9 +9,10 @@
# 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
+ args[:file] << ".rb" unless args[:file].end_with? '.rb'
puts "Running samples/#{args[:file]}"
load args[:file]
end
end