bin/ratch in ratch-0.3.0 vs bin/ratch in ratch-0.4.0

- old
+ new

@@ -1,15 +1,15 @@ -#! /usr/bin/ruby1.8 +#! /usr/bin/env ruby if ARGV[0] == '-s' require 'ratch/manager' manager = Ratch::Manager.new file = ARGV[1] if file # run tool if tool = manager.tool?(file) - require 'ratch/batch' + require 'ratch/dsl' load(tool) else puts "no tool -- #{file}" end else @@ -17,10 +17,10 @@ end elsif ARGV.empty? # TODO read stdin for ratch script else - require 'ratch/batch' + require 'ratch/dsl' load($0 = ARGV.shift) end # module Ratch