collectiveidea / tinder

Tinder is a Ruby API for interfacing with Campfire, the 37Signals chat application.
MIT License
255 stars 91 forks source link

New 37Signals authentication scheme has broken the gem #1

Closed nanobeep closed 14 years ago

nanobeep commented 14 years ago

Hi,

Thanks for this gem, it's great and we've been using it for quite a while. Unfortunately, 37Signals new auth system breaks the latest version of tinder.

Also, the gem is not erroring even though it can no longer log in. It will return true after you log in, but if you investigate what page hpricot is trying to use, it's a redirect-to-login page.

For more info on the change: http://37signals.com/accounts

Thanks, Matt

nanobeep commented 14 years ago

Btw, I first noticed this when the 'rooms' method started returning an empty array:

irb(main):001:0> require 'rubygems' => true

irb(main):002:0> require 'tinder' => true

irb(main):003:0> @campfire = Tinder::Campfire.new('chowbaby') => #<Tinder::Campfire:0x176b230 @logged_in=false, @uri=#<URI::HTTP:0xbb5846 URL:http://chowbaby.campfirenow.com>, @http=Net::HTTP, @subdomain="chowbaby", @cookie=nil>

irb(main):004:0> @campfire.login 'myuser', 'mypass' => true

irb(main):005:0> @campfire.rooms => []

timcharper commented 14 years ago

I see that the gemspec has been updated. Are you going to deploy it to gemcutter soon?

timcharper commented 14 years ago

es de... como es?

sorry, I had a forked 2.0.0 version install which prevented me from upgrading to 1.3.1. I got it :)

matsimitsu commented 14 years ago

a "quick" fix should be that you use the api key in your campfire account screen as username and a random string (for example 'x') as password. you will get the rooms then, but the room.listen functionality doesn't work.

bkeepers commented 14 years ago

Everything should be working with the latest master. I'll be releasing a new gem soon.