sinatra-cometio 0.5.8 → 0.5.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d36fcefb0b9e57d10e2caa873e93f23d3c71954f
4
- data.tar.gz: 40b9a3f226c6e5273fe1fdf8df51468abfe6e064
3
+ metadata.gz: 9d493ba15d44c94753f78b0c236125f775fb6b61
4
+ data.tar.gz: b5944b12327e36182514f61491077f80777ec8de
5
5
  SHA512:
6
- metadata.gz: ce51aa8d02faa44479324af7f6193ec74539e71d5deccce05de1852d00b752211c0aca2f8d309ed3bf521ec713ba92ea0d1fc81d594e9e33cd633b958f366120
7
- data.tar.gz: 14995366229ab7ad85ad68b86bb57c8b2c1dce9341af50384e0f1bebbeb0944dc1c6036b692569696acd188ae5a1fe250bbb0ff3d49e34ffd6bc0fef30529f63
6
+ metadata.gz: 9691dfab15f2e4211c0159585f026bd6cabb2ebb8316bccc519381245d7b8529f50c8d3ac9fc39c41eea3fe44a3fa80654e46f29038a029cd253cd3fcd178b3c
7
+ data.tar.gz: 1c63eb1aab0634faef1ec4c1e1235596b13c219714ef16ef4ac34a3df7c6e249914a75e71ed377a40f8bdb2c638fc8c0f10de71c19a882600a79120a537d888c
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.5.9 2013-08-06
2
+
3
+ * store REMOTE_ADDR into CometIO.sessions
4
+
1
5
  === 0.5.8 2013-06-03
2
6
 
3
7
  * bugfix comet get error on IE
@@ -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?
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module CometIO
3
- VERSION = '0.5.8'
3
+ VERSION = '0.5.9'
4
4
  end
5
5
  end
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
@@ -1,5 +1,4 @@
1
1
  require 'rubygems'
2
- require 'bundler/setup'
3
2
  $:.unshift File.expand_path '../../lib', File.dirname(__FILE__)
4
3
  require 'sinatra/cometio/client'
5
4
 
data/sample/config.ru CHANGED
@@ -1,6 +1,4 @@
1
1
  require 'rubygems'
2
- require 'bundler/setup'
3
- Bundler.require
4
2
  require 'sinatra'
5
3
  require 'sinatra/base'
6
4
  if development?
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.8
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-02 00:00:00.000000000 Z
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.3
238
+ rubygems_version: 2.0.5
239
239
  signing_key:
240
240
  specification_version: 4
241
241
  summary: Comet component for Sinatra RocketIO