operationable 0.4.6 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/Gemfile +0 -2
- data/lib/operationable.rb +0 -2
- data/lib/operationable/callback.rb +3 -2
- data/lib/operationable/runners/separate.rb +2 -2
- data/lib/operationable/runners/serial.rb +1 -1
- data/lib/operationable/serializer.rb +1 -1
- data/lib/operationable/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c411980798c3f46780a091735a264b1647f16462d08bb76d2a97210890687610
|
4
|
+
data.tar.gz: 74cccd3d65e1a28d7c993566e75cd2d018056e86abd19c927ef5fdeaa248be4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7a914e63e5ba714db548822154b8cb972290959f15041cf357fa4d0ac1c7a171fde9eb061eb71c3d054ac84c06911e363b0619c100dca6a1210199cd12e3ceb
|
7
|
+
data.tar.gz: 9da8dbac6b7f277ed3c80b15b51bdb7b63d7a6ccf1658e3d40cbea5a2c6f554226eb08b9af71733c2e841cd8be3171386db2a5180379f0ed48fcf54064288e3b
|
data/Gemfile
CHANGED
data/lib/operationable.rb
CHANGED
@@ -12,7 +12,7 @@ module Operationable
|
|
12
12
|
|
13
13
|
(queue.blank? ? self.class : job_class_name.constantize.method(perform_method)).call(
|
14
14
|
q_options: q_options(callback_method_name, queue),
|
15
|
-
props:
|
15
|
+
props: props.merge(params)
|
16
16
|
)
|
17
17
|
end
|
18
18
|
|
@@ -24,7 +24,7 @@ module Operationable
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def self.call(q_options:, props:)
|
27
|
-
q_options[:callback_class_name].constantize.new(props).method(q_options[:callback_method_name]).call
|
27
|
+
q_options[:callback_class_name].constantize.new(props, q_options).method(q_options[:callback_method_name]).call
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
@@ -14,7 +14,7 @@ module Operationable
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def self.call(q_options:, props:)
|
17
|
-
instance = q_options[:callback_class_name].constantize.new(props)
|
17
|
+
instance = q_options[:callback_class_name].constantize.new(props, q_options)
|
18
18
|
q_options[:callback_names].each { |method_name| instance.method(method_name).call }
|
19
19
|
end
|
20
20
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: operationable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kirill Suhodolov
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-12-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activejob
|
@@ -121,8 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
|
-
|
125
|
-
rubygems_version: 2.6.10
|
124
|
+
rubygems_version: 3.1.4
|
126
125
|
signing_key:
|
127
126
|
specification_version: 4
|
128
127
|
summary: Implementation of command pattern to avoid ActiveRecord callbacks and get
|