operationable 0.5.7 → 0.5.8

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
  SHA256:
3
- metadata.gz: 1fbdd9d9c8fb493193125b3a501168a1c765781ed20aea3be5fd4cb6f7edf7d5
4
- data.tar.gz: 8d9a22e9f045117ec296cc6703001a7fc0ac845017bf471361f499f3ac1a4aa0
3
+ metadata.gz: b4e8fb2869237f5b4659aec5a8249112f34385a20f6d28366fa1e77d734a13ea
4
+ data.tar.gz: a9ce3ee3d30dbbf0bfe1cc8ba8fc12f1def3177a1edaa12435ab0e95710636c9
5
5
  SHA512:
6
- metadata.gz: 109e26d17c6ee60b021db6b2bff48cb13c1d1b741a2e5e3b62c4cd07c77af95247286df8f4ca88c722a8dc7defee8f6b93f27a3f1b3e1cb2509f6c39b8907eeb
7
- data.tar.gz: c415f2f9a09f081337ab2325517206c6a31808748b9f6f532fd4fc4eeb86710deaf38004715d454579746b35a685aea7d42e49e885c0b580bf528e3ea8cabe95
6
+ metadata.gz: 27aa66d3e45608c1e27934b12aa8bb290f76606703480e3770d72e2d5d05c299f7ac1f430a56fea9a6c1d108ce3d50941c05f2fd4360796bc3b4c09d6416b4dd
7
+ data.tar.gz: 635f36ae4ac796175c9a8c48d7b7db7fd63071788178307ea4a86839339a81220ec94290df5a656e0e4aa850c2c381cfec215b783b36d129571d8175cb7e9e20
@@ -1,12 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
  module Operationable
3
3
  class Delayer
4
- attr_reader :record, :user, :params, :activity, :action_name
4
+ attr_reader :record, :user, :params, :result, :activity, :action_name
5
5
 
6
- def initialize(record, user, params={}, activity='', action_name='')
6
+ def initialize(record, user, params={}, result=nil, activity='', action_name='')
7
7
  @record = record
8
8
  @user = user
9
9
  @params = params
10
+ @result = result
10
11
  @activity = activity
11
12
  @action_name = action_name
12
13
  end
@@ -81,7 +81,7 @@ module Operationable
81
81
  end
82
82
 
83
83
  def specification
84
- @specification ||= specification_class_name.constantize.new(record, user, params, activity, action_name)
84
+ @specification ||= specification_class_name.constantize.new(record, user, params, result, activity, action_name)
85
85
  end
86
86
 
87
87
  def callback_class_name
@@ -1,12 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
  module Operationable
3
3
  class Specification
4
- attr_reader :record, :user, :params, :activity, :action_name
4
+ attr_reader :record, :user, :params, :result, :activity, :action_name
5
5
 
6
- def initialize(record, user, params={}, activity='', action_name='')
6
+ def initialize(record, user, params={}, result=nil, activity='', action_name='')
7
7
  @record = record
8
8
  @user = user
9
9
  @params = params
10
+ @result = result
10
11
  @activity = activity
11
12
  @action_name = action_name
12
13
  end
@@ -1,3 +1,3 @@
1
1
  module Operationable
2
- VERSION = "0.5.7"
2
+ VERSION = "0.5.8"
3
3
  end
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.5.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirill Suhodolov