Parent

Methods

GemInstaller::ExactMatchListCommand

Public Instance Methods

execute() click to toggle source
    # File lib/geminstaller/exact_match_list_command.rb, line 3
 3:     def execute
 4:       string = get_one_optional_argument || ''
 5:       # This overrides the default RubyGems ListCommand behavior of doing a wildcard match.  This caused problems
 6:       # when some gems (ActiveRecord-JDBC) caused exceptions during a remote list, causing a remote list
 7:       # of other gems (activerecord) to fail as well
 8:       options[:name] = /^#{string}$/
 9:       # Do a little metaprogramming magic to avoid calling the problematic execute method on the ListCommand
10:       # superclass, and instead directly call the method on the QueryCommand grandparent 'supersuperclass'
11:       unbound_execute_method = QUERY_COMMAND_CLASS.instance_method(:execute)
12:       bound_execute_method = unbound_execute_method.bind(self)
13:       bound_execute_method.call
14:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.