Skip to content


Subversion checkout URL

You can clone with
Download ZIP


NameError when running example bot #2

jamesgecko opened this Issue · 2 comments

2 participants


When I try to run the sample bot code listing in the readme file, I get the following error message:

$ ruby main.rb 
/var/lib/gems/1.9.1/gems/summer-0.0.0/lib/summer.rb:34:in `load_config': uninitialized constant Summer::Connection::HashWithIndifferentAccess (NameError)
    from /var/lib/gems/1.9.1/gems/summer-0.0.0/lib/summer.rb:20:in `initialize'
    from main.rb:8:in `new'
    from main.rb:8:in `<main>'

Hey James, thanks for pointing this out. I've just pushed Summer 1.0 (since for me it's been stable for a while), so please do try that out now and report back if that solves your issue.


That fixed it! Thanks.

The program did crash again with the following error, but adding a startup! function to the sample program fixed that.

/var/lib/gems/1.9.1/gems/summer-1.0.0/lib/summer.rb:48:in `startup!': undefined method `<<' for nil:NilClass (NoMethodError)
    from /var/lib/gems/1.9.1/gems/summer-1.0.0/lib/summer.rb:26:in `block in initialize'
    from /var/lib/gems/1.9.1/gems/summer-1.0.0/lib/summer.rb:25:in `loop'
    from /var/lib/gems/1.9.1/gems/summer-1.0.0/lib/summer.rb:25:in `initialize'
    from main.rb:8:in `new'
    from main.rb:8:in `<main>'
@jorgenpt jorgenpt referenced this issue from a commit in jorgenpt/summer
@jorgenpt jorgenpt Don't NoMethodError if there's no "channels".
This fixes a NME if there wasn't a "channels" entry in config.yml. It also fixes
a nil entry appearing in @config[:channels] if you don't specify the "channel"
entry in config.yml.

Fixes GH-2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.