Sha256: f8d5cacaaaeefef6a7e5273252bfaf2992ac850be9ddaeb2355ce34de1a9135e

Contents?: true

Size: 765 Bytes

Versions: 3

Compression:

Stored size: 765 Bytes

Contents

#!/usr/bin/env ruby -wKU
require 'yaml'

version_hash = YAML.load_file(File.join(File.dirname(__FILE__), %w(.. VERSION.yml)))
version = [version_hash[:major].to_s, version_hash[:minor].to_s, version_hash[:patch].to_s].join(".")
df_file = File.join(File.dirname(__FILE__), %w(.. lib data_frame))

irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'

require 'optparse'
options = { :irb => irb, :without_stored_procedures => false }
OptionParser.new do |opt|
  opt.banner = "Usage: console [environment] [options]"
  opt.on("--irb=[#{irb}]", 'Invoke a different irb.') { |v| options[:irb] = v }
  opt.parse!(ARGV)
end

libs =  " -r irb/completion -r #{df_file}"

puts "Loading Data Frame version: #{version}"

exec "#{options[:irb]} #{libs} --simple-prompt"

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
davidrichards-data_frame-0.0.19 bin/plain_frame
davidrichards-data_frame-0.0.20 bin/plain_frame
data_frame-0.1.8 bin/plain_frame