ceiling_cat 0.0.6 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@ module CeilingCat
9
9
  end
10
10
 
11
11
  def campfire
12
- @campfire = Tinder::Campfire.new(self.config.username, :token => self.config.token, :ssl => self.config.ssl)
12
+ @campfire = Tinder::Campfire.new(self.config.subdomain, :token => self.config.token, :ssl => self.config.ssl)
13
13
  end
14
14
 
15
15
  def total_user_count
@@ -36,8 +36,8 @@ module CeilingCat
36
36
  end
37
37
  end
38
38
  rescue Faraday::Error::ParsingError
39
- puts "Error parsing response. Campfire may be down."
40
- break
39
+ puts "Error parsing response. Campfire may be down. Trying again."
40
+ retry
41
41
  rescue HTTP::Parser::Error
42
42
  puts "Trouble parsing the HTTP response."
43
43
  retry
@@ -1,3 +1,3 @@
1
1
  module CeilingCat
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -5,8 +5,8 @@ require 'ceiling_cat/plugins/greeter'
5
5
 
6
6
  CeilingCat::Setup.configure do |config|
7
7
  config.service = 'campfire'
8
- config.username = 'username'
9
- config.token = '12345abcde'
8
+ config.subdomain = 'username'
9
+ config.token = '12345abcde' # The API token of the account Ceiling Cat will use. Available at https://<subdomain>.campfirenow.com/member/edit
10
10
  config.room = 'Test Room'
11
11
  config.ssl = true
12
12
 
@@ -77,7 +77,7 @@ describe "#{name.camelize}" do
77
77
  FakeWeb.register_uri(:get, "https://\#{token}:X@\#{user}.campfirenow.com/rooms.json", :body => fixture('campfire/rooms.json'), :status => ["200"])
78
78
  FakeWeb.register_uri(:get, "https://\#{token}:X@\#{user}.campfirenow.com/users/me.json", :body => fixture('campfire/me.json'), :status => ["200"])
79
79
 
80
- @connection = CeilingCat::Campfire::Connection.new(OpenStruct.new({:service => 'campfire', :username => user, :token => token, :room => 'Room 1', :plugins => plugins}))
80
+ @connection = CeilingCat::Campfire::Connection.new(OpenStruct.new({:service => 'campfire', :subdomain => user, :token => token, :room => 'Room 1', :plugins => plugins}))
81
81
  @room = CeilingCat::Campfire::Room.new(:connection => @connection, :room_name => @connection.config.room)
82
82
  end
83
83
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ceiling_cat
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Warren