mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Revert r35370 due to bad source branch
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
02dc9ae773
commit
0ebe38eedd
36 changed files with 153 additions and 1062 deletions
|
@ -62,25 +62,7 @@ FIELD name of gemspec field to show
|
|||
"Please specify a gem name or file on the command line"
|
||||
end
|
||||
|
||||
case options[:version]
|
||||
when String
|
||||
req = Gem::Requirement.parse options[:version]
|
||||
when Gem::Requirement
|
||||
req = options[:version]
|
||||
else
|
||||
raise Gem::CommandLineError, "Unsupported version type: #{options[:version]}"
|
||||
end
|
||||
|
||||
if !req.none? and options[:all]
|
||||
alert_error "Specify --all or -v, not both"
|
||||
terminate_interaction 1
|
||||
end
|
||||
|
||||
if options[:all]
|
||||
dep = Gem::Dependency.new gem
|
||||
else
|
||||
dep = Gem::Dependency.new gem, options[:version]
|
||||
end
|
||||
dep = Gem::Dependency.new gem, options[:version]
|
||||
|
||||
field = get_one_optional_argument
|
||||
|
||||
|
@ -98,11 +80,7 @@ FIELD name of gemspec field to show
|
|||
end
|
||||
|
||||
if remote? then
|
||||
found = Gem::SpecFetcher.fetcher.fetch dep, true
|
||||
|
||||
if dep.prerelease? or options[:prerelease]
|
||||
found += Gem::SpecFetcher.fetcher.fetch dep, false, true, true
|
||||
end
|
||||
found = Gem::SpecFetcher.fetcher.fetch dep
|
||||
|
||||
specs.push(*found.map { |spec,| spec })
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue