Permalink
Browse files

Handle url and descriptions from campfire

Campfire API seems to send url and description with some sounds
now leading to messages like

2013-03-07 23:51:28 48012  WARN CamperVan : WARNING: Could not set attribute 'url' to value 'https://123.campfirenow.com/sounds/crickets.mp3' on Firering::Message object. It is likely the Campfire API has changed. Please report this! (https://github.com/EmmanuelOga/firering/issues)
2013-03-07 23:51:28 48012  WARN CamperVan : WARNING: Could not set attribute 'description' to value 'hears crickets chirping' on Firering::Message object. It is likely the Campfire API has changed. Please report this! (https://github.com/EmmanuelOga/firering/issues)

This should fix
  • Loading branch information...
1 parent cf1a069 commit ee96bf8554aec0e9f688f93f373c473fa9418a5f @katzj committed Mar 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/firering/data/message.rb
@@ -1,5 +1,5 @@
module Firering
- Message = Struct.new(:connection, :id, :room_id, :user_id, :body, :created_at, :type, :starred, :tweet)
+ Message = Struct.new(:connection, :id, :room_id, :user_id, :body, :created_at, :type, :starred, :tweet, :url, :description)
class Message
extend Instantiator

0 comments on commit ee96bf8

Please sign in to comment.