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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8fd1b1f8027605ce57fdb451d49432c3cb7ed8f9
4
- data.tar.gz: 5e0ef8a907fda1fe70fa698ab87201e322fec8c4
3
+ metadata.gz: ba4f68a864b7430a94ab73c82f58c556a251aecd
4
+ data.tar.gz: 33af1348f7da1d56c5caeee3aae8654f8e25b6fd
5
5
  SHA512:
6
- metadata.gz: 7de6990a2d49a6eb3dcc96a5ac47dc11de2247b4494807670646e8ee70aaea5d9dc54da0701978310be5d1701b495732670f94350dadd11736977313c917c621
7
- data.tar.gz: 233e5d031574de37baa1be38cb3d0b102778fc5f149e234e04af574bd4d736a39a9ad4fa35bdcf535fd4bef47475b91d628bfda0b49b99ff98e628ffd7837132
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
@@ -1,3 +1,3 @@
1
1
  module Operationable
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.4"
3
3
  end
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.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: 2016-12-09 00:00:00.000000000 Z
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