module Boson class ReplRunner < Runner class <true, :libraries=>libraries repl = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb' unless repl.is_a?(String) unless repl.index('/') == 0 || (repl = Util.which(repl)) $stderr.puts "Repl not found. Please specify full path of repl." return end ARGV.replace ['-f'] Kernel.load $0 = repl end def default_libraries defaults = super unless @options[:no_defaults] new_defaults = Boson.repos.map {|e| e.config[:defaults] }.flatten new_defaults = detected_libraries if new_defaults.empty? defaults += new_defaults defaults.uniq! end defaults end end end end