business_flow 0.14.0 → 0.14.1

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: ef0272ca5eb7e69dd6f802b1e684930a2a344021
4
- data.tar.gz: 5b02b5d3c8981929d9f7e2675890933562501388
3
+ metadata.gz: 0180db91d5d4bd73704b91bab314200f16c20fd9
4
+ data.tar.gz: 8cc957b8a623b47f69e2c94d8e078ff017fb190d
5
5
  SHA512:
6
- metadata.gz: 8238af8e966875e8ffeca8ffa376f73d761158c64ca01b1af8edda23c3f2e6b814f12395d295c99269152de7b478205019ef1bebb4a725113dc4e8324595d7d0
7
- data.tar.gz: f8afa54780606ad60029b47eee2c88a832822088ce98922374635ad1e97422341bf8a2d4aa43f8d48bdf05b515f2a06a612c720d83db759b041be2870e7fea38
6
+ metadata.gz: 5486b16d372727e76daa44d69527b132fa15b67333b0ba48c905e26427a9a11f26d143afea69ef6225bccadd0f5ff71edc458d7de553e71945d04756a68b580f
7
+ data.tar.gz: d2b00921a815c4ebd46f121e20ab6b3bbb1c9956f1b3f2cea1e17cbdd19b30106e2dc77d3caf79bd634f6affeb9bb27012a090e9a0ba34f60c025898fb328df9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- business_flow (0.14.0)
4
+ business_flow (0.14.1)
5
5
  activemodel (>= 3.0)
6
6
  activesupport (>= 3.0)
7
7
 
@@ -82,7 +82,7 @@ module BusinessFlow
82
82
  # :reek:ManualDispatch Checking respond_to? is signficantly faster than
83
83
  # eating the NoMethodError when grabbing our error object.
84
84
  def mergeable_errors?
85
- @result.respond_to?(:errors) && errors? && !valid?
85
+ @result.respond_to?(:errors) && (errors? || !valid?)
86
86
  end
87
87
 
88
88
  def merge_errors_into(object)
@@ -1,3 +1,3 @@
1
1
  module BusinessFlow
2
- VERSION = '0.14.0'.freeze
2
+ VERSION = '0.14.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: business_flow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Scarborough