Fixed the rake console command.

This commit is contained in:
Peter Camilleri 2016-05-03 18:16:17 -04:00
parent 015d9f7ffa
commit 8929853099
2 changed files with 21 additions and 7 deletions

20
irbt.rb Normal file
View file

@ -0,0 +1,20 @@
# coding: utf-8
# An IRB + fOOrth Test bed
require 'irb'
$force_alias_read_line_module = true
require 'mini_readline'
puts "Starting an IRB console with fOOrth loaded."
if ARGV[0] == 'local'
require_relative 'lib/fOOrth'
puts "fOOrth loaded locally: #{XfOOrth::VERSION}"
ARGV.shift
else
require 'fOOrth'
puts "fOOrth loaded from gem: #{XfOOrth::VERSION}"
end
IRB.start

View file

@ -45,13 +45,7 @@ end
desc "Fire up an IRB session with fOOrth preloaded."
task :console do
require 'irb'
$force_alias_read_line_module = true
require 'mini_readline'
require './lib/fOOrth'
puts "Starting an irbm console for fOOrth."
ARGV.clear
IRB.start
system "ruby irbt.rb local"
end
desc "Run an Interactive fOOrth Session."