resque_ui 3.2.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 3.2.1 2011-11-14
2
+
3
+ * I know that was in there before.
4
+
1
5
  == 3.2.0 2011-11-14
2
6
 
3
7
  * Added the ability to pause workers from the UI.
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 3
3
3
  :minor: 2
4
- :patch: 0
4
+ :patch: 1
5
5
  :build:
@@ -56,7 +56,7 @@ module Resque
56
56
  # OVERRIDE to pass the block in order to set the worker status, returns the worker object
57
57
  def self.perform(uuid=nil, options = {})
58
58
  uuid ||= Resque::Status.generate_uuid
59
- worker = yield
59
+ worker = yield if block_given?
60
60
  instance = new(uuid, worker, options)
61
61
  instance.safe_perform! { |status| yield status if block_given? }
62
62
  instance
data/rdoc/Resque/Job.html CHANGED
@@ -170,7 +170,7 @@ message can be yielded back to be set in the worker.</p>
170
170
 
171
171
  <div class="method-source-code" id="perform-source">
172
172
  <pre>
173
- <span class="ruby-comment"># File lib/resque_ui/overrides/resque/job.rb, line 8</span>
173
+ <span class="ruby-comment"># File lib/resque_ui/overrides/resque/job.rb, line 7</span>
174
174
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">perform</span>
175
175
  <span class="ruby-identifier">job</span> = <span class="ruby-identifier">payload_class</span>
176
176
  <span class="ruby-identifier">job_args</span> = <span class="ruby-identifier">args</span> <span class="ruby-operator">||</span> []
@@ -288,7 +288,7 @@ returns the worker object</p>
288
288
  <span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/job_with_status.rb, line 57</span>
289
289
  <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">perform</span>(<span class="ruby-identifier">uuid</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">options</span> = {})
290
290
  <span class="ruby-identifier">uuid</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Resque</span><span class="ruby-operator">::</span><span class="ruby-constant">Status</span>.<span class="ruby-identifier">generate_uuid</span>
291
- <span class="ruby-identifier">worker</span> = <span class="ruby-keyword">yield</span>
291
+ <span class="ruby-identifier">worker</span> = <span class="ruby-keyword">yield</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">block_given?</span>
292
292
  <span class="ruby-identifier">instance</span> = <span class="ruby-identifier">new</span>(<span class="ruby-identifier">uuid</span>, <span class="ruby-identifier">worker</span>, <span class="ruby-identifier">options</span>)
293
293
  <span class="ruby-identifier">instance</span>.<span class="ruby-identifier">safe_perform!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">status</span><span class="ruby-operator">|</span> <span class="ruby-keyword">yield</span> <span class="ruby-identifier">status</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">block_given?</span> }
294
294
  <span class="ruby-identifier">instance</span>
@@ -178,7 +178,7 @@ info about ranges</p>
178
178
 
179
179
  <div class="method-source-code" id="clear-source">
180
180
  <pre>
181
- <span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 31</span>
181
+ <span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 30</span>
182
182
  <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">clear</span>(<span class="ruby-identifier">range_start</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">range_end</span> = <span class="ruby-keyword">nil</span>)
183
183
  <span class="ruby-identifier">status_ids</span>(<span class="ruby-identifier">range_start</span>, <span class="ruby-identifier">range_end</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">id</span><span class="ruby-operator">|</span>
184
184
  <span class="ruby-identifier">redis</span>.<span class="ruby-identifier">zrem</span>(<span class="ruby-identifier">set_key</span>, <span class="ruby-identifier">id</span>)
@@ -216,7 +216,7 @@ info about ranges</p>
216
216
 
217
217
  <div class="method-source-code" id="counter-source">
218
218
  <pre>
219
- <span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 46</span>
219
+ <span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 45</span>
220
220
  <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">counter</span>(<span class="ruby-identifier">counter</span>, <span class="ruby-identifier">uuid</span>)
221
221
  <span class="ruby-identifier">redis</span>[<span class="ruby-identifier">counter_key</span>(<span class="ruby-identifier">counter</span>, <span class="ruby-identifier">uuid</span>)].<span class="ruby-identifier">to_i</span>
222
222
  <span class="ruby-keyword">end</span></pre>
@@ -251,7 +251,7 @@ use a counter and call incr on it instead</p>
251
251
 
252
252
  <div class="method-source-code" id="counter_key-source">
253
253
  <pre>
254
- <span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 42</span>
254
+ <span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 41</span>
255
255
  <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">counter_key</span>(<span class="ruby-identifier">counter</span>, <span class="ruby-identifier">uuid</span>)
256
256
  <span class="ruby-node">&quot;#{counter}:#{uuid}&quot;</span>
257
257
  <span class="ruby-keyword">end</span></pre>
@@ -284,7 +284,7 @@ use a counter and call incr on it instead</p>
284
284
 
285
285
  <div class="method-source-code" id="incr_counter-source">
286
286
  <pre>
287
- <span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 50</span>
287
+ <span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 49</span>
288
288
  <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">incr_counter</span>(<span class="ruby-identifier">counter</span>, <span class="ruby-identifier">uuid</span>)
289
289
  <span class="ruby-identifier">key</span> = <span class="ruby-identifier">counter_key</span>(<span class="ruby-identifier">counter</span>, <span class="ruby-identifier">uuid</span>)
290
290
  <span class="ruby-identifier">n</span> = <span class="ruby-identifier">redis</span>.<span class="ruby-identifier">incr</span>(<span class="ruby-identifier">key</span>)
@@ -324,7 +324,7 @@ use a counter and call incr on it instead</p>
324
324
 
325
325
  <div class="method-source-code" id="status_ids-source">
326
326
  <pre>
327
- <span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 11</span>
327
+ <span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 10</span>
328
328
  <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">status_ids</span>(<span class="ruby-identifier">range_start</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">range_end</span> = <span class="ruby-keyword">nil</span>)
329
329
  <span class="ruby-keyword">unless</span> <span class="ruby-identifier">range_end</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">range_start</span>
330
330
  <span class="ruby-comment"># Because we want a reverse chronological order, we need to get a range starting</span>
@@ -378,7 +378,7 @@ method here</p>
378
378
 
379
379
  <div class="method-source-code" id="paused-3F-source">
380
380
  <pre>
381
- <span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 5</span>
381
+ <span class="ruby-comment"># File lib/resque_ui/overrides/resque_status/status.rb, line 4</span>
382
382
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">paused?</span>
383
383
  <span class="ruby-keyword">self</span>[<span class="ruby-string">'status'</span>] <span class="ruby-operator">===</span> <span class="ruby-string">'paused'</span>
384
384
  <span class="ruby-keyword">end</span></pre>
@@ -514,7 +514,7 @@ the thread and queue portion</p>
514
514
 
515
515
  <div class="method-source-code" id="pause_key-source">
516
516
  <pre>
517
- <span class="ruby-comment"># File lib/resque_ui/overrides/resque/worker.rb, line 25</span>
517
+ <span class="ruby-comment"># File lib/resque_ui/overrides/resque/worker.rb, line 26</span>
518
518
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">pause_key</span>
519
519
  <span class="ruby-identifier">key</span> = <span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">':'</span>)
520
520
  <span class="ruby-node">&quot;worker:#{key.first}:#{key.second}:all_workers:paused&quot;</span>
data/rdoc/created.rid CHANGED
@@ -1,12 +1,12 @@
1
- Mon, 14 Nov 2011 15:35:26 -0500
1
+ Mon, 14 Nov 2011 16:06:59 -0500
2
2
  README.markdown Mon, 14 Nov 2011 15:34:09 -0500
3
3
  lib/resque_ui.rb Thu, 10 Nov 2011 11:09:00 -0500
4
4
  lib/resque_ui/cap.rb Wed, 14 Sep 2011 16:39:33 -0400
5
5
  lib/resque_ui/cap_recipes.rb Wed, 09 Nov 2011 13:52:53 -0500
6
- lib/resque_ui/overrides/resque/job.rb Mon, 14 Nov 2011 12:13:36 -0500
6
+ lib/resque_ui/overrides/resque/job.rb Mon, 14 Nov 2011 15:39:13 -0500
7
7
  lib/resque_ui/overrides/resque/resque.rb Thu, 15 Sep 2011 12:15:57 -0400
8
- lib/resque_ui/overrides/resque/worker.rb Fri, 11 Nov 2011 15:50:01 -0500
8
+ lib/resque_ui/overrides/resque/worker.rb Mon, 14 Nov 2011 15:41:51 -0500
9
9
  lib/resque_ui/overrides/resque_scheduler/resque_scheduler.rb Thu, 15 Sep 2011 11:57:02 -0400
10
10
  lib/resque_ui/overrides/resque_status/chained_job_with_status.rb Thu, 15 Sep 2011 12:06:19 -0400
11
- lib/resque_ui/overrides/resque_status/job_with_status.rb Mon, 14 Nov 2011 15:21:16 -0500
12
- lib/resque_ui/overrides/resque_status/status.rb Mon, 14 Nov 2011 14:31:14 -0500
11
+ lib/resque_ui/overrides/resque_status/job_with_status.rb Mon, 14 Nov 2011 15:58:20 -0500
12
+ lib/resque_ui/overrides/resque_status/status.rb Mon, 14 Nov 2011 15:41:51 -0500
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.2.0</title>
9
+ <title>ResqueUi 3.2.1</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.2.0</h1>
22
+ <h1>ResqueUi 3.2.1</h1>
23
23
 
24
24
 
25
- <p>This is the API documentation for 'ResqueUi 3.2.0'.</p>
25
+ <p>This is the API documentation for 'ResqueUi 3.2.1'.</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.2.0]</title>
9
+ <title>File: cap.rb [ResqueUi 3.2.1]</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.2.0]</title>
9
+ <title>File: cap_recipes.rb [ResqueUi 3.2.1]</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.2.0]</title>
9
+ <title>File: job.rb [ResqueUi 3.2.1]</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">Mon Nov 14 12:13:36 -0500 2011</dd>
27
+ <dd class="modified-date">Mon Nov 14 15:39:13 -0500 2011</dd>
28
28
 
29
29
 
30
30
  <dt class="requires">Requires</dt>
@@ -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.2.0]</title>
9
+ <title>File: resque.rb [ResqueUi 3.2.1]</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.2.0]</title>
9
+ <title>File: worker.rb [ResqueUi 3.2.1]</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 Nov 11 15:50:01 -0500 2011</dd>
27
+ <dd class="modified-date">Mon Nov 14 15:41:51 -0500 2011</dd>
28
28
 
29
29
 
30
30
  <dt class="requires">Requires</dt>
@@ -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.2.0]</title>
9
+ <title>File: resque_scheduler.rb [ResqueUi 3.2.1]</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.2.0]</title>
9
+ <title>File: chained_job_with_status.rb [ResqueUi 3.2.1]</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.2.0]</title>
9
+ <title>File: job_with_status.rb [ResqueUi 3.2.1]</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">Mon Nov 14 15:21:16 -0500 2011</dd>
27
+ <dd class="modified-date">Mon Nov 14 15:58:20 -0500 2011</dd>
28
28
 
29
29
 
30
30
  <dt class="requires">Requires</dt>
@@ -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.2.0]</title>
9
+ <title>File: status.rb [ResqueUi 3.2.1]</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">Mon Nov 14 14:31:14 -0500 2011</dd>
27
+ <dd class="modified-date">Mon Nov 14 15:41:51 -0500 2011</dd>
28
28
 
29
29
 
30
30
  <dt class="requires">Requires</dt>
@@ -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.2.0]</title>
9
+ <title>File: resque_ui.rb [ResqueUi 3.2.1]</title>
10
10
 
11
11
  <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />
12
12
 
data/resque_ui.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{resque_ui}
8
- s.version = "3.2.0"
8
+ s.version = "3.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Kevin Tyll}]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: resque_ui
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 3.2.0
5
+ version: 3.2.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kevin Tyll