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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: cf970d7ec3f080673ae0c247415951fa3b05ad77
4
- data.tar.gz: 009806c9d3285178844939be38e8e06f4448e711
2
+ SHA256:
3
+ metadata.gz: e3e82021d8909a6bc2e1506eabcc81e311eadb03b799146c8ff0731519ce6700
4
+ data.tar.gz: acc5d1ccc792d66d9ea1562f7fa3549af9c06600cfca35178118e08a8635a3cb
5
5
  SHA512:
6
- metadata.gz: 97dd35f8b70406f49d3bdf278e836f8608551539e48a88bdae4cbdc28b65adbb543982d82a29c271084d4f7d2c795e772e2024dcc7288caa55ccfdd08cfd4bf0
7
- data.tar.gz: 335084ed1f6f041ff7e6b11116010349649b02d0fc35b3ba24b0a5182191080e7b4b61473b132c4be1d312c5080073092e1c1aea5983383a85b6faf48d91fc43
6
+ metadata.gz: bd4a457dbaf1cd943db479b585379d0f8b1391890e956a265eea09fa9f0badea95fcc8857223a451759844dfe419e661c43324e5db13bcb9fe6ccdd07d741684
7
+ data.tar.gz: '08f2debe4942321aaca7896c99a05147a56a8a2cde31fda83f9c2bfaf1fc8873b5e78a58e6c65b47aa94dfe794040da7be65f049527119147a959040ad940ac1'
@@ -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
@@ -1,3 +1,3 @@
1
1
  module BusinessFlow
2
- VERSION = '0.17.2'.freeze
2
+ VERSION = '0.17.3'.freeze
3
3
  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.2
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: 2019-06-10 00:00:00.000000000 Z
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
- rubyforge_project:
219
- rubygems_version: 2.6.11
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: []