summaryrefslogtreecommitdiff
path: root/bin/gem
diff options
context:
space:
mode:
-rwxr-xr-xbin/gem9
1 files changed, 3 insertions, 6 deletions
@@ -9,16 +9,13 @@ require 'rubygems'
require 'rubygems/gem_runner'
require 'rubygems/exceptions'
-required_version = Gem::Requirement.new "> 1.8.3"
unless required_version.satisfied_by? Gem.ruby_version then
- abort "Expected Ruby Version #{required_version}, was #{Gem.ruby_version}"
end
-# We need to preserve the original ARGV to use for passing gem options
-# to source gems. If there is a -- in the line, strip all options after
-# it...its for the source building process.
-args = !ARGV.include?("--") ? ARGV.clone : ARGV[0...ARGV.index("--")]
begin
Gem::GemRunner.new.run args