зеркало из https://github.com/github/ruby.git
Add forgotten bin/gem for RubyGems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
53d2cd2435
Коммит
fc69e47713
|
@ -1,3 +1,7 @@
|
|||
Sun Nov 11 05:34:13 2007 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* bin/gem: Add forgotten gem command.
|
||||
|
||||
Sat Nov 10 23:50:31 2007 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* string.c (tr_trans): cast to unsigned char after dereference
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
#!/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'
|
||||
|
||||
required_version = Gem::Requirement.new ">= 1.8.2"
|
||||
|
||||
unless required_version.satisfied_by? Gem::Version.new(RUBY_VERSION) then
|
||||
abort "Expected Ruby Version #{required_version}, was #{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("--")]
|
||||
|
||||
Gem::GemRunner.new.run args
|
||||
|
Загрузка…
Ссылка в новой задаче