juggernaut_rails 0.5.9 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/juggernaut/rails/helpers.rb +10 -2
- metadata +28 -13
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.6.0
|
@@ -2,7 +2,16 @@ module Juggernaut # :nodoc:
|
|
2
2
|
module Rails
|
3
3
|
module Helpers
|
4
4
|
|
5
|
-
def juggernaut(options = {})
|
5
|
+
def juggernaut(options = {}, include_tag = true)
|
6
|
+
options = juggernaut_options(options)
|
7
|
+
if include_tag
|
8
|
+
javascript_tag "new Juggernaut(#{options.to_json});"
|
9
|
+
else
|
10
|
+
"new Juggernaut(#{options.to_json});"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def juggernaut_options(options = {})
|
6
15
|
random_host = Juggernaut::Rails.random_host
|
7
16
|
options = {
|
8
17
|
:host => (random_host[:public_host] || random_host[:host]),
|
@@ -20,7 +29,6 @@ module Juggernaut # :nodoc:
|
|
20
29
|
:reconnect_attempts => 3,
|
21
30
|
:reconnect_intervals => 3
|
22
31
|
}.merge(options)
|
23
|
-
javascript_tag "new Juggernaut(#{options.to_json});"
|
24
32
|
end
|
25
33
|
end
|
26
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: juggernaut_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 6
|
8
|
+
- 0
|
9
|
+
version: 0.6.0
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Alex MacCaw
|
@@ -9,29 +14,37 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date:
|
17
|
+
date: 2010-04-14 00:00:00 -07:00
|
13
18
|
default_executable: juggernaut
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: eventmachine
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
25
|
- - ">="
|
22
26
|
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
- 10
|
30
|
+
- 0
|
23
31
|
version: 0.10.0
|
24
|
-
|
32
|
+
type: :runtime
|
33
|
+
version_requirements: *id001
|
25
34
|
- !ruby/object:Gem::Dependency
|
26
35
|
name: json
|
27
|
-
|
28
|
-
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
38
|
requirements:
|
31
39
|
- - ">="
|
32
40
|
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 1
|
43
|
+
- 1
|
44
|
+
- 2
|
33
45
|
version: 1.1.2
|
34
|
-
|
46
|
+
type: :runtime
|
47
|
+
version_requirements: *id002
|
35
48
|
description: " The Juggernaut Gem for Ruby on Rails aims to revolutionize your Rails app by letting the server initiate a connection and push data to the client. In other words your app can have a real time connection to the server with the advantage of instant updates. Although the obvious use of this is for chat, the most exciting prospect for me is collaborative cms and wikis.\n \n This Gem bundles Alex MacCaw's Juggernaut Gem and Rails plugin into one, and extends its Rails intergration for a simpler install and setup.\n"
|
36
49
|
email: info@eribium.org
|
37
50
|
executables:
|
@@ -90,18 +103,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
103
|
requirements:
|
91
104
|
- - ">="
|
92
105
|
- !ruby/object:Gem::Version
|
106
|
+
segments:
|
107
|
+
- 0
|
93
108
|
version: "0"
|
94
|
-
version:
|
95
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
110
|
requirements:
|
97
111
|
- - ">="
|
98
112
|
- !ruby/object:Gem::Version
|
113
|
+
segments:
|
114
|
+
- 0
|
99
115
|
version: "0"
|
100
|
-
version:
|
101
116
|
requirements: []
|
102
117
|
|
103
118
|
rubyforge_project: juggernaut
|
104
|
-
rubygems_version: 1.3.
|
119
|
+
rubygems_version: 1.3.6
|
105
120
|
signing_key:
|
106
121
|
specification_version: 3
|
107
122
|
summary: A push server written in Ruby with Rails integration.
|