Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

`guard show` fails on 1.8.7 #259

Closed
jfirebaugh opened this Issue Mar 10, 2012 · 1 comment

Comments

Projects
None yet
2 participants

1.8.7's Hash#sort fails if the keys are symbols. So if any guards have options, guard show will fail:

$ guard show
Group specs:
/Users/john/.rvm/gems/ruby-1.8.7-p358/gems/guard-1.0.1/lib/guard/dsl_describer.rb:94:in `<=>': undefined method `<=>' for :rvm:Symbol (NoMethodError)
    from /Users/john/.rvm/gems/ruby-1.8.7-p358/gems/guard-1.0.1/lib/guard/dsl_describer.rb:94:in `sort'
    from /Users/john/.rvm/gems/ruby-1.8.7-p358/gems/guard-1.0.1/lib/guard/dsl_describer.rb:94:in `show'
    from /Users/john/.rvm/gems/ruby-1.8.7-p358/gems/guard-1.0.1/lib/guard/dsl_describer.rb:90:in `each'
    from /Users/john/.rvm/gems/ruby-1.8.7-p358/gems/guard-1.0.1/lib/guard/dsl_describer.rb:90:in `show'
    from /Users/john/.rvm/gems/ruby-1.8.7-p358/gems/guard-1.0.1/lib/guard/dsl_describer.rb:82:in `each'
    from /Users/john/.rvm/gems/ruby-1.8.7-p358/gems/guard-1.0.1/lib/guard/dsl_describer.rb:82:in `show'
    from /Users/john/.rvm/gems/ruby-1.8.7-p358/gems/guard-1.0.1/lib/guard/cli.rb:146:in `show'
    from /Users/john/.rvm/gems/ruby-1.8.7-p358/gems/thor-0.14.6/lib/thor/task.rb:22:in `send'
    from /Users/john/.rvm/gems/ruby-1.8.7-p358/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
    from /Users/john/.rvm/gems/ruby-1.8.7-p358/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
    from /Users/john/.rvm/gems/ruby-1.8.7-p358/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
    from /Users/john/.rvm/gems/ruby-1.8.7-p358/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
    from /Users/john/.rvm/gems/ruby-1.8.7-p358/gems/guard-1.0.1/bin/guard:6
    from /Users/john/.rvm/gems/ruby-1.8.7-p358/bin/guard:19:in `load'
    from /Users/john/.rvm/gems/ruby-1.8.7-p358/bin/guard:19

@netzpirat netzpirat closed this in 81788d8 Mar 10, 2012

Contributor

netzpirat commented Mar 10, 2012

Thanks for reporting!

rymai added a commit that referenced this issue Mar 10, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment