From b61d8b6045497a5b2185bf8cb61a381f179d3ecd Mon Sep 17 00:00:00 2001 From: drbrain Date: Sat, 25 Oct 2008 22:58:43 +0000 Subject: Update to RubyGems 1.3.1 r1909. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rubygems/commands/check_command.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/rubygems/commands/check_command.rb') diff --git a/lib/rubygems/commands/check_command.rb b/lib/rubygems/commands/check_command.rb index ca5e14b12d..17c2c8f9c7 100644 --- a/lib/rubygems/commands/check_command.rb +++ b/lib/rubygems/commands/check_command.rb @@ -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 -- cgit v1.2.3