1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Bump standard, code format updates

This commit is contained in:
Mike Perham 2020-12-16 11:07:31 -08:00
parent 4a43f598fb
commit 9998a59b6d
5 changed files with 17 additions and 13 deletions

View file

@ -95,7 +95,7 @@ GEM
nio4r (2.5.2)
nokogiri (1.10.10)
mini_portile2 (~> 2.4.0)
parallel (1.19.2)
parallel (1.20.1)
parser (2.7.2.0)
ast (~> 2.4.1)
rack (2.2.3)
@ -132,21 +132,21 @@ GEM
redis (4.2.1)
redis-namespace (1.8.0)
redis (>= 3.0.4)
regexp_parser (1.8.2)
regexp_parser (2.0.0)
rexml (3.2.4)
rubocop (1.0.0)
rubocop (1.4.2)
parallel (~> 1.10)
parser (>= 2.7.1.5)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8)
rexml
rubocop-ast (>= 0.6.0)
rubocop-ast (>= 1.1.1)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 2.0)
rubocop-ast (1.0.0)
rubocop-ast (1.3.0)
parser (>= 2.7.1.5)
rubocop-performance (1.8.1)
rubocop (>= 0.87.0)
rubocop-performance (1.9.1)
rubocop (>= 0.90.0, < 2.0)
rubocop-ast (>= 0.4.0)
ruby-progressbar (1.10.1)
simplecov (0.19.0)
@ -161,9 +161,9 @@ GEM
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.4.2)
standard (0.8)
rubocop (= 1.0.0)
rubocop-performance (= 1.8.1)
standard (0.10.2)
rubocop (= 1.4.2)
rubocop-performance (= 1.9.1)
thor (1.0.1)
thread_safe (0.3.6)
toxiproxy (1.0.3)
@ -191,3 +191,6 @@ DEPENDENCIES
sqlite3
standard
toxiproxy
BUNDLED WITH
2.1.4

View file

@ -19,7 +19,7 @@ module Sidekiq
#
def middleware(&block)
@chain ||= Sidekiq.client_middleware
if block_given?
if block
@chain = @chain.dup
yield @chain
end

View file

@ -61,6 +61,7 @@ module Sidekiq
#
class JobRetry
class Handled < ::RuntimeError; end
class Skip < Handled; end
include Sidekiq::Util

View file

@ -89,7 +89,7 @@ module Sidekiq
return true if @logdev.nil? || severity < level
if message.nil?
if block_given?
if block
message = yield
else
message = progname

View file

@ -316,7 +316,7 @@ module Sidekiq
end
def self.helpers(mod = nil, &block)
if block_given?
if block
WebAction.class_eval(&block)
else
WebAction.send(:include, mod)