mirror of
https://github.com/endofunky/sidetiq.git
synced 2022-11-09 13:53:30 -05:00
Fix Ruby parser warnings in web.rb.
This commit is contained in:
parent
03975ed2ce
commit
09d40ab6a1
2 changed files with 4 additions and 3 deletions
|
@ -4,6 +4,7 @@
|
||||||
- Bump Sidekiq dependency to ~> 2.14.0.
|
- Bump Sidekiq dependency to ~> 2.14.0.
|
||||||
- Use ERB templates instead of slim.
|
- Use ERB templates instead of slim.
|
||||||
- Don't check if `Sidekiq::Web.tabs` is an Array in Sidetiq::Web.
|
- Don't check if `Sidekiq::Web.tabs` is an Array in Sidetiq::Web.
|
||||||
|
- Fix Ruby parser warnings in web.rb.
|
||||||
|
|
||||||
0.3.6
|
0.3.6
|
||||||
-----
|
-----
|
||||||
|
|
|
@ -26,7 +26,7 @@ module Sidetiq
|
||||||
|
|
||||||
@time = sidetiq_clock.gettime
|
@time = sidetiq_clock.gettime
|
||||||
|
|
||||||
@worker, @schedule = sidetiq_schedules.select do |worker, schedule|
|
@worker, @schedule = sidetiq_schedules.select do |worker, _|
|
||||||
worker.name == name
|
worker.name == name
|
||||||
end.flatten
|
end.flatten
|
||||||
|
|
||||||
|
@ -36,8 +36,8 @@ module Sidetiq
|
||||||
app.post "/sidetiq/:name/trigger" do
|
app.post "/sidetiq/:name/trigger" do
|
||||||
halt 404 unless (name = params[:name])
|
halt 404 unless (name = params[:name])
|
||||||
|
|
||||||
worker, _ = sidetiq_schedules.select do |worker, schedule|
|
worker, _ = sidetiq_schedules.select do |w, _|
|
||||||
worker.name == name
|
w.name == name
|
||||||
end.flatten
|
end.flatten
|
||||||
|
|
||||||
worker.perform_async
|
worker.perform_async
|
||||||
|
|
Loading…
Reference in a new issue