sinatra-cometio 0.5.8 → 0.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/History.txt +4 -0
- data/lib/sinatra-cometio/application.rb +1 -0
- data/lib/sinatra-cometio/version.rb +1 -1
- data/sample/README.md +2 -2
- data/sample/bin/cui_chat_client.rb +0 -1
- data/sample/config.ru +0 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9d493ba15d44c94753f78b0c236125f775fb6b61
|
|
4
|
+
data.tar.gz: b5944b12327e36182514f61491077f80777ec8de
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9691dfab15f2e4211c0159585f026bd6cabb2ebb8316bccc519381245d7b8529f50c8d3ac9fc39c41eea3fe44a3fa80654e46f29038a029cd253cd3fcd178b3c
|
|
7
|
+
data.tar.gz: 1c63eb1aab0634faef1ec4c1e1235596b13c219714ef16ef4ac34a3df7c6e249914a75e71ed377a40f8bdb2c638fc8c0f10de71c19a882600a79120a537d888c
|
data/History.txt
CHANGED
|
@@ -14,6 +14,7 @@ module Sinatra
|
|
|
14
14
|
response["Access-Control-Allow-Origin"] = "*" if CometIO.options[:allow_crossdomain]
|
|
15
15
|
stream :keep_open do |s|
|
|
16
16
|
session = params[:session].to_s.empty? ? CometIO.create_session(request.ip) : params[:session]
|
|
17
|
+
CometIO.sessions[session][:remote_addr] = request.env['REMOTE_ADDR']
|
|
17
18
|
CometIO.sessions[session][:stream] = s
|
|
18
19
|
CometIO.sessions[session][:last] = Time.now
|
|
19
20
|
CometIO.emit :connect, session if params[:session].to_s.empty?
|
data/sample/README.md
CHANGED
|
@@ -15,7 +15,7 @@ Install Dependencies
|
|
|
15
15
|
Run
|
|
16
16
|
---
|
|
17
17
|
|
|
18
|
-
% rackup config.ru -p 5000
|
|
18
|
+
% bundle exec rackup config.ru -p 5000
|
|
19
19
|
|
|
20
20
|
=> http://localhost:5000
|
|
21
21
|
|
|
@@ -23,4 +23,4 @@ Run
|
|
|
23
23
|
CUI Client
|
|
24
24
|
----------
|
|
25
25
|
|
|
26
|
-
% ruby bin/cui_chat_client.rb
|
|
26
|
+
% bundle exec ruby bin/cui_chat_client.rb
|
data/sample/config.ru
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.9
|
|
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-06
|
|
11
|
+
date: 2013-08-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
235
235
|
version: '0'
|
|
236
236
|
requirements: []
|
|
237
237
|
rubyforge_project:
|
|
238
|
-
rubygems_version: 2.0.
|
|
238
|
+
rubygems_version: 2.0.5
|
|
239
239
|
signing_key:
|
|
240
240
|
specification_version: 4
|
|
241
241
|
summary: Comet component for Sinatra RocketIO
|