mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to RubyGems 1.3.1 r1909.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
17358af75b
commit
b61d8b6045
75 changed files with 424 additions and 404 deletions
|
|
@ -31,7 +31,8 @@ class Gem::Commands::CheckCommand < Gem::Command
|
|||
def execute
|
||||
if options[:test]
|
||||
version = options[:version] || Gem::Requirement.default
|
||||
gem_spec = Gem::SourceIndex.from_installed_gems.search(get_one_gem_name, version).first
|
||||
dep = Gem::Dependency.new get_one_gem_name, version
|
||||
gem_spec = Gem::SourceIndex.from_installed_gems.search(dep).first
|
||||
Gem::Validator.new.unit_test(gem_spec)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue