[Rubygems-developers] [ rubygems-Bugs-28024 ] plugins: can't bind as string (for better or worse).

noreply at rubyforge.org noreply at rubyforge.org
Wed Apr 21 00:22:21 EDT 2010


Bugs item #28024, was opened at 2010-03-29 13:07
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=28024&group_id=126

>Category: `gem` commands (other)
>Group: v1.3.x
>Status: Closed
>Resolution: Rejected
Priority: 3
Submitted By: Roger Pack (rogerdpack)
>Assigned to: Eric Hodel (drbrain)
Summary: plugins: can't bind as string (for better or worse).

Initial Comment:
If I call

Gem::CommandManager.instance.register_command 'git_install'

I get this:

ERROR:  While executing gem ... (NoMethodError)
    undefined method `summary' for nil:NilClass
        C:/Ruby19/lib/ruby/site_ruby/1.9.1/rubygems/commands/help_command.rb:122:in `block in execute'
        C:/Ruby19/lib/ruby/site_ruby/1.9.1/rubygems/commands/help_command.rb:120:in `each'
        C:/Ruby19/lib/ruby/site_ruby/1.9.1/rubygems/commands/help_command.rb:120:in `execute'
        C:/Ruby19/lib/ruby/site_ruby/1.9.1/rubygems/command.rb:258:in `invoke'
        C:/Ruby19/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:134:in `process_args'
        C:/Ruby19/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:104:in `run'
        C:/Ruby19/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:58:in `run'
        C:/Ruby19/bin/gem:21:in `<main>'

however with a symbol it works great.
Thanks!
-rp

----------------------------------------------------------------------

>Comment By: Eric Hodel (drbrain)
Date: 2010-04-20 21:22

Message:
Use a Symbol

I've updated the documentation.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=28024&group_id=126


More information about the Rubygems-developers mailing list