active_interaction 3.8.0 → 3.8.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
  SHA256:
3
- metadata.gz: 46534b15fa7a2aa90e5dcaa3917d63ac4c5aa2b1b06b265dfd284437c1d9de0e
4
- data.tar.gz: f9c562732b0bc2335876a6325a959b9d7b440825224359eecfe6446cb32e92f9
3
+ metadata.gz: '0548218152b9de3c7b9d3138ba8e6d18404da27e0ffb7e2ed95195f066dd681b'
4
+ data.tar.gz: 917d2fe9a9c99b468aa2ad80e861e27e20f0f6caf8fdbe2698ce29f7e7ec2864
5
5
  SHA512:
6
- metadata.gz: ec99ac3c5b256f9645902a467b838567a57172d97712e2eeebf1ef6952bed1c48d48706080b122d168a682182ad8999ada7d26a5964946e3d2718dad5ad1fabe
7
- data.tar.gz: 2749a5436350022dc15e625e24159f05e8d3205adf7a6568754aaea2c3c93aab62f82d8848549ea6a2c96611130fbb64ad424a79dd9368a696101705dad4468c
6
+ metadata.gz: bdd646f710eb2f8d49ba74224e17b9b4d0b4595708ee9dba6bad53dd59652ec69fb4e2f3ebcb538f949197103d5a011d1319e4a57cc9d7c96ebe21578b9b8b42
7
+ data.tar.gz: b0853777a9cd4be10de3f6de7980ba52fa8448a57203f9c531df84c5c55bfbd675860b52dc320b996e0110c5d1353e21f868a900d742828cc8b5d0b0abb72cac
@@ -1,3 +1,9 @@
1
+ # [3.8.1][] (2020-04-04)
2
+
3
+ ## Fixed
4
+
5
+ - The implementation for providing a failing interaction on `InvalidInteractionError` was a breaking API change. It now works without breaking the API.
6
+
1
7
  # [3.8.0][] (2020-02-28)
2
8
 
3
9
  ## Added
@@ -759,6 +765,7 @@ Example.run
759
765
 
760
766
  - Initial release.
761
767
 
768
+ [3.8.1]: https://github.com/AaronLasseigne/active_interaction/compare/v3.8.0...v3.8.1
762
769
  [3.8.0]: https://github.com/AaronLasseigne/active_interaction/compare/v3.7.1...v3.8.0
763
770
  [3.7.1]: https://github.com/AaronLasseigne/active_interaction/compare/v3.7.0...v3.7.1
764
771
  [3.7.0]: https://github.com/AaronLasseigne/active_interaction/compare/v3.6.2...v3.7.0
@@ -99,7 +99,9 @@ module ActiveInteraction
99
99
 
100
100
  return result if valid?
101
101
 
102
- raise InvalidInteractionError, self
102
+ e = InvalidInteractionError.new(errors.full_messages.join(', '))
103
+ e.interaction = self
104
+ raise e
103
105
  end
104
106
 
105
107
  #
@@ -32,13 +32,7 @@ module ActiveInteraction
32
32
  #
33
33
  # @return [Class]
34
34
  class InvalidInteractionError < Error
35
- attr_reader :interaction
36
-
37
- def initialize(interaction)
38
- @interaction = interaction
39
-
40
- super(interaction.errors.full_messages.join(', '))
41
- end
35
+ attr_accessor :interaction
42
36
  end
43
37
 
44
38
  # Raised if a user-supplied value is invalid.
@@ -6,5 +6,5 @@ module ActiveInteraction
6
6
  # The version number.
7
7
  #
8
8
  # @return [Gem::Version]
9
- VERSION = Gem::Version.new('3.8.0')
9
+ VERSION = Gem::Version.new('3.8.1')
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_interaction
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.0
4
+ version: 3.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Lasseigne
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-02-28 00:00:00.000000000 Z
12
+ date: 2020-04-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel