sparks 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Sparks changelog
2
2
 
3
+ ## Version 0.3 (7 October 2011)
4
+
5
+ - added support for play and tweet message types (@imajes)
6
+
3
7
  ## Version 0.2 (29 April 2011)
4
8
 
5
9
  - I give up. Add the CA certs needed to verify Campfire's SSL cert.
@@ -8,7 +12,6 @@
8
12
 
9
13
  - Add :ca_file option to Sparks::Campfire.new (@bleything)
10
14
 
11
-
12
15
  ## Version 0.1 (18 March 2011)
13
16
 
14
17
  - Initial release, basic Campfire API
data/README.md CHANGED
@@ -6,3 +6,12 @@ So it turns out that Tinder requires nine gems nowadays, including EventMachine
6
6
  ### Known Issues
7
7
 
8
8
  The `watch` method tends to succumb to network issues after a few hours, and is probably not suitable for building a long-running bot that listens to a room. This library is fantastic for anything that says things into a room based on other ruby code, though.
9
+
10
+ ### Contributors
11
+
12
+ Ben Bleything (@bleything) for the :ca_file option
13
+ James Cox (@imajes) for the #play and #tweet methods
14
+
15
+ #### Thanks to
16
+
17
+ Aaron Patterson (@tenderlove) for the original A Bot code
data/lib/sparks.rb CHANGED
@@ -82,6 +82,14 @@ module Sparks
82
82
  post room_id, message, 'PasteMessage'
83
83
  end
84
84
 
85
+ def play room_id, message
86
+ post room_id, message, 'SoundMessage'
87
+ end
88
+
89
+ def tweet room_id, message
90
+ post room_id, message, 'TweetMessage'
91
+ end
92
+
85
93
  def join room_id
86
94
  @http.start do |http|
87
95
  req = Net::HTTP::Post.new "/room/#{room_id}/join.xml"
@@ -1,3 +1,3 @@
1
1
  module Sparks
2
- VERSION = "0.2"
2
+ VERSION = "0.3"
3
3
  end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sparks
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 2
9
- version: "0.2"
8
+ - 3
9
+ version: "0.3"
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Andr\xC3\xA9 Arko"
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-04-29 00:00:00 -07:00
17
+ date: 2011-10-07 00:00:00 -10:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency