Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

update docs

  • Loading branch information...
commit dfb965d457d61dfb9fc41f2ab99dc3d2c432cfb9 1 parent f082819
Chris Wanstrath defunkt authored

Showing 50 changed files with 840 additions and 790 deletions. Show diff stats Hide diff stats

  1. +177 176 classes/Resque.html
  2. +40 40 classes/Resque/Failure.html
  3. +20 20 classes/Resque/Failure/Hoptoad.html
  4. +68 32 classes/Resque/Failure/Multiple.html
  5. +25 25 classes/Resque/Failure/Redis.html
  6. +25 25 classes/Resque/Helpers.html
  7. +56 56 classes/Resque/Job.html
  8. +15 15 classes/Resque/Plugin.html
  9. +80 80 classes/Resque/Server.html
  10. +30 30 classes/Resque/Stat.html
  11. +10 10 classes/Resque/TestHelper/Test/Unit/TestCase.html
  12. +227 227 classes/Resque/Worker.html
  13. +1 1  created.rid
  14. +1 1  files/CONTRIBUTORS.html
  15. +11 2 files/HISTORY_md.html
  16. +1 1  files/LICENSE.html
  17. +3 3 files/README_markdown.html
  18. +1 1  files/lib/resque/errors_rb.html
  19. +1 1  files/lib/resque/failure/base_rb.html
  20. +1 1  files/lib/resque/failure/hoptoad_rb.html
  21. +1 1  files/lib/resque/failure/multiple_rb.html
  22. +1 8 files/lib/resque/failure/redis_rb.html
  23. +8 1 files/lib/resque/failure_rb.html
  24. +1 1  files/lib/resque/helpers_rb.html
  25. +1 1  files/lib/resque/job_rb.html
  26. +1 1  files/lib/resque/plugin_rb.html
  27. +1 1  files/lib/resque/server/public/jquery-1_3_2_min_js.html
  28. +1 1  files/lib/resque/server/public/jquery_relatize_date_js.html
  29. +1 1  files/lib/resque/server/public/ranger_js.html
  30. +1 1  files/lib/resque/server/public/reset_css.html
  31. +1 1  files/lib/resque/server/public/style_css.html
  32. +1 1  files/lib/resque/server/test_helper_rb.html
  33. +1 1  files/lib/resque/server/views/error_erb.html
  34. +9 5 files/lib/resque/server/views/failed_erb.html
  35. +1 1  files/lib/resque/server/views/key_sets_erb.html
  36. +1 1  files/lib/resque/server/views/key_string_erb.html
  37. +1 1  files/lib/resque/server/views/layout_erb.html
  38. +1 1  files/lib/resque/server/views/next_more_erb.html
  39. +1 1  files/lib/resque/server/views/overview_erb.html
  40. +1 1  files/lib/resque/server/views/queues_erb.html
  41. +1 1  files/lib/resque/server/views/stats_erb.html
  42. +2 2 files/lib/resque/server/views/workers_erb.html
  43. +2 2 files/lib/resque/server/views/working_erb.html
  44. +1 1  files/lib/resque/server_rb.html
  45. +1 1  files/lib/resque/stat_rb.html
  46. +1 1  files/lib/resque/tasks_rb.html
  47. +1 1  files/lib/resque/version_rb.html
  48. +1 1  files/lib/resque/worker_rb.html
  49. +1 1  files/lib/resque_rb.html
  50. +1 1  panel/search_index.js
353 classes/Resque.html
@@ -29,10 +29,10 @@
29 29
30 30 <li><a href="../files/lib/resque/failure/multiple_rb.html">lib/resque/failure/multiple.rb</a></li>
31 31
32   - <li><a href="../files/lib/resque/failure_rb.html">lib/resque/failure.rb</a></li>
33   -
34 32 <li><a href="../files/lib/resque/failure/redis_rb.html">lib/resque/failure/redis.rb</a></li>
35 33
  34 + <li><a href="../files/lib/resque/failure_rb.html">lib/resque/failure.rb</a></li>
  35 +
36 36 <li><a href="../files/lib/resque/helpers_rb.html">lib/resque/helpers.rb</a></li>
37 37
38 38 <li><a href="../files/lib/resque/job_rb.html">lib/resque/job.rb</a></li>
@@ -47,10 +47,10 @@
47 47
48 48 <li><a href="../files/lib/resque/version_rb.html">lib/resque/version.rb</a></li>
49 49
50   - <li><a href="../files/lib/resque_rb.html">lib/resque.rb</a></li>
51   -
52 50 <li><a href="../files/lib/resque/worker_rb.html">lib/resque/worker.rb</a></li>
53 51
  52 + <li><a href="../files/lib/resque_rb.html">lib/resque.rb</a></li>
  53 +
54 54 </ul>
55 55 </div>
56 56 <div id="bodyContent">
@@ -71,9 +71,9 @@
71 71 <dd>
72 72 <ul>
73 73
74   - <li><a href="#M000093">after_fork</a>,</li>
  74 + <li><a href="#M000096">after_fork</a>,</li>
75 75
76   - <li><a href="#M000094">after_fork=</a></li>
  76 + <li><a href="#M000097">after_fork=</a></li>
77 77
78 78 </ul>
79 79 </dd>
@@ -82,13 +82,13 @@
82 82 <dd>
83 83 <ul>
84 84
85   - <li><a href="#M000087">before_first_fork</a>,</li>
  85 + <li><a href="#M000090">before_first_fork</a>,</li>
86 86
87   - <li><a href="#M000088">before_first_fork=</a>,</li>
  87 + <li><a href="#M000091">before_first_fork=</a>,</li>
88 88
89   - <li><a href="#M000089">before_fork</a>,</li>
  89 + <li><a href="#M000092">before_fork</a>,</li>
90 90
91   - <li><a href="#M000092">before_fork=</a></li>
  91 + <li><a href="#M000095">before_fork=</a></li>
92 92
93 93 </ul>
94 94 </dd>
@@ -97,7 +97,7 @@
97 97 <dd>
98 98 <ul>
99 99
100   - <li><a href="#M000115">dequeue</a></li>
  100 + <li><a href="#M000114">dequeue</a></li>
101 101
102 102 </ul>
103 103 </dd>
@@ -115,7 +115,7 @@
115 115 <dd>
116 116 <ul>
117 117
118   - <li><a href="#M000122">info</a></li>
  118 + <li><a href="#M000123">info</a></li>
119 119
120 120 </ul>
121 121 </dd>
@@ -124,7 +124,7 @@
124 124 <dd>
125 125 <ul>
126 126
127   - <li><a href="#M000126">keys</a></li>
  127 + <li><a href="#M000127">keys</a></li>
128 128
129 129 </ul>
130 130 </dd>
@@ -133,7 +133,7 @@
133 133 <dd>
134 134 <ul>
135 135
136   - <li><a href="#M000103">list_range</a></li>
  136 + <li><a href="#M000104">list_range</a></li>
137 137
138 138 </ul>
139 139 </dd>
@@ -142,11 +142,11 @@
142 142 <dd>
143 143 <ul>
144 144
145   - <li><a href="#M000102">peek</a>,</li>
  145 + <li><a href="#M000103">peek</a>,</li>
146 146
147   - <li><a href="#M000099">pop</a>,</li>
  147 + <li><a href="#M000101">pop</a>,</li>
148 148
149   - <li><a href="#M000098">push</a></li>
  149 + <li><a href="#M000100">push</a></li>
150 150
151 151 </ul>
152 152 </dd>
@@ -155,9 +155,9 @@
155 155 <dd>
156 156 <ul>
157 157
158   - <li><a href="#M000116">queue_from_class</a>,</li>
  158 + <li><a href="#M000115">queue_from_class</a>,</li>
159 159
160   - <li><a href="#M000105">queues</a></li>
  160 + <li><a href="#M000107">queues</a></li>
161 161
162 162 </ul>
163 163 </dd>
@@ -166,15 +166,15 @@
166 166 <dd>
167 167 <ul>
168 168
169   - <li><a href="#M000083">redis</a>,</li>
  169 + <li><a href="#M000086">redis</a>,</li>
170 170
171   - <li><a href="#M000082">redis=</a>,</li>
  171 + <li><a href="#M000083">redis=</a>,</li>
172 172
173   - <li><a href="#M000106">remove_queue</a>,</li>
  173 + <li><a href="#M000108">remove_queue</a>,</li>
174 174
175 175 <li><a href="#M000121">remove_worker</a>,</li>
176 176
177   - <li><a href="#M000117">reserve</a></li>
  177 + <li><a href="#M000118">reserve</a></li>
178 178
179 179 </ul>
180 180 </dd>
@@ -183,7 +183,7 @@
183 183 <dd>
184 184 <ul>
185 185
186   - <li><a href="#M000100">size</a></li>
  186 + <li><a href="#M000102">size</a></li>
187 187
188 188 </ul>
189 189 </dd>
@@ -192,7 +192,7 @@
192 192 <dd>
193 193 <ul>
194 194
195   - <li><a href="#M000095">to_s</a></li>
  195 + <li><a href="#M000098">to_s</a></li>
196 196
197 197 </ul>
198 198 </dd>
@@ -201,7 +201,7 @@
201 201 <dd>
202 202 <ul>
203 203
204   - <li><a href="#M000107">watch_queue</a>,</li>
  204 + <li><a href="#M000109">watch_queue</a>,</li>
205 205
206 206 <li><a href="#M000119">workers</a>,</li>
207 207
@@ -265,7 +265,7 @@
265 265 <tr valign='top'>
266 266 <td class="attr-name">Version</td>
267 267 <td>=</td>
268   - <td class="attr-value">'1.8.0'</td>
  268 + <td class="attr-value">'1.8.1'</td>
269 269 </tr>
270 270
271 271
@@ -278,15 +278,15 @@
278 278 <div class="sectiontitle">Instance Public methods</div>
279 279
280 280 <div class="method">
281   - <div class="title" id="M000093">
  281 + <div class="title" id="M000096">
282 282
283   - <a name="M000093"></a><b>after_fork</b>(&amp;block)
  283 + <a name="M000096"></a><b>after_fork</b>(&amp;block)
284 284
285 285 </div>
286 286
287 287 <div class="description">
288 288 <p>
289   -The `<a href="Resque.html#M000093">after_fork</a>` hook will be run in the
  289 +The `<a href="Resque.html#M000096">after_fork</a>` hook will be run in the
290 290 child process and is passed the current job. Any changes you make,
291 291 therefor, will only live as long as the job currently being processes.
292 292 </p>
@@ -302,13 +302,13 @@
302 302
303 303 <div class="sourcecode">
304 304 <p class="source-link">
305   - Source: <a href="javascript:toggleSource('M000093_source')" id="l_M000093_source">show</a>
  305 + Source: <a href="javascript:toggleSource('M000096_source')" id="l_M000096_source">show</a>
306 306
307   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L92" target="_blank" class="github_url">on GitHub</a>
  307 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L93" target="_blank" class="github_url">on GitHub</a>
308 308
309 309 </p>
310   - <div id="M000093_source" class="dyn-source">
311   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 92</span>
  310 + <div id="M000096_source" class="dyn-source">
  311 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 93</span>
312 312 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">after_fork</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
313 313 <span class="ruby-identifier">block</span> <span class="ruby-value">? </span>(<span class="ruby-ivar">@after_fork</span> = <span class="ruby-identifier">block</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@after_fork</span>
314 314 <span class="ruby-keyword kw">end</span></pre>
@@ -318,15 +318,15 @@
318 318 </div>
319 319
320 320 <div class="method">
321   - <div class="title" id="M000094">
  321 + <div class="title" id="M000097">
322 322
323   - <a name="M000094"></a><b>after_fork=</b>(after_fork)
  323 + <a name="M000097"></a><b>after_fork=</b>(after_fork)
324 324
325 325 </div>
326 326
327 327 <div class="description">
328 328 <p>
329   -Set the <a href="Resque.html#M000093">after_fork</a> proc.
  329 +Set the <a href="Resque.html#M000096">after_fork</a> proc.
330 330 </p>
331 331
332 332 </div>
@@ -336,13 +336,13 @@
336 336
337 337 <div class="sourcecode">
338 338 <p class="source-link">
339   - Source: <a href="javascript:toggleSource('M000094_source')" id="l_M000094_source">show</a>
  339 + Source: <a href="javascript:toggleSource('M000097_source')" id="l_M000097_source">show</a>
340 340
341   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L97" target="_blank" class="github_url">on GitHub</a>
  341 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L98" target="_blank" class="github_url">on GitHub</a>
342 342
343 343 </p>
344   - <div id="M000094_source" class="dyn-source">
345   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 97</span>
  344 + <div id="M000097_source" class="dyn-source">
  345 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 98</span>
346 346 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">after_fork=</span>(<span class="ruby-identifier">after_fork</span>)
347 347 <span class="ruby-ivar">@after_fork</span> = <span class="ruby-identifier">after_fork</span>
348 348 <span class="ruby-keyword kw">end</span></pre>
@@ -352,15 +352,15 @@
352 352 </div>
353 353
354 354 <div class="method">
355   - <div class="title" id="M000087">
  355 + <div class="title" id="M000090">
356 356
357   - <a name="M000087"></a><b>before_first_fork</b>(&amp;block)
  357 + <a name="M000090"></a><b>before_first_fork</b>(&amp;block)
358 358
359 359 </div>
360 360
361 361 <div class="description">
362 362 <p>
363   -The `<a href="Resque.html#M000087">before_first_fork</a>` hook will be run
  363 +The `<a href="Resque.html#M000090">before_first_fork</a>` hook will be run
364 364 in the *<b>parent</b>* process only once, before forking to run the first
365 365 job. Be careful- any changes you make will be permanent for the lifespan of
366 366 the worker.
@@ -377,13 +377,13 @@
377 377
378 378 <div class="sourcecode">
379 379 <p class="source-link">
380   - Source: <a href="javascript:toggleSource('M000087_source')" id="l_M000087_source">show</a>
  380 + Source: <a href="javascript:toggleSource('M000090_source')" id="l_M000090_source">show</a>
381 381
382   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L61" target="_blank" class="github_url">on GitHub</a>
  382 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L62" target="_blank" class="github_url">on GitHub</a>
383 383
384 384 </p>
385   - <div id="M000087_source" class="dyn-source">
386   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 61</span>
  385 + <div id="M000090_source" class="dyn-source">
  386 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 62</span>
387 387 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">before_first_fork</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
388 388 <span class="ruby-identifier">block</span> <span class="ruby-value">? </span>(<span class="ruby-ivar">@before_first_fork</span> = <span class="ruby-identifier">block</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@before_first_fork</span>
389 389 <span class="ruby-keyword kw">end</span></pre>
@@ -393,9 +393,9 @@
393 393 </div>
394 394
395 395 <div class="method">
396   - <div class="title" id="M000088">
  396 + <div class="title" id="M000091">
397 397
398   - <a name="M000088"></a><b>before_first_fork=</b>(before_first_fork)
  398 + <a name="M000091"></a><b>before_first_fork=</b>(before_first_fork)
399 399
400 400 </div>
401 401
@@ -412,13 +412,13 @@
412 412
413 413 <div class="sourcecode">
414 414 <p class="source-link">
415   - Source: <a href="javascript:toggleSource('M000088_source')" id="l_M000088_source">show</a>
  415 + Source: <a href="javascript:toggleSource('M000091_source')" id="l_M000091_source">show</a>
416 416
417   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L67" target="_blank" class="github_url">on GitHub</a>
  417 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L68" target="_blank" class="github_url">on GitHub</a>
418 418
419 419 </p>
420   - <div id="M000088_source" class="dyn-source">
421   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 67</span>
  420 + <div id="M000091_source" class="dyn-source">
  421 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 68</span>
422 422 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">before_first_fork=</span>(<span class="ruby-identifier">before_first_fork</span>)
423 423 <span class="ruby-ivar">@before_first_fork</span> = <span class="ruby-identifier">before_first_fork</span>
424 424 <span class="ruby-keyword kw">end</span></pre>
@@ -428,15 +428,15 @@
428 428 </div>
429 429
430 430 <div class="method">
431   - <div class="title" id="M000089">
  431 + <div class="title" id="M000092">
432 432
433   - <a name="M000089"></a><b>before_fork</b>(&amp;block)
  433 + <a name="M000092"></a><b>before_fork</b>(&amp;block)
434 434
435 435 </div>
436 436
437 437 <div class="description">
438 438 <p>
439   -The `<a href="Resque.html#M000089">before_fork</a>` hook will be run in the
  439 +The `<a href="Resque.html#M000092">before_fork</a>` hook will be run in the
440 440 *<b>parent</b>* process before every job, so be careful- any changes you
441 441 make will be permanent for the lifespan of the worker.
442 442 </p>
@@ -452,13 +452,13 @@
452 452
453 453 <div class="sourcecode">
454 454 <p class="source-link">
455   - Source: <a href="javascript:toggleSource('M000089_source')" id="l_M000089_source">show</a>
  455 + Source: <a href="javascript:toggleSource('M000092_source')" id="l_M000092_source">show</a>
456 456
457   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L77" target="_blank" class="github_url">on GitHub</a>
  457 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L78" target="_blank" class="github_url">on GitHub</a>
458 458
459 459 </p>
460   - <div id="M000089_source" class="dyn-source">
461   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 77</span>
  460 + <div id="M000092_source" class="dyn-source">
  461 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 78</span>
462 462 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">before_fork</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
463 463 <span class="ruby-identifier">block</span> <span class="ruby-value">? </span>(<span class="ruby-ivar">@before_fork</span> = <span class="ruby-identifier">block</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@before_fork</span>
464 464 <span class="ruby-keyword kw">end</span></pre>
@@ -468,15 +468,15 @@
468 468 </div>
469 469
470 470 <div class="method">
471   - <div class="title" id="M000092">
  471 + <div class="title" id="M000095">
472 472
473   - <a name="M000092"></a><b>before_fork=</b>(before_fork)
  473 + <a name="M000095"></a><b>before_fork=</b>(before_fork)
474 474
475 475 </div>
476 476
477 477 <div class="description">
478 478 <p>
479   -Set the <a href="Resque.html#M000089">before_fork</a> proc.
  479 +Set the <a href="Resque.html#M000092">before_fork</a> proc.
480 480 </p>
481 481
482 482 </div>
@@ -486,13 +486,13 @@
486 486
487 487 <div class="sourcecode">
488 488 <p class="source-link">
489   - Source: <a href="javascript:toggleSource('M000092_source')" id="l_M000092_source">show</a>
  489 + Source: <a href="javascript:toggleSource('M000095_source')" id="l_M000095_source">show</a>
490 490
491   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L82" target="_blank" class="github_url">on GitHub</a>
  491 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L83" target="_blank" class="github_url">on GitHub</a>
492 492
493 493 </p>
494   - <div id="M000092_source" class="dyn-source">
495   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 82</span>
  494 + <div id="M000095_source" class="dyn-source">
  495 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 83</span>
496 496 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">before_fork=</span>(<span class="ruby-identifier">before_fork</span>)
497 497 <span class="ruby-ivar">@before_fork</span> = <span class="ruby-identifier">before_fork</span>
498 498 <span class="ruby-keyword kw">end</span></pre>
@@ -502,9 +502,9 @@
502 502 </div>
503 503
504 504 <div class="method">
505   - <div class="title" id="M000115">
  505 + <div class="title" id="M000114">
506 506
507   - <a name="M000115"></a><b>dequeue</b>(klass, *args)
  507 + <a name="M000114"></a><b>dequeue</b>(klass, *args)
508 508
509 509 </div>
510 510
@@ -528,7 +528,7 @@
528 528 <p>
529 529 If no args are given, this method will dequeue <b>all</b> jobs matching the
530 530 provided class. See `<a
531   -href="Resque/Job.html#M000043">Resque::Job.destroy</a>` for more
  531 +href="Resque/Job.html#M000044">Resque::Job.destroy</a>` for more
532 532 information.
533 533 </p>
534 534 <p>
@@ -555,13 +555,13 @@
555 555
556 556 <div class="sourcecode">
557 557 <p class="source-link">
558   - Source: <a href="javascript:toggleSource('M000115_source')" id="l_M000115_source">show</a>
  558 + Source: <a href="javascript:toggleSource('M000114_source')" id="l_M000114_source">show</a>
559 559
560   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L220" target="_blank" class="github_url">on GitHub</a>
  560 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L221" target="_blank" class="github_url">on GitHub</a>
561 561
562 562 </p>
563   - <div id="M000115_source" class="dyn-source">
564   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 220</span>
  563 + <div id="M000114_source" class="dyn-source">
  564 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 221</span>
565 565 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dequeue</span>(<span class="ruby-identifier">klass</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
566 566 <span class="ruby-constant">Job</span>.<span class="ruby-identifier">destroy</span>(<span class="ruby-identifier">queue_from_class</span>(<span class="ruby-identifier">klass</span>), <span class="ruby-identifier">klass</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
567 567 <span class="ruby-keyword kw">end</span></pre>
@@ -607,11 +607,11 @@
607 607 <p class="source-link">
608 608 Source: <a href="javascript:toggleSource('M000112_source')" id="l_M000112_source">show</a>
609 609
610   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L189" target="_blank" class="github_url">on GitHub</a>
  610 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L190" target="_blank" class="github_url">on GitHub</a>
611 611
612 612 </p>
613 613 <div id="M000112_source" class="dyn-source">
614   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 189</span>
  614 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 190</span>
615 615 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">enqueue</span>(<span class="ruby-identifier">klass</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
616 616 <span class="ruby-constant">Job</span>.<span class="ruby-identifier">create</span>(<span class="ruby-identifier">queue_from_class</span>(<span class="ruby-identifier">klass</span>), <span class="ruby-identifier">klass</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
617 617 <span class="ruby-keyword kw">end</span></pre>
@@ -621,16 +621,16 @@
621 621 </div>
622 622
623 623 <div class="method">
624   - <div class="title" id="M000122">
  624 + <div class="title" id="M000123">
625 625
626   - <a name="M000122"></a><b>info</b>()
  626 + <a name="M000123"></a><b>info</b>()
627 627
628 628 </div>
629 629
630 630 <div class="description">
631 631 <p>
632 632 Returns a hash, similar to redis-rb&#8217;s <a
633   -href="Resque.html#M000122">info</a>, of interesting stats.
  633 +href="Resque.html#M000123">info</a>, of interesting stats.
634 634 </p>
635 635
636 636 </div>
@@ -640,13 +640,13 @@
640 640
641 641 <div class="sourcecode">
642 642 <p class="source-link">
643   - Source: <a href="javascript:toggleSource('M000122_source')" id="l_M000122_source">show</a>
  643 + Source: <a href="javascript:toggleSource('M000123_source')" id="l_M000123_source">show</a>
644 644
645   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L267" target="_blank" class="github_url">on GitHub</a>
  645 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L268" target="_blank" class="github_url">on GitHub</a>
646 646
647 647 </p>
648   - <div id="M000122_source" class="dyn-source">
649   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 267</span>
  648 + <div id="M000123_source" class="dyn-source">
  649 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 268</span>
650 650 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">info</span>
651 651 <span class="ruby-keyword kw">return</span> {
652 652 <span class="ruby-identifier">:pending</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">queues</span>.<span class="ruby-identifier">inject</span>(<span class="ruby-value">0</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">m</span>,<span class="ruby-identifier">k</span><span class="ruby-operator">|</span> <span class="ruby-identifier">m</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">size</span>(<span class="ruby-identifier">k</span>) },
@@ -664,9 +664,9 @@
664 664 </div>
665 665
666 666 <div class="method">
667   - <div class="title" id="M000126">
  667 + <div class="title" id="M000127">
668 668
669   - <a name="M000126"></a><b>keys</b>()
  669 + <a name="M000127"></a><b>keys</b>()
670 670
671 671 </div>
672 672
@@ -684,13 +684,13 @@
684 684
685 685 <div class="sourcecode">
686 686 <p class="source-link">
687   - Source: <a href="javascript:toggleSource('M000126_source')" id="l_M000126_source">show</a>
  687 + Source: <a href="javascript:toggleSource('M000127_source')" id="l_M000127_source">show</a>
688 688
689   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L281" target="_blank" class="github_url">on GitHub</a>
  689 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L282" target="_blank" class="github_url">on GitHub</a>
690 690
691 691 </p>
692   - <div id="M000126_source" class="dyn-source">
693   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 281</span>
  692 + <div id="M000127_source" class="dyn-source">
  693 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 282</span>
694 694 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">keys</span>
695 695 <span class="ruby-identifier">redis</span>.<span class="ruby-identifier">keys</span>(<span class="ruby-value str">&quot;*&quot;</span>).<span class="ruby-identifier">map</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span><span class="ruby-operator">|</span>
696 696 <span class="ruby-identifier">key</span>.<span class="ruby-identifier">sub</span>(<span class="ruby-node">&quot;#{redis.namespace}:&quot;</span>, <span class="ruby-value str">''</span>)
@@ -702,9 +702,9 @@
702 702 </div>
703 703
704 704 <div class="method">
705   - <div class="title" id="M000103">
  705 + <div class="title" id="M000104">
706 706
707   - <a name="M000103"></a><b>list_range</b>(key, start = 0, count = 1)
  707 + <a name="M000104"></a><b>list_range</b>(key, start = 0, count = 1)
708 708
709 709 </div>
710 710
@@ -721,13 +721,13 @@
721 721
722 722 <div class="sourcecode">
723 723 <p class="source-link">
724   - Source: <a href="javascript:toggleSource('M000103_source')" id="l_M000103_source">show</a>
  724 + Source: <a href="javascript:toggleSource('M000104_source')" id="l_M000104_source">show</a>
725 725
726   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L144" target="_blank" class="github_url">on GitHub</a>
  726 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L145" target="_blank" class="github_url">on GitHub</a>
727 727
728 728 </p>
729   - <div id="M000103_source" class="dyn-source">
730   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 144</span>
  729 + <div id="M000104_source" class="dyn-source">
  730 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 145</span>
731 731 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">list_range</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">start</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">count</span> = <span class="ruby-value">1</span>)
732 732 <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">count</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
733 733 <span class="ruby-identifier">decode</span> <span class="ruby-identifier">redis</span>.<span class="ruby-identifier">lindex</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">start</span>)
@@ -743,9 +743,9 @@
743 743 </div>
744 744
745 745 <div class="method">
746   - <div class="title" id="M000102">
  746 + <div class="title" id="M000103">
747 747
748   - <a name="M000102"></a><b>peek</b>(queue, start = 0, count = 1)
  748 + <a name="M000103"></a><b>peek</b>(queue, start = 0, count = 1)
749 749
750 750 </div>
751 751
@@ -771,13 +771,13 @@
771 771
772 772 <div class="sourcecode">
773 773 <p class="source-link">
774   - Source: <a href="javascript:toggleSource('M000102_source')" id="l_M000102_source">show</a>
  774 + Source: <a href="javascript:toggleSource('M000103_source')" id="l_M000103_source">show</a>
775 775
776   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L138" target="_blank" class="github_url">on GitHub</a>
  776 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L139" target="_blank" class="github_url">on GitHub</a>
777 777
778 778 </p>
779   - <div id="M000102_source" class="dyn-source">
780   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 138</span>
  779 + <div id="M000103_source" class="dyn-source">
  780 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 139</span>
781 781 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">peek</span>(<span class="ruby-identifier">queue</span>, <span class="ruby-identifier">start</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">count</span> = <span class="ruby-value">1</span>)
782 782 <span class="ruby-identifier">list_range</span>(<span class="ruby-node">&quot;queue:#{queue}&quot;</span>, <span class="ruby-identifier">start</span>, <span class="ruby-identifier">count</span>)
783 783 <span class="ruby-keyword kw">end</span></pre>
@@ -787,9 +787,9 @@
787 787 </div>
788 788
789 789 <div class="method">
790   - <div class="title" id="M000099">
  790 + <div class="title" id="M000101">
791 791
792   - <a name="M000099"></a><b>pop</b>(queue)
  792 + <a name="M000101"></a><b>pop</b>(queue)
793 793
794 794 </div>
795 795
@@ -808,13 +808,13 @@
808 808
809 809 <div class="sourcecode">
810 810 <p class="source-link">
811   - Source: <a href="javascript:toggleSource('M000099_source')" id="l_M000099_source">show</a>
  811 + Source: <a href="javascript:toggleSource('M000101_source')" id="l_M000101_source">show</a>
812 812
813   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L120" target="_blank" class="github_url">on GitHub</a>
  813 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L121" target="_blank" class="github_url">on GitHub</a>
814 814
815 815 </p>
816   - <div id="M000099_source" class="dyn-source">
817   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 120</span>
  816 + <div id="M000101_source" class="dyn-source">
  817 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 121</span>
818 818 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pop</span>(<span class="ruby-identifier">queue</span>)
819 819 <span class="ruby-identifier">decode</span> <span class="ruby-identifier">redis</span>.<span class="ruby-identifier">lpop</span>(<span class="ruby-node">&quot;queue:#{queue}&quot;</span>)
820 820 <span class="ruby-keyword kw">end</span></pre>
@@ -824,9 +824,9 @@
824 824 </div>
825 825
826 826 <div class="method">
827   - <div class="title" id="M000098">
  827 + <div class="title" id="M000100">
828 828
829   - <a name="M000098"></a><b>push</b>(queue, item)
  829 + <a name="M000100"></a><b>push</b>(queue, item)
830 830
831 831 </div>
832 832
@@ -843,13 +843,13 @@
843 843
844 844 <div class="sourcecode">
845 845 <p class="source-link">
846   - Source: <a href="javascript:toggleSource('M000098_source')" id="l_M000098_source">show</a>
  846 + Source: <a href="javascript:toggleSource('M000100_source')" id="l_M000100_source">show</a>
847 847
848   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L112" target="_blank" class="github_url">on GitHub</a>
  848 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L113" target="_blank" class="github_url">on GitHub</a>
849 849
850 850 </p>
851   - <div id="M000098_source" class="dyn-source">
852   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 112</span>
  851 + <div id="M000100_source" class="dyn-source">
  852 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 113</span>
853 853 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">push</span>(<span class="ruby-identifier">queue</span>, <span class="ruby-identifier">item</span>)
854 854 <span class="ruby-identifier">watch_queue</span>(<span class="ruby-identifier">queue</span>)
855 855 <span class="ruby-identifier">redis</span>.<span class="ruby-identifier">rpush</span> <span class="ruby-node">&quot;queue:#{queue}&quot;</span>, <span class="ruby-identifier">encode</span>(<span class="ruby-identifier">item</span>)
@@ -860,9 +860,9 @@
860 860 </div>
861 861
862 862 <div class="method">
863   - <div class="title" id="M000116">
  863 + <div class="title" id="M000115">
864 864
865   - <a name="M000116"></a><b>queue_from_class</b>(klass)
  865 + <a name="M000115"></a><b>queue_from_class</b>(klass)
866 866
867 867 </div>
868 868
@@ -879,13 +879,13 @@
879 879
880 880 <div class="sourcecode">
881 881 <p class="source-link">
882   - Source: <a href="javascript:toggleSource('M000116_source')" id="l_M000116_source">show</a>
  882 + Source: <a href="javascript:toggleSource('M000115_source')" id="l_M000115_source">show</a>
883 883
884   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L226" target="_blank" class="github_url">on GitHub</a>
  884 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L227" target="_blank" class="github_url">on GitHub</a>
885 885
886 886 </p>
887   - <div id="M000116_source" class="dyn-source">
888   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 226</span>
  887 + <div id="M000115_source" class="dyn-source">
  888 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 227</span>
889 889 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">queue_from_class</span>(<span class="ruby-identifier">klass</span>)
890 890 <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-identifier">:@queue</span>) <span class="ruby-operator">||</span>
891 891 (<span class="ruby-identifier">klass</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:queue</span>) <span class="ruby-keyword kw">and</span> <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">queue</span>)
@@ -896,9 +896,9 @@
896 896 </div>
897 897
898 898 <div class="method">
899   - <div class="title" id="M000105">
  899 + <div class="title" id="M000107">
900 900
901   - <a name="M000105"></a><b>queues</b>()
  901 + <a name="M000107"></a><b>queues</b>()
902 902
903 903 </div>
904 904
@@ -915,13 +915,13 @@
915 915
916 916 <div class="sourcecode">
917 917 <p class="source-link">
918   - Source: <a href="javascript:toggleSource('M000105_source')" id="l_M000105_source">show</a>
  918 + Source: <a href="javascript:toggleSource('M000107_source')" id="l_M000107_source">show</a>
919 919
920   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L155" target="_blank" class="github_url">on GitHub</a>
  920 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L156" target="_blank" class="github_url">on GitHub</a>
921 921
922 922 </p>
923   - <div id="M000105_source" class="dyn-source">
924   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 155</span>
  923 + <div id="M000107_source" class="dyn-source">
  924 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 156</span>
925 925 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">queues</span>
926 926 <span class="ruby-identifier">redis</span>.<span class="ruby-identifier">smembers</span>(<span class="ruby-identifier">:queues</span>)
927 927 <span class="ruby-keyword kw">end</span></pre>
@@ -931,9 +931,9 @@
931 931 </div>
932 932
933 933 <div class="method">
934   - <div class="title" id="M000083">
  934 + <div class="title" id="M000086">
935 935
936   - <a name="M000083"></a><b>redis</b>()
  936 + <a name="M000086"></a><b>redis</b>()
937 937
938 938 </div>
939 939
@@ -950,13 +950,13 @@
950 950
951 951 <div class="sourcecode">
952 952 <p class="source-link">
953   - Source: <a href="javascript:toggleSource('M000083_source')" id="l_M000083_source">show</a>
  953 + Source: <a href="javascript:toggleSource('M000086_source')" id="l_M000086_source">show</a>
954 954
955   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L48" target="_blank" class="github_url">on GitHub</a>
  955 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L49" target="_blank" class="github_url">on GitHub</a>
956 956
957 957 </p>
958   - <div id="M000083_source" class="dyn-source">
959   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 48</span>
  958 + <div id="M000086_source" class="dyn-source">
  959 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 49</span>
960 960 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">redis</span>
961 961 <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@redis</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@redis</span>
962 962 <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">redis</span> = <span class="ruby-value str">'localhost:6379'</span>
@@ -968,9 +968,9 @@
968 968 </div>
969 969
970 970 <div class="method">
971   - <div class="title" id="M000082">
  971 + <div class="title" id="M000083">
972 972
973   - <a name="M000082"></a><b>redis=</b>(server)
  973 + <a name="M000083"></a><b>redis=</b>(server)
974 974
975 975 </div>
976 976
@@ -981,7 +981,8 @@
981 981 <pre>
982 982 1. A 'hostname:port' string
983 983 2. A 'hostname:port:db' string (to select the Redis db)
984   - 3. An instance of `Redis`, `Redis::Client`, or `Redis::Namespace`.
  984 + 3. An instance of `Redis`, `Redis::Client`, `Redis::DistRedis`,
  985 + or `Redis::Namespace`.
985 986 </pre>
986 987
987 988 </div>
@@ -991,13 +992,13 @@
991 992
992 993 <div class="sourcecode">
993 994 <p class="source-link">
994   - Source: <a href="javascript:toggleSource('M000082_source')" id="l_M000082_source">show</a>
  995 + Source: <a href="javascript:toggleSource('M000083_source')" id="l_M000083_source">show</a>
995 996
996   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L30" target="_blank" class="github_url">on GitHub</a>
  997 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L31" target="_blank" class="github_url">on GitHub</a>
997 998
998 999 </p>
999   - <div id="M000082_source" class="dyn-source">
1000   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 30</span>
  1000 + <div id="M000083_source" class="dyn-source">
  1001 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 31</span>
1001 1002 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">redis=</span>(<span class="ruby-identifier">server</span>)
1002 1003 <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">server</span>
1003 1004 <span class="ruby-keyword kw">when</span> <span class="ruby-constant">String</span>
@@ -1005,7 +1006,7 @@
1005 1006 <span class="ruby-identifier">redis</span> = <span class="ruby-constant">Redis</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:host</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">host</span>, <span class="ruby-identifier">:port</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">port</span>,
1006 1007 <span class="ruby-identifier">:thread_safe</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span>, <span class="ruby-identifier">:db</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">db</span>)
1007 1008 <span class="ruby-ivar">@redis</span> = <span class="ruby-constant">Redis</span><span class="ruby-operator">::</span><span class="ruby-constant">Namespace</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:resque</span>, <span class="ruby-identifier">:redis</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">redis</span>)
1008   - <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Redis</span>, <span class="ruby-constant">Redis</span><span class="ruby-operator">::</span><span class="ruby-constant">Client</span>
  1009 + <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Redis</span>, <span class="ruby-constant">Redis</span><span class="ruby-operator">::</span><span class="ruby-constant">Client</span>, <span class="ruby-constant">Redis</span><span class="ruby-operator">::</span><span class="ruby-constant">DistRedis</span>
1009 1010 <span class="ruby-ivar">@redis</span> = <span class="ruby-constant">Redis</span><span class="ruby-operator">::</span><span class="ruby-constant">Namespace</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:resque</span>, <span class="ruby-identifier">:redis</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">server</span>)
1010 1011 <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Redis</span><span class="ruby-operator">::</span><span class="ruby-constant">Namespace</span>
1011 1012 <span class="ruby-ivar">@redis</span> = <span class="ruby-identifier">server</span>
@@ -1019,9 +1020,9 @@
1019 1020 </div>
1020 1021
1021 1022 <div class="method">
1022   - <div class="title" id="M000106">
  1023 + <div class="title" id="M000108">
1023 1024
1024   - <a name="M000106"></a><b>remove_queue</b>(queue)
  1025 + <a name="M000108"></a><b>remove_queue</b>(queue)
1025 1026
1026 1027 </div>
1027 1028
@@ -1037,13 +1038,13 @@
1037 1038
1038 1039 <div class="sourcecode">
1039 1040 <p class="source-link">
1040   - Source: <a href="javascript:toggleSource('M000106_source')" id="l_M000106_source">show</a>
  1041 + Source: <a href="javascript:toggleSource('M000108_source')" id="l_M000108_source">show</a>
1041 1042
1042   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L160" target="_blank" class="github_url">on GitHub</a>
  1043 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L161" target="_blank" class="github_url">on GitHub</a>
1043 1044
1044 1045 </p>
1045   - <div id="M000106_source" class="dyn-source">
1046   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 160</span>
  1046 + <div id="M000108_source" class="dyn-source">
  1047 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 161</span>
1047 1048 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_queue</span>(<span class="ruby-identifier">queue</span>)
1048 1049 <span class="ruby-identifier">redis</span>.<span class="ruby-identifier">srem</span>(<span class="ruby-identifier">:queues</span>, <span class="ruby-identifier">queue</span>.<span class="ruby-identifier">to_s</span>)
1049 1050 <span class="ruby-identifier">redis</span>.<span class="ruby-identifier">del</span>(<span class="ruby-node">&quot;queue:#{queue}&quot;</span>)
@@ -1074,11 +1075,11 @@
1074 1075 <p class="source-link">
1075 1076 Source: <a href="javascript:toggleSource('M000121_source')" id="l_M000121_source">show</a>
1076 1077
1077   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L257" target="_blank" class="github_url">on GitHub</a>
  1078 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L258" target="_blank" class="github_url">on GitHub</a>
1078 1079
1079 1080 </p>
1080 1081 <div id="M000121_source" class="dyn-source">
1081   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 257</span>
  1082 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 258</span>
1082 1083 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_worker</span>(<span class="ruby-identifier">worker_id</span>)
1083 1084 <span class="ruby-identifier">worker</span> = <span class="ruby-constant">Resque</span><span class="ruby-operator">::</span><span class="ruby-constant">Worker</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">worker_id</span>)
1084 1085 <span class="ruby-identifier">worker</span>.<span class="ruby-identifier">unregister_worker</span>
@@ -1089,9 +1090,9 @@
1089 1090 </div>
1090 1091
1091 1092 <div class="method">
1092   - <div class="title" id="M000117">
  1093 + <div class="title" id="M000118">
1093 1094
1094   - <a name="M000117"></a><b>reserve</b>(queue)
  1095 + <a name="M000118"></a><b>reserve</b>(queue)
1095 1096
1096 1097 </div>
1097 1098
@@ -1112,13 +1113,13 @@
1112 1113
1113 1114 <div class="sourcecode">
1114 1115 <p class="source-link">
1115   - Source: <a href="javascript:toggleSource('M000117_source')" id="l_M000117_source">show</a>
  1116 + Source: <a href="javascript:toggleSource('M000118_source')" id="l_M000118_source">show</a>
1116 1117
1117   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L236" target="_blank" class="github_url">on GitHub</a>
  1118 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L237" target="_blank" class="github_url">on GitHub</a>
1118 1119
1119 1120 </p>
1120   - <div id="M000117_source" class="dyn-source">
1121   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 236</span>
  1121 + <div id="M000118_source" class="dyn-source">
  1122 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 237</span>
1122 1123 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reserve</span>(<span class="ruby-identifier">queue</span>)
1123 1124 <span class="ruby-constant">Job</span>.<span class="ruby-identifier">reserve</span>(<span class="ruby-identifier">queue</span>)
1124 1125 <span class="ruby-keyword kw">end</span></pre>
@@ -1128,9 +1129,9 @@
1128 1129 </div>
1129 1130
1130 1131 <div class="method">
1131   - <div class="title" id="M000100">
  1132 + <div class="title" id="M000102">
1132 1133
1133   - <a name="M000100"></a><b>size</b>(queue)
  1134 + <a name="M000102"></a><b>size</b>(queue)
1134 1135
1135 1136 </div>
1136 1137
@@ -1147,13 +1148,13 @@
1147 1148
1148 1149 <div class="sourcecode">
1149 1150 <p class="source-link">
1150   - Source: <a href="javascript:toggleSource('M000100_source')" id="l_M000100_source">show</a>
  1151 + Source: <a href="javascript:toggleSource('M000102_source')" id="l_M000102_source">show</a>
1151 1152
1152   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L126" target="_blank" class="github_url">on GitHub</a>
  1153 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L127" target="_blank" class="github_url">on GitHub</a>
1153 1154
1154 1155 </p>
1155   - <div id="M000100_source" class="dyn-source">
1156   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 126</span>
  1156 + <div id="M000102_source" class="dyn-source">
  1157 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 127</span>
1157 1158 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">size</span>(<span class="ruby-identifier">queue</span>)
1158 1159 <span class="ruby-identifier">redis</span>.<span class="ruby-identifier">llen</span>(<span class="ruby-node">&quot;queue:#{queue}&quot;</span>).<span class="ruby-identifier">to_i</span>
1159 1160 <span class="ruby-keyword kw">end</span></pre>
@@ -1163,9 +1164,9 @@
1163 1164 </div>
1164 1165
1165 1166 <div class="method">
1166   - <div class="title" id="M000095">
  1167 + <div class="title" id="M000098">
1167 1168
1168   - <a name="M000095"></a><b>to_s</b>()
  1169 + <a name="M000098"></a><b>to_s</b>()
1169 1170
1170 1171 </div>
1171 1172
@@ -1174,13 +1175,13 @@
1174 1175
1175 1176 <div class="sourcecode">
1176 1177 <p class="source-link">
1177   - Source: <a href="javascript:toggleSource('M000095_source')" id="l_M000095_source">show</a>
  1178 + Source: <a href="javascript:toggleSource('M000098_source')" id="l_M000098_source">show</a>
1178 1179
1179   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L101" target="_blank" class="github_url">on GitHub</a>
  1180 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L102" target="_blank" class="github_url">on GitHub</a>
1180 1181
1181 1182 </p>
1182   - <div id="M000095_source" class="dyn-source">
1183   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 101</span>
  1183 + <div id="M000098_source" class="dyn-source">
  1184 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 102</span>
1184 1185 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
1185 1186 <span class="ruby-node">&quot;Resque Client connected to #{redis.server}&quot;</span>
1186 1187 <span class="ruby-keyword kw">end</span></pre>
@@ -1190,9 +1191,9 @@
1190 1191 </div>
1191 1192
1192 1193 <div class="method">
1193   - <div class="title" id="M000107">
  1194 + <div class="title" id="M000109">
1194 1195
1195   - <a name="M000107"></a><b>watch_queue</b>(queue)
  1196 + <a name="M000109"></a><b>watch_queue</b>(queue)
1196 1197
1197 1198 </div>
1198 1199
@@ -1209,13 +1210,13 @@
1209 1210
1210 1211 <div class="sourcecode">
1211 1212 <p class="source-link">
1212   - Source: <a href="javascript:toggleSource('M000107_source')" id="l_M000107_source">show</a>
  1213 + Source: <a href="javascript:toggleSource('M000109_source')" id="l_M000109_source">show</a>
1213 1214
1214   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L167" target="_blank" class="github_url">on GitHub</a>
  1215 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L168" target="_blank" class="github_url">on GitHub</a>
1215 1216
1216 1217 </p>
1217   - <div id="M000107_source" class="dyn-source">
1218   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 167</span>
  1218 + <div id="M000109_source" class="dyn-source">
  1219 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 168</span>
1219 1220 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">watch_queue</span>(<span class="ruby-identifier">queue</span>)
1220 1221 <span class="ruby-identifier">redis</span>.<span class="ruby-identifier">sadd</span>(<span class="ruby-identifier">:queues</span>, <span class="ruby-identifier">queue</span>.<span class="ruby-identifier">to_s</span>)
1221 1222 <span class="ruby-keyword kw">end</span></pre>
@@ -1245,11 +1246,11 @@
1245 1246 <p class="source-link">
1246 1247 Source: <a href="javascript:toggleSource('M000119_source')" id="l_M000119_source">show</a>
1247 1248
1248   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L246" target="_blank" class="github_url">on GitHub</a>
  1249 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L247" target="_blank" class="github_url">on GitHub</a>
1249 1250
1250 1251 </p>
1251 1252 <div id="M000119_source" class="dyn-source">
1252   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 246</span>
  1253 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 247</span>
1253 1254 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">workers</span>
1254 1255 <span class="ruby-constant">Worker</span>.<span class="ruby-identifier">all</span>
1255 1256 <span class="ruby-keyword kw">end</span></pre>
@@ -1279,11 +1280,11 @@
1279 1280 <p class="source-link">
1280 1281 Source: <a href="javascript:toggleSource('M000120_source')" id="l_M000120_source">show</a>
1281 1282
1282   - | <a href="http://github.com/defunkt/resque/blob/168d19e1e8ea68f77142edbeae07d1185267b520/lib/resque.rb#L251" target="_blank" class="github_url">on GitHub</a>
  1283 + | <a href="http://github.com/defunkt/resque/blob/e7175fd5167a054e33b5ccf19cca3fb5c44db32e/lib/resque.rb#L252" target="_blank" class="github_url">on GitHub</a>
1283 1284
1284 1285 </p>
1285 1286 <div id="M000120_source" class="dyn-source">
1286   - <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 251</span>
  1287 + <pre><span class="ruby-comment cmt"># File lib/resque.rb, line 252</span>
1287 1288 <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">working</span>
1288 1289 <span class="ruby-constant">Worker</span>.<span class="ruby-identifier">working</span>
1289 1290 <span class="ruby-keyword kw">end</span></pre>
80 classes/Resque/Failure.html
@@ -65,7 +65,7 @@
65 65 <dd>
66 66 <ul>
67 67
68   - <li><a href="#M000030">all</a></li>
  68 + <li><a href="#M000033">all</a></li>
69 69
70 70 </ul>
71 71 </dd>
@@ -74,9 +74,9 @@
74 74 <dd>
75 75 <ul>
76 76
77   - <li><a href="#M000028">backend</a>,</li>
  77 + <li><a href="#M000031">backend</a>,</li>
78 78
79   - <li><a href="#M000025">backend=</a></li>
  79 + <li><a href="#M000030">backend=</a></li>
80 80
81 81 </ul>
82 82 </dd>
@@ -85,11 +85,11 @@
85 85 <dd>
86 86 <ul>
87 87
88   - <li><a href="#M000034">clear</a>,</li>
  88 + <li><a href="#M000035">clear</a>,</li>
89 89
90   - <li><a href="#M000029">count</a>,</li>
  90 + <li><a href="#M000032">count</a>,</li>
91 91
92   - <li><a href="#M000024">create</a></li>
  92 + <li><a href="#M000028">create</a></li>
93 93
94 94 </ul>
95 95 </dd>
@@ -98,7 +98,7 @@
98 98 <dd>
99 99 <ul>
100 100
101   - <li><a href="#M000035">requeue</a></li>
  101 + <li><a href="#M000036">requeue</a></li>
102 102
103 103 </ul>
104 104 </dd>
@@ -107,7 +107,7 @@
107 107 <dd>
108 108 <ul>
109 109
110   - <li><a href="#M000033">url</a></li>
  110 + <li><a href="#M000034">url</a></li>
111 111
112 112 </ul>
113 113 </dd>
@@ -142,9 +142,9 @@
142 142 <div class="sectiontitle">Class Public methods</div>
143 143
144 144 <div class="method">
145   - <div class="title" id="M000030">
  145 + <div class="title" id="M000033">
146 146
147   - <a name="M000030"></a><b>all</b>(start = 0, count = 1)
  147 + <a name="M000033"></a><b>all</b>(start = 0, count = 1)
148 148
149 149 </div>
150 150
@@ -164,12 +164,12 @@
164 164
165 165 <div class="sourcecode">
166 166 <p class="source-link">
167   - Source: <a href="javascript:toggleSource('M000030_source')" id="l_M000030_source">show</a>
  167 + Source: <a href="javascript:toggleSource('M000033_source')" id="l_M000033_source">show</a>
168 168
169 169 | <a href="http://github.com/defunkt/resque/blob/2af831cdb81350fa14dadd0929f3e355b866c618/lib/resque/failure.rb#L48" target="_blank" class="github_url">on GitHub</a>
170 170
171 171 </p>
172   - <div id="M000030_source" class="dyn-source">
  172 + <div id="M000033_source" class="dyn-source">
173 173 <pre><span class="ruby-comment cmt"># File lib/resque/failure.rb, line 48</span>
174 174 <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">all</span>(<span class="ruby-identifier">start</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">count</span> = <span class="ruby-value">1</span>)
175 175 <span class="ruby-identifier">backend</span>.<span class="ruby-identifier">all</span>(<span class="ruby-identifier">start</span>, <span class="ruby-identifier">count</span>)
@@ -180,9 +180,9 @@
180 180 </div>
181 181
182 182 <div class="method">
183   - <div class="title" id="M000028">
  183 + <div class="title" id="M000031">
184 184
185   - <a name="M000028"></a><b>backend</b>()
  185 + <a name="M000031"></a><b>backend</b>()
186 186
187 187 </div>
188 188
@@ -199,12 +199,12 @@
199 199
200 200 <div class="sourcecode">
201 201 <p class="source-link">
202   - Source: <a href="javascript:toggleSource('M000028_source')" id="l_M000028_source">show</a>
  202 + Source: <a href="javascript:toggleSource('M000031_source')" id="l_M000031_source">show</a>
203 203
204 204 | <a href="http://github.com/defunkt/resque/blob/2af831cdb81350fa14dadd0929f3e355b866c618/lib/resque/failure.rb#L33" target="_blank" class="github_url">on GitHub</a>
205 205
206 206 </p>
207   - <div id="M000028_source" class="dyn-source">
  207 + <div id="M000031_source" class="dyn-source">
208 208 <pre><span class="ruby-comment cmt"># File lib/resque/failure.rb, line 33</span>
209 209 <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">backend</span>
210 210 <span class="ruby-keyword kw">return</span> <span class="ruby-ivar">@backend</span> <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@backend</span>
@@ -217,9 +217,9 @@
217 217 </div>
218 218
219 219 <div class="method">
220   - <div class="title" id="M000025">
  220 + <div class="title" id="M000030">
221 221
222   - <a name="M000025"></a><b>backend=</b>(backend)
  222 + <a name="M000030"></a><b>backend=</b>(backend)
223 223
224 224 </div>
225 225
@@ -243,12 +243,12 @@
243 243
244 244 <div class="sourcecode">
245 245 <p class="source-link">
246   - Source: <a href="javascript:toggleSource('M000025_source')" id="l_M000025_source">show</a>
  246 + Source: <a href="javascript:toggleSource('M000030_source')" id="l_M000030_source">show</a>
247 247
248 248 | <a href="http://github.com/defunkt/resque/blob/2af831cdb81350fa14dadd0929f3e355b866c618/lib/resque/failure.rb#L27" target="_blank" class="github_url">on GitHub</a>
249 249
250 250 </p>
251   - <div id="M0