collectiveidea / tinder

Tinder is a Ruby API for interfacing with Campfire, the 37Signals chat application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

find_room_by_name seems not to work

mpdehaan opened this issue · comments

after a successful login from irb (.login returns true), I am getting the following. This room name is correct and the room currently exists. (It is a private room in my subdomain).

irb(main):011:0> room = campfire.find_room_by_name 'Puppet Labs'
NoMethodError: undefined method map' for nil:NilClass from /var/lib/gems/1.8/gems/tinder-1.3.1/lib/tinder/campfire.rb:62:inrooms'
from /var/lib/gems/1.8/gems/tinder-1.3.1/lib/tinder/campfire.rb:69:in find_room_by_name' from (irb):11 from �:0 irb(main):012:0> campfire.find_room_by_name("Puppet Labs") NoMethodError: undefined methodmap' for nil:NilClass
from /var/lib/gems/1.8/gems/tinder-1.3.1/lib/tinder/campfire.rb:62:in rooms' from /var/lib/gems/1.8/gems/tinder-1.3.1/lib/tinder/campfire.rb:69:infind_room_by_name'
from (irb):12
from �:0
irb(main):013:0> campfire.find_room_by_name("PuppetLabs")
NoMethodError: undefined method map' for nil:NilClass from /var/lib/gems/1.8/gems/tinder-1.3.1/lib/tinder/campfire.rb:62:inrooms'
from /var/lib/gems/1.8/gems/tinder-1.3.1/lib/tinder/campfire.rb:69:in find_room_by_name' from (irb):13 from �:0 irb(main):014:0> room = campfire.find_room_by_name("Puppet Labs") NoMethodError: undefined methodmap' for nil:NilClass
from /var/lib/gems/1.8/gems/tinder-1.3.1/lib/tinder/campfire.rb:62:in rooms' from /var/lib/gems/1.8/gems/tinder-1.3.1/lib/tinder/campfire.rb:69:infind_room_by_name'
from (irb):14
from �:0

Any ideas? Thanks!

This is a duplicate of issue #3. It is fixed in trunk.