mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to RubyGems 1.1.1 r1784 (pre 1.2)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4394ffe521
commit
08837d081d
10 changed files with 82 additions and 9 deletions
|
@ -43,14 +43,21 @@ class Gem::Commands::DependencyCommand < Gem::Command
|
|||
end
|
||||
|
||||
def execute
|
||||
options[:args] << '.' if options[:args].empty?
|
||||
options[:args] << '' if options[:args].empty?
|
||||
specs = {}
|
||||
|
||||
source_indexes = Hash.new do |h, source_uri|
|
||||
h[source_uri] = Gem::SourceIndex.new
|
||||
end
|
||||
|
||||
pattern = /\A#{Regexp.union(*options[:args])}/
|
||||
pattern = if options[:args].length == 1 and
|
||||
options[:args].first =~ /\A\/(.*)\/(i)?\z/m then
|
||||
flags = $2 ? Regexp::IGNORECASE : nil
|
||||
Regexp.new $1, flags
|
||||
else
|
||||
/\A#{Regexp.union(*options[:args])}/
|
||||
end
|
||||
|
||||
dependency = Gem::Dependency.new pattern, options[:version]
|
||||
|
||||
if options[:reverse_dependencies] and remote? and not local? then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue