Sha256: 32d9a7d7ab738fffc6b83e30219840cb9d3ec456d35aa511c2862ae9858df837

Contents?: true

Size: 717 Bytes

Versions: 22

Compression:

Stored size: 717 Bytes

Contents

#!/usr/bin/env ruby

require 'rubytext'   # Remember: Specify STDOUT as needed!

path = RubyText::Path

cmd, arg = ARGV

case cmd
  when nil
    STDOUT.puts "Usage: rubytext [demo|slides]"
  when "demo"
    system("ruby #{path}/../examples/demo.rb #{arg}")
  when "slides"
    system("#{path}/../examples/slides")
  when "tutorial"
    system("open #{path}/../tutorial/tutorial.html")
  when "example"
    if arg.nil?
      list = Dir["#{path}/../examples/**"]
      list.map! {|x| File.basename(x).sub(/.rb$/, "") }
      list = list - %w[check demo duh fixme hmmm ide multitest README showme slides]
      puts list
    else
      system("cd #{path}/../examples; ruby showme.rb #{arg}.rb pause; cd -")
    end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rubytext-0.1.29 bin/rubytext
rubytext-0.1.28 bin/rubytext
rubytext-0.1.26 bin/rubytext
rubytext-0.1.25 bin/rubytext
rubytext-0.1.23 bin/rubytext
rubytext-0.1.22 bin/rubytext
rubytext-0.1.21 bin/rubytext
rubytext-0.1.20 bin/rubytext
rubytext-0.1.19 bin/rubytext
rubytext-0.1.18 bin/rubytext
rubytext-0.1.17 bin/rubytext
rubytext-0.1.16 bin/rubytext
rubytext-0.1.15 bin/rubytext
rubytext-0.1.14 bin/rubytext
rubytext-0.1.13 bin/rubytext
rubytext-0.1.12 bin/rubytext
rubytext-0.1.11 bin/rubytext
rubytext-0.1.10 bin/rubytext
rubytext-0.1.8 bin/rubytext
rubytext-0.1.7 bin/rubytext