kindling 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/kindling.gemspec +1 -1
- data/lib/kindling/request.rb +2 -2
- metadata +1 -1
data/kindling.gemspec
CHANGED
data/lib/kindling/request.rb
CHANGED
@@ -22,8 +22,8 @@ class Kindling::Request
|
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
|
-
def self.speak(message, campfire, room_id)
|
26
|
-
response = post(room_url(campfire, room_id), :body => {:message => {:body => message, :type =>
|
25
|
+
def self.speak(message, campfire, room_id, type="Textmessage")
|
26
|
+
response = post(room_url(campfire, room_id), :body => {:message => {:body => message, :type => type}}.to_json, :basic_auth => campfire.credentials)
|
27
27
|
case response.code
|
28
28
|
when 404
|
29
29
|
raise Kindling::InvalidRoomID.new(room_id)
|