operationable 0.2.2 → 0.2.4
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 +4 -4
- data/lib/operationable/runners/base.rb +1 -1
- data/lib/operationable/specification.rb +3 -2
- data/lib/operationable/version.rb +1 -1
- data/operationable-0.2.2.gem +0 -0
- data/operationable-0.2.3.gem +0 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba4f68a864b7430a94ab73c82f58c556a251aecd
|
4
|
+
data.tar.gz: 33af1348f7da1d56c5caeee3aae8654f8e25b6fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d655c4b3c5c320be0fd90a458dc533b8abe2d3d9133af243dce47f1730aa08b7847807046904a50bbe6bfd4910411f65032187ae7849a164c402ecfcf5f277f
|
7
|
+
data.tar.gz: b7117faa87f4a64fbf73d440c8c2213e33dec571003c5355c477e6602100136a0c696542276f5f61d1f686dd4ab6d2739a23d31124715333b50a6e3264740a5a
|
@@ -48,7 +48,7 @@ module Operationable
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def specification
|
51
|
-
@specification ||= specification_class_name.constantize.new(record, params, activity, action_name)
|
51
|
+
@specification ||= specification_class_name.constantize.new(record, user, params, activity, action_name)
|
52
52
|
end
|
53
53
|
|
54
54
|
def callback_class_name
|
@@ -1,10 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
module Operationable
|
3
3
|
class Specification
|
4
|
-
attr_reader :record, :params, :activity
|
4
|
+
attr_reader :record, :user, :params, :activity, :action_name
|
5
5
|
|
6
|
-
def initialize(record, params={}, activity='', action_name='')
|
6
|
+
def initialize(record, user, params={}, activity='', action_name='')
|
7
7
|
@record = record
|
8
|
+
@user = user
|
8
9
|
@params = params
|
9
10
|
@activity = activity
|
10
11
|
@action_name = action_name
|
Binary file
|
Binary file
|
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.2.
|
4
|
+
version: 0.2.4
|
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: 2017-01-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activejob
|
@@ -104,6 +104,8 @@ files:
|
|
104
104
|
- operationable-0.1.9.gem
|
105
105
|
- operationable-0.2.0.gem
|
106
106
|
- operationable-0.2.1.gem
|
107
|
+
- operationable-0.2.2.gem
|
108
|
+
- operationable-0.2.3.gem
|
107
109
|
- operationable.gemspec
|
108
110
|
- spec/operationable_spec.rb
|
109
111
|
- spec/spec_helper.rb
|