Permalink
Browse files

Work with updated Campfire API

  • Loading branch information...
1 parent d16b3ea commit 6d4823c7a2d21c3866b88721d91c3cd6c8bd0aeb @hpoydar hpoydar committed with defunkt Jun 4, 2010
Showing with 5 additions and 5 deletions.
  1. +1 −1 deps.rip
  2. +4 −4 lib/cijoe/campfire.rb
View
2 deps.rip
@@ -1,4 +1,4 @@
-git://github.com/collectiveidea/tinder.git 1.2.0
+git://github.com/collectiveidea/tinder.git 1.4.0
git://github.com/sinatra/sinatra.git 0.9.4
git://github.com/rack/rack.git 1.0
git://github.com/defunkt/choice.git 8b125564
View
8 lib/cijoe/campfire.rb
@@ -47,10 +47,10 @@ def notify
def room
@room ||= begin
config = Campfire.config
- options = {}
- options[:ssl] = config[:ssl] ? true : false
- campfire = Tinder::Campfire.new(config[:subdomain], options)
- campfire.login(config[:user], config[:pass])
+ campfire = Tinder::Campfire.new(config[:subdomain],
+ :username => config[:user],
+ :password => config[:pass],
+ :ssl => config[:ssl] || false)
campfire.find_room_by_name(config[:room])
end
end

0 comments on commit 6d4823c

Please sign in to comment.