breakout 0.0.1 → 0.0.2
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.
- data/.rvmrc +1 -0
- data/README.md +1 -1
- data/lib/breakout/config.rb +2 -1
- data/lib/breakout/version.rb +1 -1
- metadata +3 -2
data/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm 1.9.2@breakout --verbose --create
|
data/README.md
CHANGED
@@ -23,7 +23,7 @@ Then, after opening yet another terminal window and changing to the examples dir
|
|
23
23
|
## FAQ
|
24
24
|
|
25
25
|
* Q: How do I use this with a Rails project?
|
26
|
-
A: The details depend on your deployment scenario, but the trickiest part should be adjusting the breakout.yml that is generated so that browsers and workers can connect to wherever the em-breakout server is running. The other steps include adding the breakout gem to your dependencies (
|
26
|
+
A: The details depend on your deployment scenario, but the trickiest part should be adjusting the breakout.yml that is generated so that browsers and workers can connect to wherever the em-breakout server is running. The other steps include adding the breakout gem to your dependencies (gem 'breakout', '0.0.1'), copying the echo.rb example worker and implementing your own do_work method (make sure your Rails environment is loaded in the worker so you can access models), copying the worker_app.rb to help run your workers, and using Breakout.browser_url in the appropriate view to allow your clients to connect to your workers.
|
27
27
|
|
28
28
|
## Copyright
|
29
29
|
|
data/lib/breakout/config.rb
CHANGED
@@ -36,7 +36,8 @@ module Breakout
|
|
36
36
|
e = opts[:e] || (Time.now + 3).to_i
|
37
37
|
notify = opts[:notify] || false
|
38
38
|
gat = grid_access_token(route, bid, e, notify)
|
39
|
-
|
39
|
+
host = opts[:host] || CONFIG[:breakout_host]
|
40
|
+
"ws://#{host}:#{CONFIG[:browser_port]}/#{CONFIG[:grid]}?route=#{route}&bid=#{bid}&e=#{e}¬ify=#{notify}&gat=#{gat}"
|
40
41
|
end
|
41
42
|
|
42
43
|
def self.load_or_create_config_file(config_filename)
|
data/lib/breakout/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: breakout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
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: 2011-05-
|
12
|
+
date: 2011-05-02 00:00:00.000000000 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
description: Breakout routes messages among web browsers and workers using WebSockets.
|
@@ -20,6 +20,7 @@ extensions: []
|
|
20
20
|
extra_rdoc_files: []
|
21
21
|
files:
|
22
22
|
- .gitignore
|
23
|
+
- .rvmrc
|
23
24
|
- Gemfile
|
24
25
|
- README.md
|
25
26
|
- Rakefile
|