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: e2fd7c7576b8e97b840ef113b6598e213ab40d26721a82fd545bb0992d7e3099
4
- data.tar.gz: 1c99f45515ffe811a41e763d77a3471455e71f02cae51244737bc3a58fd629ab
3
+ metadata.gz: 02bb9ffa139a253d74b8311952767e72cf48499d8071342d433fcd1d185f31c7
4
+ data.tar.gz: 2550ac532b5dd0ec61b70bababa532acbf35851ba34f888ba4269c88d95fdce2
5
5
  SHA512:
6
- metadata.gz: c30e599a26f9ccdb40e482b7ea4d49869649e6558059e7d48c13def949d4aa6453bc6b1c16c788cbe22f33440e9e366d6c9e386884e9f3d728cdbdd74997845e
7
- data.tar.gz: 68cff6cc61c6948f29eec3da8ac3bd836c67faa03c5f16bd8fe7b3921ccc5a39b10e988745c423bfcab24bfee4a9f2df52f5547dac02c557fc2f597f02f31957
6
+ metadata.gz: 0c45478c4da0ef2150fab5684e2817bbbdd61ef6a8f87cdc74cf7e80c84779d9bf425c872e783ff5356133cb416c9313736e5a5a3a6782cc5f610bbfcc2769f2
7
+ data.tar.gz: d9beeeae13dd13612ac422257f501a9da5c16229b9b67706784ef3479a7c7c8faf329710683548e21070e9b8860e0b66920969a08b129c0600a87354205ca806
@@ -186,7 +186,7 @@ module SidekiqUniqueJobs # rubocop:disable Metrics/ModuleLength
186
186
  yield config
187
187
  else
188
188
  options.each do |key, val|
189
- config.send("#{key}=", val)
189
+ config.send(:"#{key}=", val)
190
190
  end
191
191
  end
192
192
  end
@@ -3,5 +3,5 @@
3
3
  module SidekiqUniqueJobs
4
4
  #
5
5
  # @return [String] the current SidekiqUniqueJobs version
6
- VERSION = "7.1.32"
6
+ VERSION = "7.1.33"
7
7
  end
@@ -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(params[:job_id])
91
+ @lock.unlock(@job_id)
91
92
 
92
93
  redirect_to "locks/#{@lock.key}"
93
94
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-unique-jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.32
4
+ version: 7.1.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikael Henriksson