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