interaktor 0.5.0 → 0.5.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 +4 -4
- data/README.md +1 -2
- data/interaktor.gemspec +1 -1
- data/lib/interaktor/interaction.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c53ee54c903489b487c825865dd7e8c7d6ef7aaca737e62b656b48922484a972
|
|
4
|
+
data.tar.gz: f375cb18e249b2503ebadd167ffcd41e830e646a677944721c2b004d42c50deb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f1fc6e18e8057443f2b38346051180970fc5b9d9ce98c9420e3943702c985ae2f2f2575139ce8fe3138063d975e23f29202c6d20a9722036b89b84fbff9647d
|
|
7
|
+
data.tar.gz: d25819e237ea94598f607aaa9d9f3365ee0ceea48a3ae75685c950191cbeb791858186a3f684b11ab4aa7f10e54f6a7419688b0a9250e0fc6267814fb4907e29
|
data/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# Interaktor
|
|
2
2
|
|
|
3
|
-
[](https://travis-ci.org/taylorthurlow/interaktor)
|
|
3
|
+
[](http://rubygems.org/gems/interaktor)
|
|
5
4
|
|
|
6
5
|
**DISCLAIMER: Interaktor is considered to be stable, but has not yet reached version 1.0. Following semantic versioning, minor version updates can introduce breaking changes. Please review the changelog when updating.**
|
|
7
6
|
|
data/interaktor.gemspec
CHANGED
|
@@ -91,11 +91,11 @@ module Interaktor
|
|
|
91
91
|
# execution is complete, either the success or failure arguments should be
|
|
92
92
|
# accessible, depending on the outcome.
|
|
93
93
|
def method_missing(method_name, *args, &block)
|
|
94
|
-
if !@executed &&
|
|
94
|
+
if !@executed && @interaktor.class.input_attributes.include?(method_name)
|
|
95
95
|
input_args[method_name]
|
|
96
|
-
elsif success? && allowable_success_attributes.include?(method_name)
|
|
96
|
+
elsif @executed && success? && allowable_success_attributes.include?(method_name)
|
|
97
97
|
success_args[method_name]
|
|
98
|
-
elsif failure? && allowable_failure_attributes.include?(method_name)
|
|
98
|
+
elsif @executed && failure? && allowable_failure_attributes.include?(method_name)
|
|
99
99
|
failure_args[method_name]
|
|
100
100
|
else
|
|
101
101
|
super
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: interaktor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Taylor Thurlow
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-11-
|
|
11
|
+
date: 2025-11-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dry-schema
|