sidekiq-batch 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/Gemfile +2 -1
- data/lib/sidekiq/batch/callback.rb +3 -3
- data/lib/sidekiq/batch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fe037d539fb1492eb690004dfd48a03727beadf
|
4
|
+
data.tar.gz: 3bad40562aa7abd37fc677ae4bf65c6393053d4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d12d34ce2b8d9ee4d823f1c32406403322a402ab5fc4104c46b6b1cfffca94d12732ff50c09c238666fd333787b3e546eac412529a8c840860bc182ad57014a8
|
7
|
+
data.tar.gz: bdbc01d26ef53401a420fc78baf0e715ff3d609a950b0987c318d17a5ac9ce67c6e97fb9005fff79a31e2f1e33eb16b9c26ffbb9fb09e6f645a9e3c4977aa8a6
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -6,9 +6,9 @@ module Sidekiq
|
|
6
6
|
|
7
7
|
def perform(clazz, event, opts, bid)
|
8
8
|
return unless %w(success complete).include?(event)
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
clazz, method = clazz.split("#") if (clazz.class == String && clazz.include?("#"))
|
10
|
+
method = "on_#{event}" if method.nil?
|
11
|
+
clazz.constantize.new.send(method, Sidekiq::Batch::Status.new(bid), opts) rescue nil
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-batch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcin Naglik
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|