Skip to content

Instantly share code, notes, and snippets.

@rebelwarrior
Created April 12, 2014 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rebelwarrior/10514869 to your computer and use it in GitHub Desktop.
Save rebelwarrior/10514869 to your computer and use it in GitHub Desktop.
jgem
#!/Users/username/.rvm/rubies/jruby-1.7.11/bin/jruby
#--
# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
# All rights reserved.
# See LICENSE.txt for permissions.
#++
require 'rubygems'
require 'rubygems/gem_runner'
require 'rubygems/exceptions'
required_version = Gem::Requirement.new ">= 1.8.7"
unless required_version.satisfied_by? Gem.ruby_version then
abort "Expected Ruby Version #{required_version}, is #{Gem.ruby_version}"
end
args = ARGV.clone
begin
Gem::GemRunner.new.run args
rescue Gem::SystemExitException => e
exit e.exit_code
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment