Sha256: 805cb6c1ccfe2c7675ea6579835975c6d10b57267925861d3ef81e5966d0bf49

Contents?: true

Size: 684 Bytes

Versions: 7

Compression:

Stored size: 684 Bytes

Contents

desc "Run an IRB session"
task :console do
  exec "irb -I lib -r irb/completion -r currency_cloud"
end

def play
  sleep 1
  puts "..."
  IRB.conf[:MAIN_CONTEXT].irb
  IRB.conf[:MAIN_CONTEXT].io.prompt = "HELLO"
end

desc "Run an IRB session in kiosk mode"
task :kiosk do
  Thread.abort_on_exception=true
  #exec "irb -I lib -r irb/completion -r currency_cloud -r currency_cloud/kiosk"
  require 'irb'
  IRB.setup nil
  IRB.conf[:MAIN_CONTEXT] = IRB::Irb.new.context
  require 'irb/ext/multi-irb'
  Thread.new { play }
  @irb = IRB.irb nil, self
end

desc "Test and build gem"
task :build do
  sh("rm -f currency_cloud*.gem")
  sh("rspec")
  sh("gem build currency_cloud.gemspec")
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
currency_cloud-0.9.0 Rakefile
currency_cloud-0.8.2 Rakefile
currency_cloud-0.8.0 Rakefile
currency_cloud-0.7.2 Rakefile
currency_cloud-0.7.1 Rakefile
currency_cloud-0.7 Rakefile
currency_cloud-0.5 Rakefile