business_flow 0.17.2 → 0.17.3
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/lib/business_flow/step.rb +3 -1
- data/lib/business_flow/version.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e3e82021d8909a6bc2e1506eabcc81e311eadb03b799146c8ff0731519ce6700
|
4
|
+
data.tar.gz: acc5d1ccc792d66d9ea1562f7fa3549af9c06600cfca35178118e08a8635a3cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd4a457dbaf1cd943db479b585379d0f8b1391890e956a265eea09fa9f0badea95fcc8857223a451759844dfe419e661c43324e5db13bcb9fe6ccdd07d741684
|
7
|
+
data.tar.gz: '08f2debe4942321aaca7896c99a05147a56a8a2cde31fda83f9c2bfaf1fc8873b5e78a58e6c65b47aa94dfe794040da7be65f049527119147a959040ad940ac1'
|
data/lib/business_flow/step.rb
CHANGED
@@ -62,9 +62,11 @@ module BusinessFlow
|
|
62
62
|
# because that will run validations and a step may return a partially
|
63
63
|
# constructed model. By instead pulling out the errors instance variable
|
64
64
|
# we'll only merge errors if validations have already been run.
|
65
|
-
elsif @result.class.include?(ActiveModel::Validations) &&
|
65
|
+
elsif @result.class.ancestors.include?(ActiveModel::Validations) &&
|
66
66
|
@result.instance_variable_defined?(:@errors)
|
67
67
|
@result.instance_variable_get(:@errors).present?
|
68
|
+
elsif @result.respond_to?(:errors)
|
69
|
+
@result.errors.present?
|
68
70
|
else
|
69
71
|
false
|
70
72
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: business_flow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Scarborough
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -164,7 +164,7 @@ dependencies:
|
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: 0.9.1
|
167
|
-
description:
|
167
|
+
description:
|
168
168
|
email:
|
169
169
|
- alex@teak.io
|
170
170
|
executables: []
|
@@ -200,7 +200,7 @@ homepage: https://teak.io
|
|
200
200
|
licenses:
|
201
201
|
- MIT
|
202
202
|
metadata: {}
|
203
|
-
post_install_message:
|
203
|
+
post_install_message:
|
204
204
|
rdoc_options: []
|
205
205
|
require_paths:
|
206
206
|
- lib
|
@@ -215,9 +215,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
215
215
|
- !ruby/object:Gem::Version
|
216
216
|
version: '0'
|
217
217
|
requirements: []
|
218
|
-
|
219
|
-
|
220
|
-
signing_key:
|
218
|
+
rubygems_version: 3.1.2
|
219
|
+
signing_key:
|
221
220
|
specification_version: 4
|
222
221
|
summary: General purpose management of service object flows
|
223
222
|
test_files: []
|