sinatra-rocketio 0.0.4 → 0.0.5

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.
@@ -1,3 +1,7 @@
1
+ === 0.0.5 2013-03-18
2
+
3
+ * fix gem load flow
4
+
1
5
  === 0.0.4 2013-03-18
2
6
 
3
7
  * fix gem dependencies
data/README.md CHANGED
@@ -4,6 +4,7 @@ sinatra-rocketio
4
4
  * Node.js like I/O plugin for Sinatra.
5
5
  * Automatically selects from Comet and WebSocket.
6
6
  * https://github.com/shokai/sinatra-rocketio
7
+ * https://github.com/shokai/sinatra-rocketio/wiki
7
8
  * [Handle 10K+ clients on 1 process](https://github.com/shokai/sinatra-websocketio/wiki/C10K)
8
9
 
9
10
 
@@ -148,6 +149,7 @@ Sample App
148
149
  chat app
149
150
 
150
151
  - https://github.com/shokai/sinatra-rocketio/tree/master/sample
152
+ - http://rocketio-chat.herokuapp.com
151
153
 
152
154
 
153
155
  Contributing
@@ -8,12 +8,11 @@ module Sinatra
8
8
  sleep 1
9
9
  end
10
10
  if options[:comet]
11
- require 'sinatra/cometio'
12
11
  app.register Sinatra::CometIO
13
12
  end
14
13
  if options[:websocket]
15
- require 'sinatra/websocketio'
16
14
  app.register Sinatra::WebSocketIO
15
+ Sinatra::WebSocketIO.start
17
16
  end
18
17
  app.get '/rocketio/rocketio.js' do
19
18
  content_type 'application/javascript'
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module RocketIO
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -1,5 +1,7 @@
1
1
  require 'eventmachine'
2
2
  require 'event_emitter'
3
+ require 'sinatra/cometio'
4
+ require 'sinatra/websocketio_nostart'
3
5
  require File.expand_path '../sinatra-rocketio/version', File.dirname(__FILE__)
4
6
  require File.expand_path '../sinatra-rocketio/helpers', File.dirname(__FILE__)
5
7
  require File.expand_path '../sinatra-rocketio/options', File.dirname(__FILE__)
@@ -5,7 +5,7 @@ gem 'rack'
5
5
  gem 'sinatra'
6
6
  gem 'thin'
7
7
  gem 'event_emitter'
8
- gem 'sinatra-cometio'
9
- gem 'sinatra-websocketio'
8
+ gem 'sinatra-cometio', '>= 0.3.5'
9
+ gem 'sinatra-websocketio', '>= 0.1.3'
10
10
  gem 'haml'
11
11
  gem 'sass'
@@ -36,7 +36,7 @@ GEM
36
36
  rack (~> 1.4)
37
37
  rack-protection (~> 1.3)
38
38
  tilt (~> 1.3, >= 1.3.3)
39
- sinatra-cometio (0.3.4)
39
+ sinatra-cometio (0.3.5)
40
40
  event_emitter (>= 0.2.3)
41
41
  eventmachine (>= 1.0.0)
42
42
  httparty (>= 0.10.2)
@@ -51,15 +51,15 @@ GEM
51
51
  rack-test
52
52
  sinatra (~> 1.3.0)
53
53
  tilt (~> 1.3)
54
- sinatra-websocketio (0.1.1)
55
- em-websocket
56
- em-websocket-client
57
- event_emitter (>= 0.2.0)
58
- eventmachine
59
- json
60
- rack
61
- sinatra
62
- sinatra-contrib
54
+ sinatra-websocketio (0.1.3)
55
+ em-websocket (>= 0.5.0)
56
+ em-websocket-client (>= 0.1.1)
57
+ event_emitter (>= 0.2.3)
58
+ eventmachine (>= 1.0.0)
59
+ json (>= 1.7.0)
60
+ rack (>= 1.5.0)
61
+ sinatra (>= 1.3.6)
62
+ sinatra-contrib (>= 1.3.2)
63
63
  thin (1.5.0)
64
64
  daemons (>= 1.0.9)
65
65
  eventmachine (>= 0.12.6)
@@ -78,6 +78,6 @@ DEPENDENCIES
78
78
  rack
79
79
  sass
80
80
  sinatra
81
- sinatra-cometio
82
- sinatra-websocketio
81
+ sinatra-cometio (>= 0.3.5)
82
+ sinatra-websocketio (>= 0.1.3)
83
83
  thin
@@ -15,20 +15,8 @@ Install Dependencies
15
15
  Run
16
16
  ---
17
17
 
18
+ % export PORT=5000
19
+ % export WS_PORT=8080
18
20
  % foreman start
19
21
 
20
22
  => http://localhost:5000
21
-
22
-
23
- Deploy Heroku
24
- -------------
25
-
26
- % mkdir ~/rocketio-sample
27
- % cp -R ./ ~/rocketio-sample/
28
- % cd ~/rocketio-sample
29
- % git init
30
- % git add ./
31
- % git commit -m "first sample chat"
32
- % heroku create --stack cedar
33
- % git push heroku master
34
- % heroku open
@@ -12,7 +12,7 @@ require File.dirname(__FILE__)+'/main'
12
12
 
13
13
  set :haml, :escape_html => true
14
14
  set :cometio, :timeout => 120
15
- set :websocketio, :port => 8080
15
+ set :websocketio, :port => (ENV['WS_PORT'].to_i || 8080)
16
16
  set :rocketio, :comet => true, :websocket => true
17
17
 
18
18
  case RUBY_PLATFORM
@@ -20,6 +20,6 @@ Gem::Specification.new do |gem|
20
20
  gem.add_dependency "eventmachine", ">= 1.0.0"
21
21
  gem.add_dependency "event_emitter", ">= 0.2.3"
22
22
  gem.add_dependency "sinatra-contrib", ">= 1.3.2"
23
- gem.add_dependency "sinatra-cometio", ">= 0.3.4"
24
- gem.add_dependency "sinatra-websocketio", ">= 0.1.2"
23
+ gem.add_dependency "sinatra-cometio", ">= 0.3.5"
24
+ gem.add_dependency "sinatra-websocketio", ">= 0.1.3"
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-rocketio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-17 00:00:00.000000000 Z
12
+ date: 2013-03-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
@@ -98,7 +98,7 @@ dependencies:
98
98
  requirements:
99
99
  - - ! '>='
100
100
  - !ruby/object:Gem::Version
101
- version: 0.3.4
101
+ version: 0.3.5
102
102
  type: :runtime
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
@@ -106,7 +106,7 @@ dependencies:
106
106
  requirements:
107
107
  - - ! '>='
108
108
  - !ruby/object:Gem::Version
109
- version: 0.3.4
109
+ version: 0.3.5
110
110
  - !ruby/object:Gem::Dependency
111
111
  name: sinatra-websocketio
112
112
  requirement: !ruby/object:Gem::Requirement
@@ -114,7 +114,7 @@ dependencies:
114
114
  requirements:
115
115
  - - ! '>='
116
116
  - !ruby/object:Gem::Version
117
- version: 0.1.2
117
+ version: 0.1.3
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
@@ -122,7 +122,7 @@ dependencies:
122
122
  requirements:
123
123
  - - ! '>='
124
124
  - !ruby/object:Gem::Version
125
- version: 0.1.2
125
+ version: 0.1.3
126
126
  description: Node.js like WebSocket/Comet I/O plugin for Sinatra
127
127
  email:
128
128
  - hashimoto@shokai.org