sidekiq-delay_extensions 6.4.0 → 6.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changes.md +0 -5
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/lib/sidekiq/delay_extensions/action_mailer.rb +2 -2
- data/lib/sidekiq/delay_extensions/active_record.rb +2 -2
- data/lib/sidekiq/delay_extensions/api.rb +6 -3
- data/lib/sidekiq/delay_extensions/class_methods.rb +2 -2
- data/lib/sidekiq/delay_extensions/generic_proxy.rb +2 -2
- data/lib/sidekiq/delay_extensions/version.rb +1 -1
- data/sidekiq-delay_extensions.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: beb5bfc9e96d466f3243e2a46d1826f67463b973fc9d6ce72687abe085cb61ab
|
4
|
+
data.tar.gz: 17d9241ad6cde74793d0e5c860b962044a8c9b592a8059566c4391a55f068b49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8ac369b7701a8c979c729a512287d0956b1f952c87f48660d2f1262c14ab992cea51970626fc01eb737263e7c67b9dc1ad220542695964a74ad591ec2970fd8
|
7
|
+
data.tar.gz: a1cd9feaaae12197787b9b707689c61b6631e559f61cec18b0d35eac56165046100dba4822f5d0dd0c8ceae56e648113e3ee4bdd97a602a2b0df1af2072fcc01
|
data/Changes.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -14,7 +14,7 @@ When Sidekiq reaches 7.0, this gem will begin being maintained on its own. Maint
|
|
14
14
|
Requirements
|
15
15
|
-----------------
|
16
16
|
|
17
|
-
- See https://github.com/mperham/sidekiq/tree/v6.4.
|
17
|
+
- See https://github.com/mperham/sidekiq/tree/v6.4.1
|
18
18
|
- Redis: 4.0+
|
19
19
|
- Ruby: MRI 2.5+ or JRuby 9.2+.
|
20
20
|
- Sidekiq 6.0 supports Rails 5.0+ but does not require it.
|
@@ -16,8 +16,8 @@ module Sidekiq
|
|
16
16
|
include Sidekiq::Worker
|
17
17
|
|
18
18
|
def perform(yml)
|
19
|
-
(target, method_name, args
|
20
|
-
msg =
|
19
|
+
(target, method_name, args) = YAML.load(yml)
|
20
|
+
msg = target.public_send(method_name, *args)
|
21
21
|
# The email method can return nil, which causes ActionMailer to return
|
22
22
|
# an undeliverable empty message.
|
23
23
|
if msg
|
@@ -18,8 +18,8 @@ module Sidekiq
|
|
18
18
|
include Sidekiq::Worker
|
19
19
|
|
20
20
|
def perform(yml)
|
21
|
-
(target, method_name, args
|
22
|
-
|
21
|
+
(target, method_name, args) = YAML.load(yml)
|
22
|
+
target.__send__(method_name, *args)
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
@@ -23,10 +23,13 @@ module Sidekiq
|
|
23
23
|
# Unwrap known wrappers so they show up in a human-friendly manner in the Web UI
|
24
24
|
@display_args ||= case klass
|
25
25
|
when /\ASidekiq::DelayExtensions::Delayed/
|
26
|
-
safe_load(args[0], args) do |_, _, arg|
|
27
|
-
|
26
|
+
safe_load(args[0], args) do |_, _, arg, kwarg|
|
27
|
+
if !kwarg || kwarg.empty?
|
28
|
+
arg
|
29
|
+
else
|
30
|
+
[arg, kwarg]
|
31
|
+
end
|
28
32
|
end
|
29
|
-
|
30
33
|
else
|
31
34
|
super
|
32
35
|
end
|
@@ -16,8 +16,8 @@ module Sidekiq
|
|
16
16
|
include Sidekiq::Worker
|
17
17
|
|
18
18
|
def perform(yml)
|
19
|
-
(target, method_name, args
|
20
|
-
|
19
|
+
(target, method_name, args) = YAML.load(yml)
|
20
|
+
target.__send__(method_name, *args)
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
@@ -13,13 +13,13 @@ module Sidekiq
|
|
13
13
|
@opts = options
|
14
14
|
end
|
15
15
|
|
16
|
-
def method_missing(name, *args
|
16
|
+
def method_missing(name, *args)
|
17
17
|
# Sidekiq has a limitation in that its message must be JSON.
|
18
18
|
# JSON can't round trip real Ruby objects so we use YAML to
|
19
19
|
# serialize the objects to a String. The YAML will be converted
|
20
20
|
# to JSON and then deserialized on the other side back into a
|
21
21
|
# Ruby object.
|
22
|
-
obj = [@target, name, args
|
22
|
+
obj = [@target, name, args]
|
23
23
|
marshalled = ::YAML.dump(obj)
|
24
24
|
if marshalled.size > SIZE_LIMIT
|
25
25
|
::Sidekiq.logger.warn { "#{@target}.#{name} job argument is #{marshalled.bytesize} bytes, you should refactor it to reduce the size" }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-delay_extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.4.
|
4
|
+
version: 6.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Perham
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 6.4.
|
20
|
+
version: 6.4.1
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 6.4.
|
27
|
+
version: 6.4.1
|
28
28
|
description: Extracted from Sidekiq 6.0
|
29
29
|
email:
|
30
30
|
- mperham@gmail.com
|