sidekiq-unique-jobs 7.1.32 → 7.1.33
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02bb9ffa139a253d74b8311952767e72cf48499d8071342d433fcd1d185f31c7
|
4
|
+
data.tar.gz: 2550ac532b5dd0ec61b70bababa532acbf35851ba34f888ba4269c88d95fdce2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c45478c4da0ef2150fab5684e2817bbbdd61ef6a8f87cdc74cf7e80c84779d9bf425c872e783ff5356133cb416c9313736e5a5a3a6782cc5f610bbfcc2769f2
|
7
|
+
data.tar.gz: d9beeeae13dd13612ac422257f501a9da5c16229b9b67706784ef3479a7c7c8faf329710683548e21070e9b8860e0b66920969a08b129c0600a87354205ca806
|
@@ -14,11 +14,11 @@ module SidekiqUniqueJobs
|
|
14
14
|
end
|
15
15
|
|
16
16
|
app.get "/changelogs" do
|
17
|
-
@filter = params[:filter] || "*"
|
17
|
+
@filter = h(params[:filter] || "*")
|
18
18
|
@filter = "*" if @filter == ""
|
19
|
-
@count = (params[:count] || 100).to_i
|
20
|
-
@current_cursor = params[:cursor]
|
21
|
-
@prev_cursor = params[:prev_cursor]
|
19
|
+
@count = h(params[:count] || 100).to_i
|
20
|
+
@current_cursor = h(params[:cursor])
|
21
|
+
@prev_cursor = h(params[:prev_cursor])
|
22
22
|
@total_size, @next_cursor, @changelogs = changelog.page(
|
23
23
|
cursor: @current_cursor,
|
24
24
|
pattern: @filter,
|
@@ -34,11 +34,11 @@ module SidekiqUniqueJobs
|
|
34
34
|
end
|
35
35
|
|
36
36
|
app.get "/locks" do
|
37
|
-
@filter = params[:filter] || "*"
|
37
|
+
@filter = h(params[:filter] || "*")
|
38
38
|
@filter = "*" if @filter == ""
|
39
|
-
@count = (params[:count] || 100).to_i
|
40
|
-
@current_cursor = params[:cursor]
|
41
|
-
@prev_cursor = params[:prev_cursor]
|
39
|
+
@count = h(params[:count] || 100).to_i
|
40
|
+
@current_cursor = h(params[:cursor])
|
41
|
+
@prev_cursor = h(params[:prev_cursor])
|
42
42
|
|
43
43
|
@total_size, @next_cursor, @locks = digests.page(
|
44
44
|
cursor: @current_cursor,
|
@@ -50,11 +50,11 @@ module SidekiqUniqueJobs
|
|
50
50
|
end
|
51
51
|
|
52
52
|
app.get "/expiring_locks" do
|
53
|
-
@filter = params[:filter] || "*"
|
53
|
+
@filter = h(params[:filter] || "*")
|
54
54
|
@filter = "*" if @filter == ""
|
55
|
-
@count = (params[:count] || 100).to_i
|
56
|
-
@current_cursor = params[:cursor]
|
57
|
-
@prev_cursor = params[:prev_cursor]
|
55
|
+
@count = h(params[:count] || 100).to_i
|
56
|
+
@current_cursor = h(params[:cursor])
|
57
|
+
@prev_cursor = h(params[:prev_cursor])
|
58
58
|
|
59
59
|
@total_size, @next_cursor, @locks = expiring_digests.page(
|
60
60
|
cursor: @current_cursor,
|
@@ -72,7 +72,7 @@ module SidekiqUniqueJobs
|
|
72
72
|
end
|
73
73
|
|
74
74
|
app.get "/locks/:digest" do
|
75
|
-
@digest = params[:digest]
|
75
|
+
@digest = h(params[:digest])
|
76
76
|
@lock = SidekiqUniqueJobs::Lock.new(@digest)
|
77
77
|
|
78
78
|
erb(unique_template(:lock))
|
@@ -85,9 +85,10 @@ module SidekiqUniqueJobs
|
|
85
85
|
end
|
86
86
|
|
87
87
|
app.get "/locks/:digest/jobs/:job_id/delete" do
|
88
|
-
@digest = params[:digest]
|
88
|
+
@digest = h(params[:digest])
|
89
|
+
@job_id = h(params[:job_id])
|
89
90
|
@lock = SidekiqUniqueJobs::Lock.new(@digest)
|
90
|
-
@lock.unlock(
|
91
|
+
@lock.unlock(@job_id)
|
91
92
|
|
92
93
|
redirect_to "locks/#{@lock.key}"
|
93
94
|
end
|