interaktor 0.1.5 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/publish.yml +30 -0
- data/.github/workflows/tests.yml +24 -0
- data/.ruby-version +1 -0
- data/.travis.yml +1 -12
- data/Gemfile +3 -2
- data/Guardfile +42 -0
- data/README.md +87 -132
- data/interaktor.gemspec +1 -1
- data/lib/interaktor.rb +12 -188
- data/lib/interaktor/callable.rb +219 -0
- data/lib/interaktor/context.rb +16 -1
- data/lib/interaktor/error/attribute_error.rb +16 -0
- data/lib/interaktor/error/base.rb +9 -0
- data/lib/interaktor/error/disallowed_attribute_assignment_error.rb +9 -0
- data/lib/interaktor/error/missing_attribute_error.rb +5 -0
- data/lib/interaktor/error/option_error.rb +16 -0
- data/lib/interaktor/error/unknown_attribute_error.rb +5 -0
- data/lib/interaktor/error/unknown_option_error.rb +5 -0
- data/lib/interaktor/organizer.rb +7 -20
- data/spec/integration_spec.rb +18 -15
- data/spec/interactor/organizer_spec.rb +81 -13
- data/spec/spec_helper.rb +8 -3
- data/spec/support/lint.rb +289 -57
- metadata +19 -6
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.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Thurlow
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: zeitwerk
|
@@ -44,16 +44,28 @@ executables: []
|
|
44
44
|
extensions: []
|
45
45
|
extra_rdoc_files: []
|
46
46
|
files:
|
47
|
+
- ".github/workflows/publish.yml"
|
48
|
+
- ".github/workflows/tests.yml"
|
47
49
|
- ".gitignore"
|
48
50
|
- ".rspec"
|
49
51
|
- ".rubocop.yml"
|
52
|
+
- ".ruby-version"
|
50
53
|
- ".travis.yml"
|
51
54
|
- Gemfile
|
55
|
+
- Guardfile
|
52
56
|
- README.md
|
53
57
|
- Rakefile
|
54
58
|
- interaktor.gemspec
|
55
59
|
- lib/interaktor.rb
|
60
|
+
- lib/interaktor/callable.rb
|
56
61
|
- lib/interaktor/context.rb
|
62
|
+
- lib/interaktor/error/attribute_error.rb
|
63
|
+
- lib/interaktor/error/base.rb
|
64
|
+
- lib/interaktor/error/disallowed_attribute_assignment_error.rb
|
65
|
+
- lib/interaktor/error/missing_attribute_error.rb
|
66
|
+
- lib/interaktor/error/option_error.rb
|
67
|
+
- lib/interaktor/error/unknown_attribute_error.rb
|
68
|
+
- lib/interaktor/error/unknown_option_error.rb
|
57
69
|
- lib/interaktor/failure.rb
|
58
70
|
- lib/interaktor/hooks.rb
|
59
71
|
- lib/interaktor/organizer.rb
|
@@ -68,7 +80,7 @@ homepage: https://github.com/taylorthurlow/interaktor
|
|
68
80
|
licenses:
|
69
81
|
- MIT
|
70
82
|
metadata: {}
|
71
|
-
post_install_message:
|
83
|
+
post_install_message:
|
72
84
|
rdoc_options: []
|
73
85
|
require_paths:
|
74
86
|
- lib
|
@@ -83,8 +95,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
95
|
- !ruby/object:Gem::Version
|
84
96
|
version: '0'
|
85
97
|
requirements: []
|
86
|
-
|
87
|
-
|
98
|
+
rubyforge_project:
|
99
|
+
rubygems_version: 2.7.6.2
|
100
|
+
signing_key:
|
88
101
|
specification_version: 4
|
89
102
|
summary: Simple service object implementation
|
90
103
|
test_files:
|