firering 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -86,6 +86,7 @@ For more details take a look at spec/fixtures/load_server.rb file.
86
86
  https://github.com/EmmanuelOga/firering/pull/3
87
87
  * caius (Caius Durling), https://github.com/EmmanuelOga/firering/pull/5
88
88
  * cesario (Franck Verrot), https://github.com/EmmanuelOga/firering/pull/6
89
+ * PizzaPowered, https://github.com/PizzaPowered/firering
89
90
 
90
91
  == Copyright
91
92
 
data/firering.gemspec CHANGED
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
 
6
6
  s.name = 'firering'
7
- s.version = '1.1.1'
8
- s.date = '2011-08-07'
7
+ s.version = '1.2.0'
8
+ s.date = '2011-08-08'
9
9
  s.rubyforge_project = 'firering'
10
10
 
11
11
  s.summary = "Campfire API interface powered by eventmachine em-http-request and yajl-ruby."
@@ -7,6 +7,7 @@ module Firering
7
7
  alias_method :locked?, :locked
8
8
  alias_method :full?, :full
9
9
  alias_method :open_to_guests?, :open_to_guests
10
+ alias_method :to_s, :name
10
11
 
11
12
  def stream(&callback)
12
13
  join { |data, http| connection.stream(self, &callback) }
@@ -91,7 +92,7 @@ module Firering
91
92
  # :type => "TextMessage", :body => "Hello"
92
93
  def speak(data, &callback)
93
94
  connection.http(:post, "/room/#{id}/speak.json", "message" => data) do |data, http| # Response Status: 201 Created
94
- callback.call(Firering::Message.instantiate(connection, data, "message"))
95
+ callback.call(Firering::Message.instantiate(connection, data, "message")) if callback
95
96
  end
96
97
  end
97
98
 
data/lib/firering.rb CHANGED
@@ -5,7 +5,7 @@ require 'yajl'
5
5
  require 'em-http'
6
6
 
7
7
  module Firering
8
- VERSION = '1.1.1'
8
+ VERSION = '1.2.0'
9
9
 
10
10
  Error = Class.new(StandardError)
11
11
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: firering
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.1.1
5
+ version: 1.2.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Emmanuel Oga
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-08-07 00:00:00 -03:00
13
+ date: 2011-08-08 00:00:00 -03:00
14
14
  default_executable: campf-notify
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency