sinatra-cometio 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.3.7 2013-03-19
2
+
3
+ * not push to unexist client
4
+
1
5
  === 0.3.6 2013-03-19
2
6
 
3
7
  * update event_emitter.js v0.0.7
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  sinatra-cometio
2
2
  ===============
3
+ Comet component for [Sinatra RocketIO](https://github.com/shokai/sinatra-rocketio)
3
4
 
4
5
  * Node.js like Comet I/O plugin for Sinatra.
5
6
  * http://shokai.github.com/sinatra-cometio
6
- * This is a component of the [RocketIO](https://github.com/shokai/sinatra-rocketio)
7
7
 
8
8
 
9
9
  Installation
@@ -29,6 +29,7 @@ module Sinatra
29
29
  def self.push(type, data, opt={})
30
30
  session_ids = opt[:to].to_s.empty? ? self.sessions.keys : [opt[:to]]
31
31
  session_ids.each do |id|
32
+ next unless self.sessions.include? id
32
33
  s = self.sessions[id]
33
34
  if s[:queue].empty? and s[:stream] != nil
34
35
  begin
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module CometIO
3
- VERSION = '0.3.6'
3
+ VERSION = '0.3.7'
4
4
  end
5
5
  end
@@ -7,7 +7,7 @@ Gem::Specification.new do |gem|
7
7
  gem.version = Sinatra::CometIO::VERSION
8
8
  gem.authors = ["Sho Hashimoto"]
9
9
  gem.email = ["hashimoto@shokai.org"]
10
- gem.description = %q{Node.js like Comet I/O plugin for Sinatra.}
10
+ gem.description = %q{Comet component for Sinatra RocketIO}
11
11
  gem.summary = gem.description
12
12
  gem.homepage = "http://shokai.github.com/sinatra-cometio"
13
13
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-cometio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -123,7 +123,7 @@ dependencies:
123
123
  - - ! '>='
124
124
  - !ruby/object:Gem::Version
125
125
  version: 0.10.2
126
- description: Node.js like Comet I/O plugin for Sinatra.
126
+ description: Comet component for Sinatra RocketIO
127
127
  email:
128
128
  - hashimoto@shokai.org
129
129
  executables: []
@@ -187,7 +187,7 @@ rubyforge_project:
187
187
  rubygems_version: 1.8.24
188
188
  signing_key:
189
189
  specification_version: 3
190
- summary: Node.js like Comet I/O plugin for Sinatra.
190
+ summary: Comet component for Sinatra RocketIO
191
191
  test_files:
192
192
  - test/app.rb
193
193
  - test/app/config.ru