mirror of
https://github.com/PeterCamilleri/fOOrth
synced 2024-09-28 03:20:28 +02:00
Fixed the rake console command.
This commit is contained in:
parent
015d9f7ffa
commit
8929853099
2 changed files with 21 additions and 7 deletions
20
irbt.rb
Normal file
20
irbt.rb
Normal 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
|
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue