Created
April 12, 2014 02:03
-
-
Save rebelwarrior/10514869 to your computer and use it in GitHub Desktop.
jgem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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