softwear-lib 1.8.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/softwear/lib/enqueue.rb +2 -2
- data/lib/softwear/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fcd2752eff4d434f8fa8fecb8aba94be8c5d0ba
|
4
|
+
data.tar.gz: 7692ab15625d78dd53ff045f07cdb9c8f90773e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13c5a47a437b224649c59fc10cdf82194282aed2b704ce0f4662a0aadaf58a9c81fe9692a8c63cefaf44bc460ed9662ec04e350c6b915a1b94f02a319aa0eb07
|
7
|
+
data.tar.gz: d9e8612ab1cde5725a0f4e4cb6921e267d5f7e4bef4e98a88520891e8231b769e159cdab0baa2f97b787cd57ab91d278d6ef6e20b9c9bfe85f4cff5266fa509f
|
data/lib/softwear/lib/enqueue.rb
CHANGED
@@ -4,7 +4,7 @@ module Softwear
|
|
4
4
|
extend ActiveSupport::Concern
|
5
5
|
|
6
6
|
class Worker
|
7
|
-
include Sidekiq::Worker
|
7
|
+
include ::Sidekiq::Worker
|
8
8
|
|
9
9
|
def perform(model_name, id, method, *args)
|
10
10
|
model_name.constantize.find(id).send(method, *args)
|
@@ -30,7 +30,7 @@ module Softwear
|
|
30
30
|
if Rails.env.production?
|
31
31
|
class_eval <<-RUBY, __FILE__, __LINE__ + 1
|
32
32
|
def self.enqueue_#{method_name}(id, *args)
|
33
|
-
Sidekiq::Client.push(
|
33
|
+
::Sidekiq::Client.push(
|
34
34
|
'class' => ::Softwear::Lib::Enqueue::Worker,
|
35
35
|
'args' => [name, id, #{method_name.inspect}] + args,
|
36
36
|
'queue' => #{options[:queue]}
|
data/lib/softwear/lib/version.rb
CHANGED