resque_ui 3.0.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/Gemfile +1 -0
  2. data/Gemfile.lock +3 -0
  3. data/History.txt +4 -0
  4. data/README.markdown +9 -5
  5. data/Rakefile +1 -1
  6. data/VERSION.yml +1 -1
  7. data/app/assets/stylesheets/resque_cleaner/cleaner.css +62 -0
  8. data/app/controllers/resque_controller.rb +167 -43
  9. data/app/helpers/resque_helper.rb +60 -27
  10. data/app/views/layouts/resque.html.erb +1 -0
  11. data/app/views/resque/_limiter.html.erb +12 -0
  12. data/app/views/resque/_paginate.html.erb +53 -0
  13. data/app/views/resque/_queues.html.erb +2 -2
  14. data/app/views/resque/_working.html.erb +1 -1
  15. data/app/views/resque/cleaner.html.erb +41 -0
  16. data/app/views/resque/cleaner_exec.html.erb +6 -0
  17. data/app/views/resque/cleaner_list.html.erb +172 -0
  18. data/app/views/resque/delayed_timestamp.html.erb +1 -1
  19. data/lib/resque_ui.rb +2 -1
  20. data/rdoc/Resque/ChainedJobWithStatus.html +0 -2
  21. data/rdoc/Resque/Job.html +0 -2
  22. data/rdoc/Resque/JobWithStatus.html +0 -2
  23. data/rdoc/Resque/Status.html +0 -2
  24. data/rdoc/Resque/Worker.html +0 -2
  25. data/rdoc/Resque.html +0 -7
  26. data/rdoc/ResqueScheduler.html +0 -2
  27. data/rdoc/ResqueUi/Cap.html +0 -2
  28. data/rdoc/ResqueUi/Engine.html +0 -2
  29. data/rdoc/ResqueUi.html +0 -2
  30. data/rdoc/created.rid +3 -4
  31. data/rdoc/index.html +3 -7
  32. data/rdoc/lib/resque_ui/cap_rb.html +1 -1
  33. data/rdoc/lib/resque_ui/cap_recipes_rb.html +1 -1
  34. data/rdoc/lib/resque_ui/overrides/resque/job_rb.html +1 -1
  35. data/rdoc/lib/resque_ui/overrides/resque/resque_rb.html +1 -1
  36. data/rdoc/lib/resque_ui/overrides/resque/worker_rb.html +1 -1
  37. data/rdoc/lib/resque_ui/overrides/resque_scheduler/resque_scheduler_rb.html +1 -1
  38. data/rdoc/lib/resque_ui/overrides/resque_status/chained_job_with_status_rb.html +1 -1
  39. data/rdoc/lib/resque_ui/overrides/resque_status/job_with_status_rb.html +1 -1
  40. data/rdoc/lib/resque_ui/overrides/resque_status/status_rb.html +1 -1
  41. data/rdoc/lib/resque_ui_rb.html +4 -4
  42. data/resque_ui.gemspec +12 -5
  43. metadata +20 -5
  44. data/app/views/resque/failed.html.erb +0 -54
  45. data/lib/resque_ui/overrides/resque/failure/failure.rb +0 -22
@@ -0,0 +1,41 @@
1
+ <div class="cleaner">
2
+ <div class="title clearfix">
3
+ <h1>Job Classes Failed</h1>
4
+ </div>
5
+
6
+ <table class="class_list">
7
+ <tr>
8
+ <th>Class</th>
9
+ <th>Failed</th>
10
+ <th>In last 1 hour</th>
11
+ <th>In last 3 hours</th>
12
+ <th>In last 24 hours</th>
13
+ <th>In last 3 days</th>
14
+ <th>In last 7 days</th>
15
+ </tr>
16
+ <% @stats.each do |klass, count| %>
17
+ <tr>
18
+ <td><%= klass %></td>
19
+ <td class="number"><a href="cleaner_list?c=<%= klass %>"><%= count["total"] %></a></td>
20
+ <td class="number"><a href="cleaner_list?c=<%= klass %>&f=1"><%= count["1h"] %></a></td>
21
+ <td class="number"><a href="cleaner_list?c=<%= klass %>&f=3"><%= count["3h"] %></a></td>
22
+ <td class="number"><a href="cleaner_list?c=<%= klass %>&f=24"><%= count["1d"] %></a></td>
23
+ <td class="number"><a href="cleaner_list?c=<%= klass %>&f=72"><%= count["3d"] %></a></td>
24
+ <td class="number"><a href="cleaner_list?c=<%= klass %>&f=168"><%= count["7d"] %></a></td>
25
+ </tr>
26
+ <% end %>
27
+ <tr class="total">
28
+ <td>Total</td>
29
+ <td class="number"><a href="cleaner_list"><%= @total["total"] %></a></td>
30
+ <td class="number"><a href="cleaner_list?f=1"><%= @total["1h"] %></a></td>
31
+ <td class="number"><a href="cleaner_list?f=3"><%= @total["3h"] %></a></td>
32
+ <td class="number"><a href="cleaner_list?f=24"><%= @total["1d"] %></a></td>
33
+ <td class="number"><a href="cleaner_list?f=72"><%= @total["3d"] %></a></td>
34
+ <td class="number"><a href="cleaner_list?f=168"><%= @total["7d"] %></a></td>
35
+ </tr>
36
+ </table>
37
+
38
+ <% if @cleaner.limiter.on? %>
39
+ <%= render :partial => 'limiter' %>
40
+ <% end %>
41
+ </div>
@@ -0,0 +1,6 @@
1
+ <div class="cleaner">
2
+ <p class="message">Processed <%= @count %> jobs.</p>
3
+ <p class="back_to_list">
4
+ <a href="<%=@link_url%>">Back to List</a>
5
+ </p>
6
+ </div>
@@ -0,0 +1,172 @@
1
+ <!-- Many code was copied from failed.erb of the original resque -->
2
+ <div class="cleaner">
3
+ <div class="title clearfix">
4
+ <h1>Failed Jobs</h1>
5
+ </div>
6
+
7
+ <div class="clearfix">
8
+ <div class="control_panel sub_header">
9
+ <form method="get">
10
+ <span class="class_filter">
11
+ Class: <%= class_filter("filter_class","c",@klasses,@klass)%>
12
+ </span>
13
+ <span class="exception_filter">
14
+ Exception: <%= exception_filter("filter_class","ex",@exceptions,@exception)%>
15
+ </span>
16
+ <span class="time_filter">
17
+ From: <%= time_filter("filter_from","f",@from)%>
18
+ </span>
19
+ <span class="time_filter">
20
+ To: <%= time_filter("filter_to","t",@to)%>
21
+ </span>
22
+ <input type="submit" value="Filter" />
23
+ </form>
24
+ </div>
25
+ </div>
26
+
27
+ <% if @count > 0 %>
28
+ <div class="clearfix">
29
+ <div class="control_panel sub_header">
30
+ <form method="post" id="exec" action="cleaner_exec">
31
+ <input type="hidden" name="c" value="<%=@klass%>" />
32
+ <input type="hidden" name="f" value="<%=@from%>" />
33
+ <input type="hidden" name="t" value="<%=@to%>" />
34
+ <input type="hidden" name="p" value="<%=@paginate.page%>" />
35
+ <input type="hidden" name="ex" value="<%=@exception%>" />
36
+ <select id="form_action" name="form_action">
37
+ <option id="default_option" value="" selected="selected">-- Select Action --</option>
38
+ <option value="clear">Clear</option>
39
+ <option value="retry_and_clear">Retry and Clear</option>
40
+ <option value="retry">Retry</option>
41
+ </select>
42
+ <a href="#" id="select_all">select all</a>
43
+ <a href="#" id="reset_all">reset</a>
44
+
45
+ <% if @paginate.max_page > 1 %>
46
+ <input type="checkbox" name="select_all_pages" value="1" id="select_all_pages" />Select all <%=@count%> jobs
47
+ <% end %>
48
+ <input type="hidden" name="sha1" id="sha1_list" />
49
+
50
+ </form>
51
+ </div>
52
+ </div>
53
+ <% end %>
54
+
55
+ <% start = 0 %>
56
+ <% failed = @paginate.paginated_jobs%>
57
+ <% index = 0 %>
58
+ <% date_format = "%Y/%m/%d %T %z" %>
59
+
60
+ <% if @paginate.max_page > 0 %>
61
+ <%= render :partial => 'paginate' %>
62
+ <ul class='failed'>
63
+ <%for job in failed%>
64
+ <% index += 1 %>
65
+ <li>
66
+ <dl>
67
+ <% if job.nil? %>
68
+ <dt>Error</dt>
69
+ <dd>Job <%= index%> could not be parsed; perhaps it contains invalid JSON?</dd>
70
+ <% else %>
71
+ <dt>
72
+ <input type="checkbox" id="<%=Digest::SHA1.hexdigest job.to_json %>" />
73
+ </dt>
74
+ <dd>&nbsp;</dd>
75
+ <dt>Worker</dt>
76
+ <dd>
77
+ <a href="<%= u(:workers, job['worker']) %>"><%= job['worker'].split(':')[0...2].join(':') %></a> on <b class='queue-tag'><%= job['queue'] %></b > at <b><span class="time"><%= Time.parse(job['failed_at']).strftime(date_format) %></span></b>
78
+ <% if job['retried_at'] %>
79
+ <div class='retried'>
80
+ Retried <b><span class="time"><%= job['retried_at'] %></span></b>
81
+ </div>
82
+ <% end %>
83
+ </dd>
84
+ <dt>Class</dt>
85
+ <dd><code><%= job['payload'] ? job['payload']['class'] : 'nil' %></code></dd>
86
+ <dt>Arguments</dt>
87
+ <dd><pre><%= job['payload'] ? show_args(job['payload']['args']).html_safe : 'nil' %></pre></dd>
88
+ <dt>Exception</dt>
89
+ <dd><code><%= job['exception'] %></code></dd>
90
+ <dt>Error</dt>
91
+ <dd class='error'>
92
+ <% if job['backtrace'] %>
93
+ <a href="#" class="backtrace"><%= h(job['error']) %></a>
94
+ <pre style='display:none'><%= job['backtrace'].join("\n").html_safe %></pre>
95
+ <% else %>
96
+ <%= job['error'].html_safe %>
97
+ <% end %>
98
+ </dd>
99
+ <% end %>
100
+ </dl>
101
+ <div class='r'>
102
+ </div>
103
+ </li>
104
+ <%end%>
105
+ </ul>
106
+ <%= render :partial => 'paginate' %>
107
+ <% else %>
108
+ Clean!
109
+ <% end %>
110
+ </div>
111
+
112
+ <script>
113
+ $(document).ready(function(){
114
+ $('#select_all_pages').click(function() {
115
+ updateCheckboxStaus();
116
+ });
117
+
118
+ $('#select_all').click(function() {
119
+ if (!$(this).hasClass('disabled')) {
120
+ $('.failed input').attr('checked','checked');
121
+ }
122
+ return false;
123
+ });
124
+ $('#reset_all').click(function() {
125
+ if (!$(this).hasClass('disabled')) {
126
+ $('.failed input').removeAttr('checked');
127
+ }
128
+ return false;
129
+ });
130
+
131
+ $('#form_action').change( function() {
132
+ if ($('#form_action option:selected').val()=='') return;
133
+
134
+ if ($('#select_all_pages:checked, .failed input:checked').length==0) {
135
+ alert('Please select jobs.');
136
+ $('#default_option').attr('selected','selected');
137
+ return false;
138
+ }
139
+
140
+ if (!confirm('Do you really want to proceed?')) {
141
+ $('#default_option').attr('selected','selected');
142
+ return false;
143
+ }
144
+
145
+ if ($('#select_all_pages:checked').length==0) {
146
+ setSha1();
147
+ }
148
+ $('#exec').submit();
149
+ });
150
+ });
151
+
152
+ function setSha1() {
153
+ var sha1 = "";
154
+ $('.failed input:checked').each( function() {
155
+ if (sha1.length>0) sha1 += ",";
156
+ sha1 += $(this).attr("id");
157
+ });
158
+
159
+ $('#sha1_list').val(sha1);
160
+ }
161
+
162
+ function updateCheckboxStaus() {
163
+ if ($('#select_all_pages:checked').length==1) {
164
+ $('#exec a').addClass('disabled');
165
+ $('.failed input').attr('disabled','disabled');
166
+ } else {
167
+ $('#exec a').removeClass('disabled');
168
+ $('.failed input').removeAttr('disabled');
169
+ }
170
+ };
171
+
172
+ </script>
@@ -13,7 +13,7 @@
13
13
  <% jobs.each do |job| %>
14
14
  <tr>
15
15
  <td class='class'><%= job['class'] %></td>
16
- <td class='args'><%=h job['args'].inspect %></td>
16
+ <td class='args'><%= job['args'].inspect.html_safe %></td>
17
17
  </tr>
18
18
  <% end %>
19
19
  <% if jobs.empty? %>
data/lib/resque_ui.rb CHANGED
@@ -3,7 +3,6 @@ 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/failure'
7
6
  if Resque.respond_to? :schedule
8
7
  require 'resque_scheduler/tasks'
9
8
  require 'resque_ui/overrides/resque_scheduler/resque_scheduler'
@@ -12,8 +11,10 @@ require 'resque/job_with_status'
12
11
  require 'resque_ui/overrides/resque_status/status'
13
12
  require 'resque_ui/overrides/resque_status/job_with_status'
14
13
  require 'resque_ui/overrides/resque_status/chained_job_with_status'
14
+ require 'resque-cleaner'
15
15
 
16
16
  Resque::Server.tabs << 'Statuses'
17
+ Resque::Server.tabs.delete 'Failed'
17
18
 
18
19
  module ResqueUi
19
20
  class Engine < Rails::Engine
@@ -101,8 +101,6 @@
101
101
 
102
102
  <li><a href="../Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a></li>
103
103
 
104
- <li><a href="../Resque/Failure.html">Resque::Failure</a></li>
105
-
106
104
  <li><a href="../Resque/Job.html">Resque::Job</a></li>
107
105
 
108
106
  <li><a href="../Resque/JobWithStatus.html">Resque::JobWithStatus</a></li>
data/rdoc/Resque/Job.html CHANGED
@@ -97,8 +97,6 @@
97
97
 
98
98
  <li><a href="../Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a></li>
99
99
 
100
- <li><a href="../Resque/Failure.html">Resque::Failure</a></li>
101
-
102
100
  <li><a href="../Resque/Job.html">Resque::Job</a></li>
103
101
 
104
102
  <li><a href="../Resque/JobWithStatus.html">Resque::JobWithStatus</a></li>
@@ -107,8 +107,6 @@
107
107
 
108
108
  <li><a href="../Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a></li>
109
109
 
110
- <li><a href="../Resque/Failure.html">Resque::Failure</a></li>
111
-
112
110
  <li><a href="../Resque/Job.html">Resque::Job</a></li>
113
111
 
114
112
  <li><a href="../Resque/JobWithStatus.html">Resque::JobWithStatus</a></li>
@@ -105,8 +105,6 @@
105
105
 
106
106
  <li><a href="../Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a></li>
107
107
 
108
- <li><a href="../Resque/Failure.html">Resque::Failure</a></li>
109
-
110
108
  <li><a href="../Resque/Job.html">Resque::Job</a></li>
111
109
 
112
110
  <li><a href="../Resque/JobWithStatus.html">Resque::JobWithStatus</a></li>
@@ -141,8 +141,6 @@
141
141
 
142
142
  <li><a href="../Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a></li>
143
143
 
144
- <li><a href="../Resque/Failure.html">Resque::Failure</a></li>
145
-
146
144
  <li><a href="../Resque/Job.html">Resque::Job</a></li>
147
145
 
148
146
  <li><a href="../Resque/JobWithStatus.html">Resque::JobWithStatus</a></li>
data/rdoc/Resque.html CHANGED
@@ -43,9 +43,6 @@
43
43
  <li><a href="./lib/resque_ui/overrides/resque/worker_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
44
44
  class="thickbox" title="lib/resque_ui/overrides/resque/worker.rb">lib/resque_ui/overrides/resque/worker.rb</a></li>
45
45
 
46
- <li><a href="./lib/resque_ui/overrides/resque/failure/failure_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
47
- class="thickbox" title="lib/resque_ui/overrides/resque/failure/failure.rb">lib/resque_ui/overrides/resque/failure/failure.rb</a></li>
48
-
49
46
  <li><a href="./lib/resque_ui/overrides/resque_status/chained_job_with_status_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
50
47
  class="thickbox" title="lib/resque_ui/overrides/resque_status/chained_job_with_status.rb">lib/resque_ui/overrides/resque_status/chained_job_with_status.rb</a></li>
51
48
 
@@ -73,8 +70,6 @@
73
70
  <h3 class="section-header">Namespace</h3>
74
71
  <ul class="link-list">
75
72
 
76
- <li><span class="type">MODULE</span> <a href="Resque/Failure.html">Resque::Failure</a></li>
77
-
78
73
  <li><span class="type">CLASS</span> <a href="Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a></li>
79
74
 
80
75
  <li><span class="type">CLASS</span> <a href="Resque/Job.html">Resque::Job</a></li>
@@ -127,8 +122,6 @@
127
122
 
128
123
  <li><a href="./Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a></li>
129
124
 
130
- <li><a href="./Resque/Failure.html">Resque::Failure</a></li>
131
-
132
125
  <li><a href="./Resque/Job.html">Resque::Job</a></li>
133
126
 
134
127
  <li><a href="./Resque/JobWithStatus.html">Resque::JobWithStatus</a></li>
@@ -101,8 +101,6 @@
101
101
 
102
102
  <li><a href="./Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a></li>
103
103
 
104
- <li><a href="./Resque/Failure.html">Resque::Failure</a></li>
105
-
106
104
  <li><a href="./Resque/Job.html">Resque::Job</a></li>
107
105
 
108
106
  <li><a href="./Resque/JobWithStatus.html">Resque::JobWithStatus</a></li>
@@ -87,8 +87,6 @@
87
87
 
88
88
  <li><a href="../Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a></li>
89
89
 
90
- <li><a href="../Resque/Failure.html">Resque::Failure</a></li>
91
-
92
90
  <li><a href="../Resque/Job.html">Resque::Job</a></li>
93
91
 
94
92
  <li><a href="../Resque/JobWithStatus.html">Resque::JobWithStatus</a></li>
@@ -87,8 +87,6 @@
87
87
 
88
88
  <li><a href="../Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a></li>
89
89
 
90
- <li><a href="../Resque/Failure.html">Resque::Failure</a></li>
91
-
92
90
  <li><a href="../Resque/Job.html">Resque::Job</a></li>
93
91
 
94
92
  <li><a href="../Resque/JobWithStatus.html">Resque::JobWithStatus</a></li>
data/rdoc/ResqueUi.html CHANGED
@@ -94,8 +94,6 @@
94
94
 
95
95
  <li><a href="./Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a></li>
96
96
 
97
- <li><a href="./Resque/Failure.html">Resque::Failure</a></li>
98
-
99
97
  <li><a href="./Resque/Job.html">Resque::Job</a></li>
100
98
 
101
99
  <li><a href="./Resque/JobWithStatus.html">Resque::JobWithStatus</a></li>
data/rdoc/created.rid CHANGED
@@ -1,12 +1,11 @@
1
- Fri, 16 Sep 2011 16:21:59 -0400
2
- README.markdown Fri, 16 Sep 2011 15:55:46 -0400
3
- lib/resque_ui.rb Fri, 16 Sep 2011 14:52:03 -0400
1
+ Thu, 22 Sep 2011 15:32:04 -0400
2
+ README.markdown Thu, 22 Sep 2011 15:30:29 -0400
3
+ lib/resque_ui.rb Thu, 22 Sep 2011 14:44:55 -0400
4
4
  lib/resque_ui/cap.rb Wed, 14 Sep 2011 16:39:33 -0400
5
5
  lib/resque_ui/cap_recipes.rb Wed, 27 Apr 2011 11:46:56 -0400
6
6
  lib/resque_ui/overrides/resque/job.rb Fri, 16 Sep 2011 14:33:15 -0400
7
7
  lib/resque_ui/overrides/resque/resque.rb Thu, 15 Sep 2011 12:15:57 -0400
8
8
  lib/resque_ui/overrides/resque/worker.rb Thu, 15 Sep 2011 12:15:57 -0400
9
- lib/resque_ui/overrides/resque/failure/failure.rb Fri, 16 Sep 2011 14:50:09 -0400
10
9
  lib/resque_ui/overrides/resque_scheduler/resque_scheduler.rb Thu, 15 Sep 2011 11:57:02 -0400
11
10
  lib/resque_ui/overrides/resque_status/chained_job_with_status.rb Thu, 15 Sep 2011 12:06:19 -0400
12
11
  lib/resque_ui/overrides/resque_status/job_with_status.rb Thu, 15 Sep 2011 12:06:45 -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.0.0</title>
9
+ <title>ResqueUi 3.1.0</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.0.0</h1>
22
+ <h1>ResqueUi 3.1.0</h1>
23
23
 
24
24
 
25
- <p>This is the API documentation for 'ResqueUi 3.0.0'.</p>
25
+ <p>This is the API documentation for 'ResqueUi 3.1.0'.</p>
26
26
 
27
27
 
28
28
 
@@ -35,8 +35,6 @@
35
35
 
36
36
  <li class="class"><a href="Resque/ChainedJobWithStatus.html">Resque::ChainedJobWithStatus</a></li>
37
37
 
38
- <li class="module"><a href="Resque/Failure.html">Resque::Failure</a></li>
39
-
40
38
  <li class="class"><a href="Resque/Job.html">Resque::Job</a></li>
41
39
 
42
40
  <li class="class"><a href="Resque/JobWithStatus.html">Resque::JobWithStatus</a></li>
@@ -76,8 +74,6 @@
76
74
 
77
75
  <li><a href="ResqueScheduler.html#method-c-quit">::quit &mdash; ResqueScheduler</a></li>
78
76
 
79
- <li><a href="Resque/Failure.html#method-c-requeue_class">::requeue_class &mdash; Resque::Failure</a></li>
80
-
81
77
  <li><a href="ResqueScheduler.html#method-c-restart">::restart &mdash; ResqueScheduler</a></li>
82
78
 
83
79
  <li><a href="ResqueScheduler.html#method-c-start">::start &mdash; ResqueScheduler</a></li>
@@ -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.0.0]</title>
9
+ <title>File: cap.rb [ResqueUi 3.1.0]</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.0.0]</title>
9
+ <title>File: cap_recipes.rb [ResqueUi 3.1.0]</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.0.0]</title>
9
+ <title>File: job.rb [ResqueUi 3.1.0]</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.0.0]</title>
9
+ <title>File: resque.rb [ResqueUi 3.1.0]</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.0.0]</title>
9
+ <title>File: worker.rb [ResqueUi 3.1.0]</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.0.0]</title>
9
+ <title>File: resque_scheduler.rb [ResqueUi 3.1.0]</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.0.0]</title>
9
+ <title>File: chained_job_with_status.rb [ResqueUi 3.1.0]</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.0.0]</title>
9
+ <title>File: job_with_status.rb [ResqueUi 3.1.0]</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.0.0]</title>
9
+ <title>File: status.rb [ResqueUi 3.1.0]</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.0.0]</title>
9
+ <title>File: resque_ui.rb [ResqueUi 3.1.0]</title>
10
10
 
11
11
  <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />
12
12
 
@@ -24,7 +24,7 @@
24
24
  <div id="metadata">
25
25
  <dl>
26
26
  <dt class="modified-date">Last Modified</dt>
27
- <dd class="modified-date">Fri Sep 16 14:52:03 -0400 2011</dd>
27
+ <dd class="modified-date">Thu Sep 22 14:44:55 -0400 2011</dd>
28
28
 
29
29
 
30
30
  <dt class="requires">Requires</dt>
@@ -41,8 +41,6 @@
41
41
 
42
42
  <li>resque_ui/overrides/resque/job</li>
43
43
 
44
- <li>resque_ui/overrides/resque/failure/failure</li>
45
-
46
44
  <li>resque_scheduler/tasks</li>
47
45
 
48
46
  <li>resque_ui/overrides/resque_scheduler/resque_scheduler</li>
@@ -55,6 +53,8 @@
55
53
 
56
54
  <li>resque_ui/overrides/resque_status/chained_job_with_status</li>
57
55
 
56
+ <li>resque-cleaner</li>
57
+
58
58
  </ul>
59
59
  </dd>
60
60
 
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.0.0"
8
+ s.version = "3.1.0"
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-09-16}
12
+ s.date = %q{2011-09-22}
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 = [
@@ -31,19 +31,24 @@ Gem::Specification.new do |s|
31
31
  "app/assets/javascripts/resque/ranger.js",
32
32
  "app/assets/stylesheets/resque/resque.css",
33
33
  "app/assets/stylesheets/resque/resque_reset.css",
34
+ "app/assets/stylesheets/resque_cleaner/cleaner.css",
34
35
  "app/controllers/resque_controller.rb",
35
36
  "app/helpers/resque_helper.rb",
36
37
  "app/views/layouts/resque.html.erb",
37
38
  "app/views/resque/_key.html.erb",
39
+ "app/views/resque/_limiter.html.erb",
38
40
  "app/views/resque/_next_more.html.erb",
41
+ "app/views/resque/_paginate.html.erb",
39
42
  "app/views/resque/_queues.html.erb",
40
43
  "app/views/resque/_status_styles.erb",
41
44
  "app/views/resque/_workers.html.erb",
42
45
  "app/views/resque/_working.html.erb",
46
+ "app/views/resque/cleaner.html.erb",
47
+ "app/views/resque/cleaner_exec.html.erb",
48
+ "app/views/resque/cleaner_list.html.erb",
43
49
  "app/views/resque/delayed.html.erb",
44
50
  "app/views/resque/delayed_timestamp.html.erb",
45
51
  "app/views/resque/error.erb",
46
- "app/views/resque/failed.html.erb",
47
52
  "app/views/resque/overview.html.erb",
48
53
  "app/views/resque/schedule.html.erb",
49
54
  "app/views/resque/stats.html.erb",
@@ -53,7 +58,6 @@ Gem::Specification.new do |s|
53
58
  "lib/resque_ui.rb",
54
59
  "lib/resque_ui/cap.rb",
55
60
  "lib/resque_ui/cap_recipes.rb",
56
- "lib/resque_ui/overrides/resque/failure/failure.rb",
57
61
  "lib/resque_ui/overrides/resque/job.rb",
58
62
  "lib/resque_ui/overrides/resque/resque.rb",
59
63
  "lib/resque_ui/overrides/resque/worker.rb",
@@ -124,7 +128,7 @@ Gem::Specification.new do |s|
124
128
  "test/resque_ui_test.rb",
125
129
  "test/test_helper.rb"
126
130
  ]
127
- s.homepage = %q{http://kevintyll.git.com/resque_ui}
131
+ s.homepage = %q{https://github.com/kevintyll/resque_ui}
128
132
  s.require_paths = ["lib"]
129
133
  s.rubygems_version = %q{1.5.1}
130
134
  s.summary = %q{A Rails engine port of the Sinatra app that is included in Chris Wanstrath's resque gem.}
@@ -137,17 +141,20 @@ Gem::Specification.new do |s|
137
141
  s.add_runtime_dependency(%q<redis>, [">= 2.1.3"])
138
142
  s.add_runtime_dependency(%q<resque>, [">= 1.5"])
139
143
  s.add_runtime_dependency(%q<resque-status>, [">= 0.2.2"])
144
+ s.add_runtime_dependency(%q<resque-cleaner>, [">= 0.2.6"])
140
145
  else
141
146
  s.add_dependency(%q<rails>, [">= 3.0.0"])
142
147
  s.add_dependency(%q<redis>, [">= 2.1.3"])
143
148
  s.add_dependency(%q<resque>, [">= 1.5"])
144
149
  s.add_dependency(%q<resque-status>, [">= 0.2.2"])
150
+ s.add_dependency(%q<resque-cleaner>, [">= 0.2.6"])
145
151
  end
146
152
  else
147
153
  s.add_dependency(%q<rails>, [">= 3.0.0"])
148
154
  s.add_dependency(%q<redis>, [">= 2.1.3"])
149
155
  s.add_dependency(%q<resque>, [">= 1.5"])
150
156
  s.add_dependency(%q<resque-status>, [">= 0.2.2"])
157
+ s.add_dependency(%q<resque-cleaner>, [">= 0.2.6"])
151
158
  end
152
159
  end
153
160