lib/boson/runners/console_runner.rb in boson-0.2.5 vs lib/boson/runners/console_runner.rb in boson-0.3.0

- old
+ new

@@ -22,13 +22,19 @@ def bin_start(repl, libraries) start :no_defaults=>true, :libraries=>libraries repl = Boson.repo.config[:console] if Boson.repo.config[:console] repl = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb' unless repl.is_a?(String) unless repl.index('/') == 0 || (repl = Util.which(repl)) - $stderr.puts "Console not found. Please specify full path in config[:console]." - return + abort "Console not found. Please specify full path in config[:console]." + else + load_repl(repl) end + end + + def load_repl(repl) #:nodoc: ARGV.replace ['-f'] + $progname = $0 + alias $0 $progname Kernel.load $0 = repl end def init #:nodoc: super \ No newline at end of file