diff options
Diffstat (limited to 'jni/ruby/bin/gem')
-rwxr-xr-x | jni/ruby/bin/gem | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/jni/ruby/bin/gem b/jni/ruby/bin/gem new file mode 100755 index 0000000..a4ec754 --- /dev/null +++ b/jni/ruby/bin/gem @@ -0,0 +1,25 @@ +#!/usr/bin/env ruby +#-- +# 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 + |