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 +4 -0
- data/README.md +1 -1
- data/lib/sinatra-cometio/cometio.rb +1 -0
- data/lib/sinatra-cometio/version.rb +1 -1
- data/sinatra-cometio.gemspec +1 -1
- metadata +3 -3
data/History.txt
CHANGED
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
|
data/sinatra-cometio.gemspec
CHANGED
@@ -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{
|
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.
|
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:
|
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:
|
190
|
+
summary: Comet component for Sinatra RocketIO
|
191
191
|
test_files:
|
192
192
|
- test/app.rb
|
193
193
|
- test/app/config.ru
|