lib/rib/runner.rb in rib-1.0.0 vs lib/rib/runner.rb in rib-1.0.1
- old
+ new
@@ -79,10 +79,10 @@
def parse argv
unused = []
until argv.empty?
case arg = argv.shift
when /^-e=?(.+)?/, /^--eval=?(.+)?/
- eval($1 || argv.shift, binding, __FILE__, __LINE__)
+ eval($1 || argv.shift, TOPLEVEL_BINDING, __FILE__, __LINE__)
when /^-d/, '--debug'
$DEBUG = true
argv.unshift("-#{arg[2..-1]}") if arg.size > 2