3 # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
5 # See LICENSE.txt for permissions.
9 require 'rubygems/gem_runner'
10 require 'rubygems/exceptions'
12 required_version
= Gem
::Requirement.new
"> 1.8.3"
14 unless required_version
.satisfied_by
? Gem
.ruby_version
then
15 abort
"Expected Ruby Version #{required_version}, was #{Gem.ruby_version}"
18 # We need to preserve the original ARGV to use for passing gem options
19 # to source gems. If there is a -- in the line, strip all options after
20 # it...its for the source building process.
21 args
= !ARGV.include?("--") ? ARGV.clone
: ARGV[0...ARGV.index("--")]
24 Gem
::GemRunner.new
.run args
25 rescue Gem
::SystemExitException => e