sinatra-cometio 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/History.txt +4 -0
- data/lib/sinatra-cometio/application.rb +1 -1
- data/lib/sinatra-cometio/version.rb +1 -1
- data/sinatra-cometio.gemspec +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73ce6035810b3c246bcbea80882d3ef01b20afe7
|
4
|
+
data.tar.gz: 8cebb648687ce259528ecaf5553f750bc7fa51e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88f8f841affb6969885bb502661d48e277071d3a336fd86eeccee5fe003837aefe7a907b729a64aa58b603de8985f61d464fcb1e91581b67cd93aa314bfb782d
|
7
|
+
data.tar.gz: 49e43eb227a7e511472e8c80d129128be663d7e3b4e033c10ddc2020e2ef2df7f3ea2eec7b040e5904804f25643c9c6333ea51264359bea29890e6cc237c81dc
|
data/.gitignore
CHANGED
data/History.txt
CHANGED
@@ -42,7 +42,7 @@ module Sinatra
|
|
42
42
|
|
43
43
|
app.post '/cometio/io' do
|
44
44
|
from = params[:session]
|
45
|
-
halt 400, 'no session' if from.empty?
|
45
|
+
halt 400, 'no session' if !from or from.empty?
|
46
46
|
events = params[:events]
|
47
47
|
halt 400, 'no data' unless [Hash, Array].include? events.class
|
48
48
|
events = events.keys.sort.map{|i| events[i] } if events.kind_of? Hash
|
data/sinatra-cometio.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-cometio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sho Hashimoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -170,14 +170,14 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - '>='
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0
|
173
|
+
version: '0'
|
174
174
|
type: :runtime
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - '>='
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 0
|
180
|
+
version: '0'
|
181
181
|
description: Comet component for Sinatra RocketIO
|
182
182
|
email:
|
183
183
|
- hashimoto@shokai.org
|
@@ -245,3 +245,4 @@ test_files:
|
|
245
245
|
- test/app/main.rb
|
246
246
|
- test/test_cometio.rb
|
247
247
|
- test/test_helper.rb
|
248
|
+
has_rdoc:
|