kindling 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/kindling.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{kindling}
8
- s.version = "0.0.4"
8
+ s.version = "0.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Wal McConnell"]
@@ -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 => "Textmessage"}}.to_json, :basic_auth => campfire.credentials)
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kindling
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wal McConnell