resque_ui 3.1.2 → 3.1.3

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/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 3.1.3 2011-10-24
2
+
3
+ * Guard against nil in templates
4
+
1
5
  == 3.1.2 2011-10-13
2
6
 
3
7
  * Fix a typo
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 3
3
3
  :minor: 1
4
- :patch: 2
4
+ :patch: 3
5
5
  :build:
@@ -93,7 +93,7 @@
93
93
  <a href="#" class="backtrace"><%= h(job['error']) %></a>
94
94
  <pre style='display:none'><%= job['backtrace'].join("\n").html_safe %></pre>
95
95
  <% else %>
96
- <%= job['error'].html_safe %>
96
+ <%= job['error'].to_s.html_safe %>
97
97
  <% end %>
98
98
  </dd>
99
99
  <% end %>
@@ -29,7 +29,7 @@
29
29
  <div class="progress-bar" style="width:<%= status.pct_complete %>%">&nbsp;</div>
30
30
  <div class="progress-pct"><%= status.pct_complete ? "#{status.pct_complete}%" : '' %></div>
31
31
  </td>
32
- <td><%= status.message.html_safe %></td>
32
+ <td><%= status.message.to_s.html_safe %></td>
33
33
  <td><% if status.killable? %><%= link_to('Kill', {:action => :kill, :id => status.uuid}, :class => 'kill') %><% end %></td>
34
34
  </tr>
35
35
  <% end %>
data/rdoc/created.rid CHANGED
@@ -1,4 +1,4 @@
1
- Thu, 13 Oct 2011 15:20:16 -0400
1
+ Mon, 24 Oct 2011 10:34:03 -0400
2
2
  README.markdown Thu, 13 Oct 2011 12:23:16 -0400
3
3
  lib/resque_ui.rb Thu, 13 Oct 2011 11:42:34 -0400
4
4
  lib/resque_ui/cap.rb Wed, 14 Sep 2011 16:39:33 -0400
data/rdoc/index.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <head>
7
7
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
8
 
9
- <title>ResqueUi 3.1.2</title>
9
+ <title>ResqueUi 3.1.3</title>
10
10
 
11
11
  <link type="text/css" media="screen" href="rdoc.css" rel="stylesheet" />
12
12
 
@@ -19,10 +19,10 @@
19
19
  <body class="indexpage">
20
20
 
21
21
 
22
- <h1>ResqueUi 3.1.2</h1>
22
+ <h1>ResqueUi 3.1.3</h1>
23
23
 
24
24
 
25
- <p>This is the API documentation for 'ResqueUi 3.1.2'.</p>
25
+ <p>This is the API documentation for 'ResqueUi 3.1.3'.</p>
26
26
 
27
27
 
28
28
 
@@ -6,7 +6,7 @@
6
6
  <head>
7
7
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
8
 
9
- <title>File: cap.rb [ResqueUi 3.1.2]</title>
9
+ <title>File: cap.rb [ResqueUi 3.1.3]</title>
10
10
 
11
11
  <link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
12
12
 
@@ -6,7 +6,7 @@
6
6
  <head>
7
7
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
8
 
9
- <title>File: cap_recipes.rb [ResqueUi 3.1.2]</title>
9
+ <title>File: cap_recipes.rb [ResqueUi 3.1.3]</title>
10
10
 
11
11
  <link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
12
12
 
@@ -6,7 +6,7 @@
6
6
  <head>
7
7
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
8
 
9
- <title>File: job.rb [ResqueUi 3.1.2]</title>
9
+ <title>File: job.rb [ResqueUi 3.1.3]</title>
10
10
 
11
11
  <link type="text/css" media="screen" href="../../../../rdoc.css" rel="stylesheet" />
12
12
 
@@ -6,7 +6,7 @@
6
6
  <head>
7
7
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
8
 
9
- <title>File: resque.rb [ResqueUi 3.1.2]</title>
9
+ <title>File: resque.rb [ResqueUi 3.1.3]</title>
10
10
 
11
11
  <link type="text/css" media="screen" href="../../../../rdoc.css" rel="stylesheet" />
12
12
 
@@ -6,7 +6,7 @@
6
6
  <head>
7
7
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
8
 
9
- <title>File: worker.rb [ResqueUi 3.1.2]</title>
9
+ <title>File: worker.rb [ResqueUi 3.1.3]</title>
10
10
 
11
11
  <link type="text/css" media="screen" href="../../../../rdoc.css" rel="stylesheet" />
12
12
 
@@ -6,7 +6,7 @@
6
6
  <head>
7
7
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
8
 
9
- <title>File: resque_scheduler.rb [ResqueUi 3.1.2]</title>
9
+ <title>File: resque_scheduler.rb [ResqueUi 3.1.3]</title>
10
10
 
11
11
  <link type="text/css" media="screen" href="../../../../rdoc.css" rel="stylesheet" />
12
12
 
@@ -6,7 +6,7 @@
6
6
  <head>
7
7
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
8
 
9
- <title>File: chained_job_with_status.rb [ResqueUi 3.1.2]</title>
9
+ <title>File: chained_job_with_status.rb [ResqueUi 3.1.3]</title>
10
10
 
11
11
  <link type="text/css" media="screen" href="../../../../rdoc.css" rel="stylesheet" />
12
12
 
@@ -6,7 +6,7 @@
6
6
  <head>
7
7
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
8
 
9
- <title>File: job_with_status.rb [ResqueUi 3.1.2]</title>
9
+ <title>File: job_with_status.rb [ResqueUi 3.1.3]</title>
10
10
 
11
11
  <link type="text/css" media="screen" href="../../../../rdoc.css" rel="stylesheet" />
12
12
 
@@ -6,7 +6,7 @@
6
6
  <head>
7
7
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
8
 
9
- <title>File: status.rb [ResqueUi 3.1.2]</title>
9
+ <title>File: status.rb [ResqueUi 3.1.3]</title>
10
10
 
11
11
  <link type="text/css" media="screen" href="../../../../rdoc.css" rel="stylesheet" />
12
12
 
@@ -6,7 +6,7 @@
6
6
  <head>
7
7
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
8
 
9
- <title>File: resque_ui.rb [ResqueUi 3.1.2]</title>
9
+ <title>File: resque_ui.rb [ResqueUi 3.1.3]</title>
10
10
 
11
11
  <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />
12
12
 
data/resque_ui.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{resque_ui}
8
- s.version = "3.1.2"
8
+ s.version = "3.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kevin Tyll"]
12
- s.date = %q{2011-10-13}
12
+ s.date = %q{2011-10-24}
13
13
  s.description = %q{A Rails UI for Resque for managing workers, failures and schedules.}
14
14
  s.email = %q{kevintyll@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -70,8 +70,6 @@ Gem::Specification.new do |s|
70
70
  "lib/tasks/worker.rake",
71
71
  "rdoc/Resque.html",
72
72
  "rdoc/Resque/ChainedJobWithStatus.html",
73
- "rdoc/Resque/Failure.html",
74
- "rdoc/Resque/Failure/Base.html",
75
73
  "rdoc/Resque/Job.html",
76
74
  "rdoc/Resque/JobWithStatus.html",
77
75
  "rdoc/Resque/Status.html",
@@ -106,13 +104,8 @@ Gem::Specification.new do |s|
106
104
  "rdoc/js/jquery.js",
107
105
  "rdoc/js/quicksearch.js",
108
106
  "rdoc/js/thickbox-compressed.js",
109
- "rdoc/lib/resque_overrides_rb.html",
110
- "rdoc/lib/resque_scheduler_overrides_rb.html",
111
- "rdoc/lib/resque_status_overrides_rb.html",
112
107
  "rdoc/lib/resque_ui/cap_rb.html",
113
108
  "rdoc/lib/resque_ui/cap_recipes_rb.html",
114
- "rdoc/lib/resque_ui/engine_rb.html",
115
- "rdoc/lib/resque_ui/overrides/resque/failure/failure_rb.html",
116
109
  "rdoc/lib/resque_ui/overrides/resque/job_rb.html",
117
110
  "rdoc/lib/resque_ui/overrides/resque/resque_rb.html",
118
111
  "rdoc/lib/resque_ui/overrides/resque/worker_rb.html",
@@ -120,8 +113,6 @@ Gem::Specification.new do |s|
120
113
  "rdoc/lib/resque_ui/overrides/resque_status/chained_job_with_status_rb.html",
121
114
  "rdoc/lib/resque_ui/overrides/resque_status/job_with_status_rb.html",
122
115
  "rdoc/lib/resque_ui/overrides/resque_status/status_rb.html",
123
- "rdoc/lib/resque_ui/resque_ui_rb.html",
124
- "rdoc/lib/resque_ui/tasks_rb.html",
125
116
  "rdoc/lib/resque_ui_rb.html",
126
117
  "rdoc/rdoc.css",
127
118
  "resque_ui.gemspec",
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: resque_ui
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 3.1.2
5
+ version: 3.1.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kevin Tyll
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-10-13 00:00:00 -04:00
13
+ date: 2011-10-24 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -131,8 +131,6 @@ files:
131
131
  - lib/tasks/worker.rake
132
132
  - rdoc/Resque.html
133
133
  - rdoc/Resque/ChainedJobWithStatus.html
134
- - rdoc/Resque/Failure.html
135
- - rdoc/Resque/Failure/Base.html
136
134
  - rdoc/Resque/Job.html
137
135
  - rdoc/Resque/JobWithStatus.html
138
136
  - rdoc/Resque/Status.html
@@ -167,13 +165,8 @@ files:
167
165
  - rdoc/js/jquery.js
168
166
  - rdoc/js/quicksearch.js
169
167
  - rdoc/js/thickbox-compressed.js
170
- - rdoc/lib/resque_overrides_rb.html
171
- - rdoc/lib/resque_scheduler_overrides_rb.html
172
- - rdoc/lib/resque_status_overrides_rb.html
173
168
  - rdoc/lib/resque_ui/cap_rb.html
174
169
  - rdoc/lib/resque_ui/cap_recipes_rb.html
175
- - rdoc/lib/resque_ui/engine_rb.html
176
- - rdoc/lib/resque_ui/overrides/resque/failure/failure_rb.html
177
170
  - rdoc/lib/resque_ui/overrides/resque/job_rb.html
178
171
  - rdoc/lib/resque_ui/overrides/resque/resque_rb.html
179
172
  - rdoc/lib/resque_ui/overrides/resque/worker_rb.html
@@ -181,8 +174,6 @@ files:
181
174
  - rdoc/lib/resque_ui/overrides/resque_status/chained_job_with_status_rb.html
182
175
  - rdoc/lib/resque_ui/overrides/resque_status/job_with_status_rb.html
183
176
  - rdoc/lib/resque_ui/overrides/resque_status/status_rb.html
184
- - rdoc/lib/resque_ui/resque_ui_rb.html
185
- - rdoc/lib/resque_ui/tasks_rb.html
186
177
  - rdoc/lib/resque_ui_rb.html
187
178
  - rdoc/rdoc.css
188
179
  - resque_ui.gemspec
@@ -1,229 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
-
8
- <title>Class: Resque::Failure::Base</title>
9
-
10
- <link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
11
-
12
- <script src="../../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
- <script src="../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
- <script src="../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
- <script src="../../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
-
17
- </head>
18
- <body id="top" class="class">
19
-
20
- <div id="metadata">
21
- <div id="home-metadata">
22
- <div id="home-section" class="section">
23
- <h3 class="section-header">
24
- <a href="../../index.html">Home</a>
25
- <a href="../../index.html#classes">Classes</a>
26
- <a href="../../index.html#methods">Methods</a>
27
- </h3>
28
- </div>
29
- </div>
30
-
31
- <div id="file-metadata">
32
- <div id="file-list-section" class="section">
33
- <h3 class="section-header">In Files</h3>
34
- <div class="section-body">
35
- <ul>
36
-
37
- <li><a href="../../lib/resque_overrides_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
- class="thickbox" title="lib/resque_overrides.rb">lib/resque_overrides.rb</a></li>
39
-
40
- </ul>
41
- </div>
42
- </div>
43
-
44
-
45
- </div>
46
-
47
- <div id="class-metadata">
48
-
49
- <!-- Parent Class -->
50
- <div id="parent-class-section" class="section">
51
- <h3 class="section-header">Parent</h3>
52
-
53
- <p class="link">Object</p>
54
-
55
- </div>
56
-
57
-
58
-
59
-
60
-
61
-
62
-
63
- <!-- Method Quickref -->
64
- <div id="method-list-section" class="section">
65
- <h3 class="section-header">Methods</h3>
66
- <ul class="link-list">
67
-
68
- <li><a href="#method-c-new">::new</a></li>
69
-
70
- </ul>
71
- </div>
72
-
73
-
74
-
75
- </div>
76
-
77
- <div id="project-metadata">
78
-
79
-
80
-
81
- <div id="classindex-section" class="section project-section">
82
- <h3 class="section-header">Class/Module Index
83
- <span class="search-toggle"><img src="../../images/find.png"
84
- height="16" width="16" alt="[+]"
85
- title="show/hide quicksearch" /></span></h3>
86
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
87
- <fieldset>
88
- <legend>Quicksearch</legend>
89
- <input type="text" name="quicksearch" value=""
90
- class="quicksearch-field" />
91
- </fieldset>
92
- </form>
93
-
94
- <ul class="link-list">
95
-
96
- <li><a href="../../Resque.html">Resque</a></li>
97
-
98
- <li><a href="../../Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a></li>
99
-
100
- <li><a href="../../Resque/Failure.html">Resque::Failure</a></li>
101
-
102
- <li><a href="../../Resque/Failure/Base.html">Resque::Failure::Base</a></li>
103
-
104
- <li><a href="../../Resque/Job.html">Resque::Job</a></li>
105
-
106
- <li><a href="../../Resque/JobWithStatus.html">Resque::JobWithStatus</a></li>
107
-
108
- <li><a href="../../Resque/Status.html">Resque::Status</a></li>
109
-
110
- <li><a href="../../Resque/Worker.html">Resque::Worker</a></li>
111
-
112
- <li><a href="../../ResqueUi.html">ResqueUi</a></li>
113
-
114
- <li><a href="../../ResqueUi/Cap.html">ResqueUi::Cap</a></li>
115
-
116
- <li><a href="../../ResqueUi/Engine.html">ResqueUi::Engine</a></li>
117
-
118
- <li><a href="../../ResqueScheduler.html">ResqueScheduler</a></li>
119
-
120
- </ul>
121
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
122
- </div>
123
-
124
-
125
- </div>
126
- </div>
127
-
128
- <div id="documentation">
129
- <h1 class="class">Resque::Failure::Base</h1>
130
-
131
- <div id="description" class="description">
132
-
133
- </div><!-- description -->
134
-
135
-
136
-
137
-
138
- <div id="5Buntitled-5D" class="documentation-section">
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
- <!-- Attributes -->
147
- <div id="attribute-method-details" class="method-section section">
148
- <h3 class="section-header">Attributes</h3>
149
-
150
-
151
- <div id="failed_at-attribute-method" class="method-detail">
152
- <a name="failed_at"></a>
153
-
154
- <a name="failed_at="></a>
155
-
156
- <div class="method-heading attribute-method-heading">
157
- <span class="method-name">failed_at</span><span
158
- class="attribute-access-type">[RW]</span>
159
- </div>
160
-
161
- <div class="method-description">
162
-
163
- <p>When the job originally failed. Used when clearing a single failure</p>
164
-
165
- </div>
166
- </div>
167
-
168
- </div><!-- attribute-method-details -->
169
-
170
-
171
- <!-- Methods -->
172
-
173
- <div id="public-class-method-details" class="method-section section">
174
- <h3 class="section-header">Public Class Methods</h3>
175
-
176
-
177
- <div id="new-method" class="method-detail ">
178
- <a name="method-c-new"></a>
179
-
180
-
181
- <div class="method-heading">
182
- <span class="method-name">new</span><span
183
- class="method-args">(exception, worker, queue, payload, failed_at = nil)</span>
184
- <span class="method-click-advice">click to toggle source</span>
185
- </div>
186
-
187
-
188
- <div class="method-description">
189
-
190
-
191
-
192
-
193
-
194
- <div class="method-source-code" id="new-source">
195
- <pre>
196
- <span class="ruby-comment"># File lib/resque_overrides.rb, line 287</span>
197
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">exception</span>, <span class="ruby-identifier">worker</span>, <span class="ruby-identifier">queue</span>, <span class="ruby-identifier">payload</span>, <span class="ruby-identifier">failed_at</span> = <span class="ruby-keyword">nil</span>)
198
- <span class="ruby-ivar">@exception</span> = <span class="ruby-identifier">exception</span>
199
- <span class="ruby-ivar">@worker</span> = <span class="ruby-identifier">worker</span>
200
- <span class="ruby-ivar">@queue</span> = <span class="ruby-identifier">queue</span>
201
- <span class="ruby-ivar">@payload</span> = <span class="ruby-identifier">payload</span>
202
- <span class="ruby-ivar">@failed_at</span> = <span class="ruby-identifier">failed_at</span>
203
- <span class="ruby-keyword">end</span></pre>
204
- </div><!-- new-source -->
205
-
206
- </div>
207
-
208
-
209
-
210
-
211
- </div><!-- new-method -->
212
-
213
-
214
- </div><!-- public-class-method-details -->
215
-
216
- </div><!-- 5Buntitled-5D -->
217
-
218
-
219
- </div><!-- documentation -->
220
-
221
- <div id="validator-badges">
222
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
223
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
224
- Rdoc Generator</a> 2</small>.</p>
225
- </div>
226
-
227
- </body>
228
- </html>
229
-
@@ -1,202 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
-
8
- <title>Module: Resque::Failure</title>
9
-
10
- <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
-
12
- <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
- <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
- <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
- <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
-
17
- </head>
18
- <body id="top" class="module">
19
-
20
- <div id="metadata">
21
- <div id="home-metadata">
22
- <div id="home-section" class="section">
23
- <h3 class="section-header">
24
- <a href="../index.html">Home</a>
25
- <a href="../index.html#classes">Classes</a>
26
- <a href="../index.html#methods">Methods</a>
27
- </h3>
28
- </div>
29
- </div>
30
-
31
- <div id="file-metadata">
32
- <div id="file-list-section" class="section">
33
- <h3 class="section-header">In Files</h3>
34
- <div class="section-body">
35
- <ul>
36
-
37
- <li><a href="../lib/resque_ui/overrides/resque/failure/failure_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
- class="thickbox" title="lib/resque_ui/overrides/resque/failure/failure.rb">lib/resque_ui/overrides/resque/failure/failure.rb</a></li>
39
-
40
- </ul>
41
- </div>
42
- </div>
43
-
44
-
45
- </div>
46
-
47
- <div id="class-metadata">
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
- <!-- Method Quickref -->
56
- <div id="method-list-section" class="section">
57
- <h3 class="section-header">Methods</h3>
58
- <ul class="link-list">
59
-
60
- <li><a href="#method-c-requeue_class">::requeue_class</a></li>
61
-
62
- </ul>
63
- </div>
64
-
65
-
66
-
67
- </div>
68
-
69
- <div id="project-metadata">
70
-
71
-
72
-
73
- <div id="classindex-section" class="section project-section">
74
- <h3 class="section-header">Class/Module Index
75
- <span class="search-toggle"><img src="../images/find.png"
76
- height="16" width="16" alt="[+]"
77
- title="show/hide quicksearch" /></span></h3>
78
- <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
79
- <fieldset>
80
- <legend>Quicksearch</legend>
81
- <input type="text" name="quicksearch" value=""
82
- class="quicksearch-field" />
83
- </fieldset>
84
- </form>
85
-
86
- <ul class="link-list">
87
-
88
- <li><a href="../Resque.html">Resque</a></li>
89
-
90
- <li><a href="../Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a></li>
91
-
92
- <li><a href="../Resque/Failure.html">Resque::Failure</a></li>
93
-
94
- <li><a href="../Resque/Job.html">Resque::Job</a></li>
95
-
96
- <li><a href="../Resque/JobWithStatus.html">Resque::JobWithStatus</a></li>
97
-
98
- <li><a href="../Resque/Status.html">Resque::Status</a></li>
99
-
100
- <li><a href="../Resque/Worker.html">Resque::Worker</a></li>
101
-
102
- <li><a href="../ResqueUi.html">ResqueUi</a></li>
103
-
104
- <li><a href="../ResqueUi/Cap.html">ResqueUi::Cap</a></li>
105
-
106
- <li><a href="../ResqueUi/Engine.html">ResqueUi::Engine</a></li>
107
-
108
- <li><a href="../ResqueScheduler.html">ResqueScheduler</a></li>
109
-
110
- </ul>
111
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
112
- </div>
113
-
114
-
115
- </div>
116
- </div>
117
-
118
- <div id="documentation">
119
- <h1 class="module">Resque::Failure</h1>
120
-
121
- <div id="description" class="description">
122
-
123
- </div><!-- description -->
124
-
125
-
126
-
127
-
128
- <div id="5Buntitled-5D" class="documentation-section">
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
- <!-- Methods -->
138
-
139
- <div id="public-class-method-details" class="method-section section">
140
- <h3 class="section-header">Public Class Methods</h3>
141
-
142
-
143
- <div id="requeue_class-method" class="method-detail ">
144
- <a name="method-c-requeue_class"></a>
145
-
146
-
147
- <div class="method-heading">
148
- <span class="method-name">requeue_class</span><span
149
- class="method-args">(failed_class)</span>
150
- <span class="method-click-advice">click to toggle source</span>
151
- </div>
152
-
153
-
154
- <div class="method-description">
155
-
156
- <p>Requeues all failed jobs of a given class</p>
157
-
158
-
159
-
160
- <div class="method-source-code" id="requeue_class-source">
161
- <pre>
162
- <span class="ruby-comment"># File lib/resque_ui/overrides/resque/failure/failure.rb, line 7</span>
163
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">requeue_class</span>(<span class="ruby-identifier">failed_class</span>)
164
- <span class="ruby-identifier">length</span> = <span class="ruby-constant">Resque</span>.<span class="ruby-identifier">redis</span>.<span class="ruby-identifier">llen</span>(<span class="ruby-value">:failed</span>)
165
- <span class="ruby-identifier">i</span> = <span class="ruby-value">0</span>
166
- <span class="ruby-identifier">length</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword">do</span>
167
- <span class="ruby-identifier">f</span> = <span class="ruby-constant">Resque</span>.<span class="ruby-identifier">list_range</span>(<span class="ruby-value">:failed</span>, <span class="ruby-identifier">i</span>, <span class="ruby-value">1</span>)
168
- <span class="ruby-keyword">if</span> <span class="ruby-identifier">f</span> <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">failed_class</span>.<span class="ruby-identifier">blank?</span> <span class="ruby-operator">||</span> (<span class="ruby-identifier">f</span>[<span class="ruby-string">&quot;payload&quot;</span>][<span class="ruby-string">&quot;class&quot;</span>] <span class="ruby-operator">==</span> <span class="ruby-identifier">failed_class</span>))
169
- <span class="ruby-constant">Resque</span>.<span class="ruby-identifier">redis</span>.<span class="ruby-identifier">lrem</span>(<span class="ruby-value">:failed</span>, <span class="ruby-value">0</span>, <span class="ruby-identifier">f</span>.<span class="ruby-identifier">to_json</span>)
170
- <span class="ruby-identifier">args</span> = <span class="ruby-identifier">f</span>[<span class="ruby-string">&quot;payload&quot;</span>][<span class="ruby-string">&quot;args&quot;</span>]
171
- <span class="ruby-constant">Resque</span>.<span class="ruby-identifier">enqueue</span>(<span class="ruby-identifier">eval</span>(<span class="ruby-identifier">f</span>[<span class="ruby-string">&quot;payload&quot;</span>][<span class="ruby-string">&quot;class&quot;</span>]), *<span class="ruby-identifier">args</span>)
172
- <span class="ruby-keyword">else</span>
173
- <span class="ruby-identifier">i</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
174
- <span class="ruby-keyword">end</span>
175
- <span class="ruby-keyword">end</span>
176
- <span class="ruby-keyword">end</span></pre>
177
- </div><!-- requeue_class-source -->
178
-
179
- </div>
180
-
181
-
182
-
183
-
184
- </div><!-- requeue_class-method -->
185
-
186
-
187
- </div><!-- public-class-method-details -->
188
-
189
- </div><!-- 5Buntitled-5D -->
190
-
191
-
192
- </div><!-- documentation -->
193
-
194
- <div id="validator-badges">
195
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
196
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
197
- Rdoc Generator</a> 2</small>.</p>
198
- </div>
199
-
200
- </body>
201
- </html>
202
-
@@ -1,54 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
-
5
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
- <head>
7
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
-
9
- <title>File: resque_overrides.rb [ResqueUi 3.0.0]</title>
10
-
11
- <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />
12
-
13
- <script src="../js/jquery.js" type="text/javascript"
14
- charset="utf-8"></script>
15
- <script src="../js/thickbox-compressed.js" type="text/javascript"
16
- charset="utf-8"></script>
17
- <script src="../js/quicksearch.js" type="text/javascript"
18
- charset="utf-8"></script>
19
- <script src="../js/darkfish.js" type="text/javascript"
20
- charset="utf-8"></script>
21
- </head>
22
-
23
- <body class="file file-popup">
24
- <div id="metadata">
25
- <dl>
26
- <dt class="modified-date">Last Modified</dt>
27
- <dd class="modified-date">Thu Mar 03 13:20:55 -0500 2011</dd>
28
-
29
-
30
- <dt class="requires">Requires</dt>
31
- <dd class="requires">
32
- <ul>
33
-
34
- <li>socket</li>
35
-
36
- </ul>
37
- </dd>
38
-
39
-
40
-
41
- </dl>
42
- </div>
43
-
44
- <div id="documentation">
45
-
46
- <div class="description">
47
- <h2>Description</h2>
48
-
49
- </div>
50
-
51
- </div>
52
- </body>
53
- </html>
54
-
@@ -1,52 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
-
5
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
- <head>
7
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
-
9
- <title>File: resque_scheduler_overrides.rb [ResqueUi 3.0.0]</title>
10
-
11
- <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />
12
-
13
- <script src="../js/jquery.js" type="text/javascript"
14
- charset="utf-8"></script>
15
- <script src="../js/thickbox-compressed.js" type="text/javascript"
16
- charset="utf-8"></script>
17
- <script src="../js/quicksearch.js" type="text/javascript"
18
- charset="utf-8"></script>
19
- <script src="../js/darkfish.js" type="text/javascript"
20
- charset="utf-8"></script>
21
- </head>
22
-
23
- <body class="file file-popup">
24
- <div id="metadata">
25
- <dl>
26
- <dt class="modified-date">Last Modified</dt>
27
- <dd class="modified-date">Mon Nov 22 14:39:47 -0500 2010</dd>
28
-
29
-
30
- <dt class="requires">Requires</dt>
31
- <dd class="requires">
32
- <ul>
33
-
34
- </ul>
35
- </dd>
36
-
37
-
38
-
39
- </dl>
40
- </div>
41
-
42
- <div id="documentation">
43
-
44
- <div class="description">
45
- <h2>Description</h2>
46
-
47
- </div>
48
-
49
- </div>
50
- </body>
51
- </html>
52
-
@@ -1,52 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
-
5
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
- <head>
7
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
-
9
- <title>File: resque_status_overrides.rb [ResqueUi 3.0.0]</title>
10
-
11
- <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />
12
-
13
- <script src="../js/jquery.js" type="text/javascript"
14
- charset="utf-8"></script>
15
- <script src="../js/thickbox-compressed.js" type="text/javascript"
16
- charset="utf-8"></script>
17
- <script src="../js/quicksearch.js" type="text/javascript"
18
- charset="utf-8"></script>
19
- <script src="../js/darkfish.js" type="text/javascript"
20
- charset="utf-8"></script>
21
- </head>
22
-
23
- <body class="file file-popup">
24
- <div id="metadata">
25
- <dl>
26
- <dt class="modified-date">Last Modified</dt>
27
- <dd class="modified-date">Mon Apr 11 16:24:56 -0400 2011</dd>
28
-
29
-
30
- <dt class="requires">Requires</dt>
31
- <dd class="requires">
32
- <ul>
33
-
34
- </ul>
35
- </dd>
36
-
37
-
38
-
39
- </dl>
40
- </div>
41
-
42
- <div id="documentation">
43
-
44
- <div class="description">
45
- <h2>Description</h2>
46
-
47
- </div>
48
-
49
- </div>
50
- </body>
51
- </html>
52
-
@@ -1,52 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
-
5
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
- <head>
7
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
-
9
- <title>File: engine.rb [ResqueUi 3.0.0]</title>
10
-
11
- <link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
12
-
13
- <script src="../../js/jquery.js" type="text/javascript"
14
- charset="utf-8"></script>
15
- <script src="../../js/thickbox-compressed.js" type="text/javascript"
16
- charset="utf-8"></script>
17
- <script src="../../js/quicksearch.js" type="text/javascript"
18
- charset="utf-8"></script>
19
- <script src="../../js/darkfish.js" type="text/javascript"
20
- charset="utf-8"></script>
21
- </head>
22
-
23
- <body class="file file-popup">
24
- <div id="metadata">
25
- <dl>
26
- <dt class="modified-date">Last Modified</dt>
27
- <dd class="modified-date">Wed Sep 14 12:56:01 -0400 2011</dd>
28
-
29
-
30
- <dt class="requires">Requires</dt>
31
- <dd class="requires">
32
- <ul>
33
-
34
- </ul>
35
- </dd>
36
-
37
-
38
-
39
- </dl>
40
- </div>
41
-
42
- <div id="documentation">
43
-
44
- <div class="description">
45
- <h2>Description</h2>
46
-
47
- </div>
48
-
49
- </div>
50
- </body>
51
- </html>
52
-
@@ -1,54 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
-
5
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
- <head>
7
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
-
9
- <title>File: failure.rb [ResqueUi 3.0.0]</title>
10
-
11
- <link type="text/css" media="screen" href="../../../../../rdoc.css" rel="stylesheet" />
12
-
13
- <script src="../../../../../js/jquery.js" type="text/javascript"
14
- charset="utf-8"></script>
15
- <script src="../../../../../js/thickbox-compressed.js" type="text/javascript"
16
- charset="utf-8"></script>
17
- <script src="../../../../../js/quicksearch.js" type="text/javascript"
18
- charset="utf-8"></script>
19
- <script src="../../../../../js/darkfish.js" type="text/javascript"
20
- charset="utf-8"></script>
21
- </head>
22
-
23
- <body class="file file-popup">
24
- <div id="metadata">
25
- <dl>
26
- <dt class="modified-date">Last Modified</dt>
27
- <dd class="modified-date">Fri Sep 16 14:50:09 -0400 2011</dd>
28
-
29
-
30
- <dt class="requires">Requires</dt>
31
- <dd class="requires">
32
- <ul>
33
-
34
- <li>resque/failure/redis</li>
35
-
36
- </ul>
37
- </dd>
38
-
39
-
40
-
41
- </dl>
42
- </div>
43
-
44
- <div id="documentation">
45
-
46
- <div class="description">
47
- <h2>Description</h2>
48
-
49
- </div>
50
-
51
- </div>
52
- </body>
53
- </html>
54
-
@@ -1,52 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
-
5
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
- <head>
7
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
-
9
- <title>File: resque_ui.rb [ResqueUi 3.0.0]</title>
10
-
11
- <link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
12
-
13
- <script src="../../js/jquery.js" type="text/javascript"
14
- charset="utf-8"></script>
15
- <script src="../../js/thickbox-compressed.js" type="text/javascript"
16
- charset="utf-8"></script>
17
- <script src="../../js/quicksearch.js" type="text/javascript"
18
- charset="utf-8"></script>
19
- <script src="../../js/darkfish.js" type="text/javascript"
20
- charset="utf-8"></script>
21
- </head>
22
-
23
- <body class="file file-popup">
24
- <div id="metadata">
25
- <dl>
26
- <dt class="modified-date">Last Modified</dt>
27
- <dd class="modified-date">Wed Sep 14 12:57:01 -0400 2011</dd>
28
-
29
-
30
- <dt class="requires">Requires</dt>
31
- <dd class="requires">
32
- <ul>
33
-
34
- </ul>
35
- </dd>
36
-
37
-
38
-
39
- </dl>
40
- </div>
41
-
42
- <div id="documentation">
43
-
44
- <div class="description">
45
- <h2>Description</h2>
46
-
47
- </div>
48
-
49
- </div>
50
- </body>
51
- </html>
52
-
@@ -1,64 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
-
5
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
- <head>
7
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
-
9
- <title>File: tasks.rb [ResqueUi 3.0.0]</title>
10
-
11
- <link type="text/css" media="screen" href="../../rdoc.css" rel="stylesheet" />
12
-
13
- <script src="../../js/jquery.js" type="text/javascript"
14
- charset="utf-8"></script>
15
- <script src="../../js/thickbox-compressed.js" type="text/javascript"
16
- charset="utf-8"></script>
17
- <script src="../../js/quicksearch.js" type="text/javascript"
18
- charset="utf-8"></script>
19
- <script src="../../js/darkfish.js" type="text/javascript"
20
- charset="utf-8"></script>
21
- </head>
22
-
23
- <body class="file file-popup">
24
- <div id="metadata">
25
- <dl>
26
- <dt class="modified-date">Last Modified</dt>
27
- <dd class="modified-date">Wed Sep 14 14:22:25 -0400 2011</dd>
28
-
29
-
30
- <dt class="requires">Requires</dt>
31
- <dd class="requires">
32
- <ul>
33
-
34
- <li>resque/tasks</li>
35
-
36
- <li>resque</li>
37
-
38
- <li>resque</li>
39
-
40
- <li>resque</li>
41
-
42
- <li>resque</li>
43
-
44
- <li>resque_scheduler</li>
45
-
46
- </ul>
47
- </dd>
48
-
49
-
50
-
51
- </dl>
52
- </div>
53
-
54
- <div id="documentation">
55
-
56
- <div class="description">
57
- <h2>Description</h2>
58
-
59
- </div>
60
-
61
- </div>
62
- </body>
63
- </html>
64
-