Skip to content

Instantly share code, notes, and snippets.

@kungfumike
Created October 11, 2013 01:10
Show Gist options
  • Save kungfumike/6928141 to your computer and use it in GitHub Desktop.
Save kungfumike/6928141 to your computer and use it in GitHub Desktop.
mike@ehii:~$ /home/mike/.rubies/rbx-head/bin/rbx
irb(main):001:0> begin; require 'rubygems'; rescue LoadError; end
=> false
irb(main):002:0> puts "export RUBY_ENGINE=#{defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'};"
export RUBY_ENGINE=rbx;
=> nil
irb(main):003:0> puts "export RUBY_VERSION=#{RUBY_VERSION};"
export RUBY_VERSION=2.1.0;
=> nil
irb(main):004:0> puts "export GEM_ROOT=#{Gem.default_dir.inspect};" if defined?(Gem)
export GEM_ROOT="/home/mike/.rubies/rbx-head/gems";
=> nil
irb(main):005:0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment