Skip to content

Commit

Permalink
Make gem list -i return only exact matches
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaland committed Aug 1, 2008
1 parent 671cbfa commit 98f817a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rubygems/commands/query_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ def execute
# Check if gem +name+ version +version+ is installed.

def installed?(name, version = Gem::Requirement.default)
dep = Gem::Dependency.new name, version
!Gem.source_index.search(dep).empty?
!Gem.source_index.find_name(name, version).empty?
end

def output_query_results(spec_tuples)
Expand Down

0 comments on commit 98f817a

Please sign in to comment.