resque-queue-priority 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
The list below orders queue name patterns by the priority you wish them to be executed in. The "Fairly" option allows you to indicate you want the queues within that pattern space be selected in a fair (random) manner, i.e. like resque-fairly. The 'default' pattern must always exist, and matches against all queues that aren't in any of the other patterns.
|
4
4
|
</p>
|
5
5
|
|
6
|
-
<form action="
|
6
|
+
<form action="<%= url(:queuepriority) %>" method="POST" style="float:none; margin-top:10px">
|
7
7
|
|
8
8
|
<table class="priorities">
|
9
9
|
<tr>
|
@@ -30,35 +30,46 @@
|
|
30
30
|
</form>
|
31
31
|
|
32
32
|
<script type="text/javascript" charset="utf-8">
|
33
|
+
function markDirty()
|
34
|
+
{
|
35
|
+
$("input[type=submit]").css({border:"3px orange solid"});
|
36
|
+
}
|
37
|
+
|
33
38
|
jQuery(function($) {
|
34
|
-
|
35
|
-
$("
|
39
|
+
$("input").live("keypress", markDirty);
|
40
|
+
$("input[type=checkbox]").live("click", markDirty);
|
41
|
+
|
42
|
+
$("a.add").live("click", function(e) {
|
36
43
|
e.preventDefault();
|
37
44
|
var $table = $("table.priorities");
|
38
45
|
var $newRow = $table.find("tr.line:first").clone();
|
39
46
|
$newRow.find("input[type=text]").attr("value", "");
|
40
47
|
$newRow.find("input[type=checkbox]").attr("checked", false);
|
41
48
|
$newRow.appendTo($table);
|
49
|
+
markDirty();
|
42
50
|
});
|
43
51
|
|
44
|
-
$("a.remove").click
|
52
|
+
$("a.remove").live("click", function(e) {
|
45
53
|
e.preventDefault();
|
46
54
|
var $link = $(this);
|
47
55
|
$link.parents("tr").remove();
|
56
|
+
markDirty();
|
48
57
|
});
|
49
58
|
|
50
|
-
$("a.up").click
|
59
|
+
$("a.up").live("click", function(e) {
|
51
60
|
e.preventDefault();
|
52
61
|
var $link = $(this);
|
53
62
|
var $row = $link.parents("tr");
|
54
63
|
$row.prev(".line").before($row);
|
64
|
+
markDirty();
|
55
65
|
});
|
56
66
|
|
57
|
-
$("a.down").click
|
67
|
+
$("a.down").live("click", function(e) {
|
58
68
|
e.preventDefault();
|
59
69
|
var $link = $(this);
|
60
70
|
var $row = $link.parents("tr");
|
61
71
|
$row.next(".line").after($row);
|
72
|
+
markDirty();
|
62
73
|
});
|
63
74
|
|
64
75
|
});
|
data/spec/server_spec.rb
CHANGED
@@ -96,7 +96,7 @@ describe "Queue Priority pages" do
|
|
96
96
|
it "should have form to edit queues" do
|
97
97
|
get "/queuepriority"
|
98
98
|
|
99
|
-
last_response.body.should match /<form action="\/queuepriority"/
|
99
|
+
last_response.body.should match /<form action="http:\/\/example.org\/queuepriority"/
|
100
100
|
end
|
101
101
|
|
102
102
|
it "should update queues" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-queue-priority
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-12-
|
12
|
+
date: 2011-12-13 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: resque
|
16
|
-
requirement: &
|
16
|
+
requirement: &2152997000 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '1.10'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2152997000
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
requirement: &
|
27
|
+
requirement: &2152996580 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2152996580
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &2152996040 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '2.5'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2152996040
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rack-test
|
49
|
-
requirement: &
|
49
|
+
requirement: &2152995540 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: 0.5.4
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2152995540
|
58
58
|
description: A resque plugin for specifying the priority between queues that workers
|
59
59
|
use to determine what to work on next
|
60
60
|
email:
|