resque_ui 3.2.3 → 3.2.4

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,8 @@
1
+ == 3.2.4 2011-12-08
2
+
3
+ * Override the filter_backtrace method for the redis backend failure object introduced in resque 1.18.0.
4
+ Filter needs to be different for resque_ui, otherwise backtrace is always an empty array on the cleaner page.
5
+
1
6
  == 3.2.3 2011-11-15
2
7
 
3
8
  * Fixes resque-cleaner UI bug. It was always showing Just now for when the job was retried.
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 3
3
3
  :minor: 2
4
- :patch: 3
4
+ :patch: 4
5
5
  :build:
@@ -89,7 +89,7 @@
89
89
  <dd><code><%= job['exception'] %></code></dd>
90
90
  <dt>Error</dt>
91
91
  <dd class='error'>
92
- <% if job['backtrace'] %>
92
+ <% if job['backtrace'].present? %>
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 %>
@@ -3,6 +3,7 @@ require 'resque_ui/cap'
3
3
  require 'resque_ui/overrides/resque/worker'
4
4
  require 'resque_ui/overrides/resque/resque'
5
5
  require 'resque_ui/overrides/resque/job'
6
+ require 'resque_ui/overrides/resque/failure/redis'
6
7
  if Resque.respond_to? :schedule
7
8
  require 'resque_scheduler/tasks'
8
9
  require 'resque_ui/overrides/resque_scheduler/resque_scheduler'
@@ -0,0 +1,11 @@
1
+ require 'resque/failure/redis'
2
+ module Resque
3
+ module Failure
4
+ class Redis
5
+ def filter_backtrace(backtrace)
6
+ index = backtrace.index { |item| item.include?('/lib/resque_ui/overrides/resque/job.rb') }
7
+ backtrace.first(index.to_i)
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,199 +1,186 @@
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">
1
+ <!DOCTYPE html>
2
+
3
+ <html>
5
4
  <head>
6
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
7
6
 
8
- <title>Class: Object</title>
7
+ <title>Class: Object</title>
9
8
 
10
- <link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
9
+ <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
11
10
 
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>
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "./";
13
+ </script>
16
14
 
17
- </head>
18
- <body id="top" class="class">
15
+ <script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
19
21
 
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/cap_recipes_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
- class="thickbox" title="lib/resque_ui/cap_recipes.rb">lib/resque_ui/cap_recipes.rb</a></li>
39
-
40
- </ul>
41
- </div>
42
- </div>
43
22
 
44
-
45
- </div>
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="./index.html">Home</a>
28
+ <a href="./table_of_contents.html#classes">Classes</a>
29
+ <a href="./table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/resque_ui/cap_recipes.rb
51
+ </ul>
52
+ </nav>
46
53
 
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"></p>
54
-
55
- </div>
56
-
54
+
55
+ </div>
57
56
 
58
-
57
+ <div id="class-metadata">
58
+
59
+ <nav id="parent-class-section" class="section">
60
+ <h3 class="section-header">Parent</h3>
61
+
62
+ <p class="link">
63
+
64
+ </nav>
59
65
 
60
-
66
+
67
+ <!-- Method Quickref -->
68
+ <nav id="method-list-section" class="section">
69
+ <h3 class="section-header">Methods</h3>
61
70
 
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-i-get_rake">#get_rake</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/Job.html">Resque::Job</a></li>
101
-
102
- <li><a href="./Resque/JobWithStatus.html">Resque::JobWithStatus</a></li>
103
-
104
- <li><a href="./Resque/Status.html">Resque::Status</a></li>
105
-
106
- <li><a href="./Resque/Worker.html">Resque::Worker</a></li>
107
-
108
- <li><a href="./ResqueUi.html">ResqueUi</a></li>
109
-
110
- <li><a href="./ResqueUi/Cap.html">ResqueUi::Cap</a></li>
111
-
112
- <li><a href="./ResqueUi/Engine.html">ResqueUi::Engine</a></li>
113
-
114
- <li><a href="./Object.html">Object</a></li>
115
-
116
- <li><a href="./ResqueScheduler.html">ResqueScheduler</a></li>
117
-
118
- </ul>
119
- <div id="no-class-search-results" style="display: none;">No matching classes.</div>
120
- </div>
71
+ <ul class="link-list">
72
+
73
+ <li><a href="#method-i-get_rake">#get_rake</a>
74
+
75
+ </ul>
76
+ </nav>
121
77
 
122
-
123
- </div>
124
78
  </div>
125
79
 
126
- <div id="documentation">
127
- <h1 class="class">Object</h1>
80
+ <div id="project-metadata">
81
+
82
+ <nav id="classindex-section" class="section project-section">
83
+ <h3 class="section-header">Class and Module Index</h3>
128
84
 
129
- <div id="description" class="description">
130
-
131
- </div><!-- description -->
85
+ <ul class="link-list">
86
+
87
+ <li><a href="./Resque.html">Resque</a>
88
+
89
+ <li><a href="./Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a>
90
+
91
+ <li><a href="./Resque/Failure.html">Resque::Failure</a>
92
+
93
+ <li><a href="./Resque/Failure/Redis.html">Resque::Failure::Redis</a>
94
+
95
+ <li><a href="./Resque/Job.html">Resque::Job</a>
96
+
97
+ <li><a href="./Resque/JobWithStatus.html">Resque::JobWithStatus</a>
98
+
99
+ <li><a href="./Resque/Status.html">Resque::Status</a>
100
+
101
+ <li><a href="./Resque/Worker.html">Resque::Worker</a>
102
+
103
+ <li><a href="./ResqueUi.html">ResqueUi</a>
104
+
105
+ <li><a href="./ResqueUi/Cap.html">ResqueUi::Cap</a>
106
+
107
+ <li><a href="./ResqueUi/Engine.html">ResqueUi::Engine</a>
108
+
109
+ <li><a href="./Object.html">Object</a>
110
+
111
+ <li><a href="./ResqueScheduler.html">ResqueScheduler</a>
112
+
113
+ </ul>
114
+ </nav>
132
115
 
116
+ </div>
117
+ </nav>
118
+
119
+ <div id="documentation">
120
+ <h1 class="class">class Object</h1>
121
+
122
+ <div id="description" class="description">
133
123
 
124
+ </div><!-- description -->
125
+
126
+
127
+
128
+
129
+ <section id="5Buntitled-5D" class="documentation-section">
134
130
 
135
-
136
- <div id="5Buntitled-5D" class="documentation-section">
137
-
138
131
 
139
-
132
+
140
133
 
141
-
134
+
142
135
 
143
-
136
+
144
137
 
145
- <!-- Methods -->
146
-
147
- <div id="public-instance-method-details" class="method-section section">
148
- <h3 class="section-header">Public Instance Methods</h3>
138
+ <!-- Methods -->
139
+
140
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
141
+ <h3 class="section-header">Public Instance Methods</h3>
149
142
 
150
-
151
- <div id="get_rake-method" class="method-detail ">
152
- <a name="method-i-get_rake"></a>
143
+
144
+ <div id="method-i-get_rake" class="method-detail ">
145
+
146
+ <div class="method-heading">
147
+ <span class="method-name">get_rake</span><span
148
+ class="method-args">()</span>
149
+ <span class="method-click-advice">click to toggle source</span>
150
+ </div>
151
+
153
152
 
153
+ <div class="method-description">
154
+
154
155
 
155
- <div class="method-heading">
156
- <span class="method-name">get_rake</span><span
157
- class="method-args">()</span>
158
- <span class="method-click-advice">click to toggle source</span>
159
- </div>
160
156
 
161
157
 
162
- <div class="method-description">
163
-
164
-
165
-
166
-
167
-
168
- <div class="method-source-code" id="get_rake-source">
169
- <pre>
170
- <span class="ruby-comment"># File lib/resque_ui/cap_recipes.rb, line 54</span>
158
+
159
+ <div class="method-source-code" id="get_rake-source">
160
+ <pre><span class="ruby-comment"># File lib/resque_ui/cap_recipes.rb, line 54</span>
171
161
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_rake</span>
172
162
  <span class="ruby-identifier">fetch</span>(<span class="ruby-value">:resque_rake</span>, <span class="ruby-identifier">fetch</span>(<span class="ruby-value">:rake</span>, <span class="ruby-string">&quot;rake&quot;</span>))
173
163
  <span class="ruby-keyword">end</span></pre>
174
- </div><!-- get_rake-source -->
175
-
176
- </div>
177
-
164
+ </div><!-- get_rake-source -->
178
165
 
166
+ </div>
179
167
 
180
-
181
- </div><!-- get_rake-method -->
168
+
169
+
170
+
171
+ </div><!-- get_rake-method -->
182
172
 
183
-
184
- </div><!-- public-instance-method-details -->
185
173
 
186
- </div><!-- 5Buntitled-5D -->
174
+ </section><!-- public-instance-method-details -->
187
175
 
176
+ </section><!-- 5Buntitled-5D -->
188
177
 
189
- </div><!-- documentation -->
178
+ </div><!-- documentation -->
190
179
 
191
- <div id="validator-badges">
192
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
193
- <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
194
- Rdoc Generator</a> 2</small>.</p>
195
- </div>
196
180
 
197
- </body>
198
- </html>
181
+ <footer id="validator-badges">
182
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
183
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.11.
184
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
185
+ </footer>
199
186
 
@@ -0,0 +1,185 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>Class: Redis</title>
8
+
9
+ <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "./";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="./index.html">Home</a>
28
+ <a href="./table_of_contents.html#classes">Classes</a>
29
+ <a href="./table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/resque_ui/overrides/resque/failure/redis.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+ <nav id="parent-class-section" class="section">
60
+ <h3 class="section-header">Parent</h3>
61
+
62
+ <p class="link"><a href="Object.html">Object</a>
63
+
64
+ </nav>
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <nav id="method-list-section" class="section">
69
+ <h3 class="section-header">Methods</h3>
70
+
71
+ <ul class="link-list">
72
+
73
+ <li><a href="#method-i-filter_backtrace">#filter_backtrace</a>
74
+
75
+ </ul>
76
+ </nav>
77
+
78
+ </div>
79
+
80
+ <div id="project-metadata">
81
+
82
+ <nav id="classindex-section" class="section project-section">
83
+ <h3 class="section-header">Class and Module Index</h3>
84
+
85
+ <ul class="link-list">
86
+
87
+ <li><a href="./Resque.html">Resque</a>
88
+
89
+ <li><a href="./Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a>
90
+
91
+ <li><a href="./Resque/Job.html">Resque::Job</a>
92
+
93
+ <li><a href="./Resque/JobWithStatus.html">Resque::JobWithStatus</a>
94
+
95
+ <li><a href="./Resque/Status.html">Resque::Status</a>
96
+
97
+ <li><a href="./Resque/Worker.html">Resque::Worker</a>
98
+
99
+ <li><a href="./ResqueUi.html">ResqueUi</a>
100
+
101
+ <li><a href="./ResqueUi/Cap.html">ResqueUi::Cap</a>
102
+
103
+ <li><a href="./ResqueUi/Engine.html">ResqueUi::Engine</a>
104
+
105
+ <li><a href="./Object.html">Object</a>
106
+
107
+ <li><a href="./Redis.html">Redis</a>
108
+
109
+ <li><a href="./ResqueScheduler.html">ResqueScheduler</a>
110
+
111
+ </ul>
112
+ </nav>
113
+
114
+ </div>
115
+ </nav>
116
+
117
+ <div id="documentation">
118
+ <h1 class="class">class Redis</h1>
119
+
120
+ <div id="description" class="description">
121
+
122
+ </div><!-- description -->
123
+
124
+
125
+
126
+
127
+ <section id="5Buntitled-5D" class="documentation-section">
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+ <!-- Methods -->
137
+
138
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
139
+ <h3 class="section-header">Public Instance Methods</h3>
140
+
141
+
142
+ <div id="method-i-filter_backtrace" class="method-detail ">
143
+
144
+ <div class="method-heading">
145
+ <span class="method-name">filter_backtrace</span><span
146
+ class="method-args">(backtrace)</span>
147
+ <span class="method-click-advice">click to toggle source</span>
148
+ </div>
149
+
150
+
151
+ <div class="method-description">
152
+
153
+
154
+
155
+
156
+
157
+ <div class="method-source-code" id="filter_backtrace-source">
158
+ <pre><span class="ruby-comment"># File lib/resque_ui/overrides/resque/failure/redis.rb, line 2</span>
159
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">filter_backtrace</span>(<span class="ruby-identifier">backtrace</span>)
160
+ <span class="ruby-identifier">index</span> = <span class="ruby-identifier">backtrace</span>.<span class="ruby-identifier">index</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">item</span><span class="ruby-operator">|</span> <span class="ruby-identifier">item</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-string">'/lib/resque_ui/overrides/resque/job.rb'</span>) }
161
+ <span class="ruby-identifier">backtrace</span>.<span class="ruby-identifier">first</span>(<span class="ruby-identifier">index</span>.<span class="ruby-identifier">to_i</span>)
162
+ <span class="ruby-keyword">end</span></pre>
163
+ </div><!-- filter_backtrace-source -->
164
+
165
+ </div>
166
+
167
+
168
+
169
+
170
+ </div><!-- filter_backtrace-method -->
171
+
172
+
173
+ </section><!-- public-instance-method-details -->
174
+
175
+ </section><!-- 5Buntitled-5D -->
176
+
177
+ </div><!-- documentation -->
178
+
179
+
180
+ <footer id="validator-badges">
181
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
182
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.11.
183
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
184
+ </footer>
185
+