service_actor 3.1.0 → 3.1.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 +4 -4
- data/lib/service_actor/failable.rb +2 -2
- data/lib/service_actor/result.rb +1 -1
- data/lib/service_actor/version.rb +1 -1
- metadata +4 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9d2367f70743f81df7df55ba4bc9a7fbcb5c27c08c2219abad25139763914f3
|
4
|
+
data.tar.gz: 107897dcd684becef83e44d9f07a2061b41a36d726120a92ebfef5ba549b4375
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 335b5893e4cc4bc8c506c0503700f2617ba845fcf9d819a70fd4e42e67116c9cd3fbf9570a4ab2660f54c00b112a49108581d1858a65bbfa3e77f97417b8336f
|
7
|
+
data.tar.gz: d450f69555986cf33a96fe52b5fa254e768c3c96f60e7c9dbcd345906c3c66bd4f92149e0de66d87c78059c5ecf5ba6b936705a57cbec2a773136b18bdab22ff
|
data/README.md
CHANGED
@@ -395,7 +395,7 @@ However there are a few key differences which make `actor` unique:
|
|
395
395
|
and failures are not hidden away because you forgot to use `!`.
|
396
396
|
- Allows defaults, type checking, requirements and conditions on inputs.
|
397
397
|
- Delegates methods on the context: `foo` vs `context.foo`, `self.foo =` vs
|
398
|
-
`context.foo = `, fail!` vs `context.fail!`.
|
398
|
+
`context.foo = `, `fail!` vs `context.fail!`.
|
399
399
|
- Shorter setup syntax: inherit from `< Actor` vs having to `include Interactor`
|
400
400
|
and `include Interactor::Organizer`.
|
401
401
|
- Organizers allow lambdas, being called multiple times, and having conditions.
|
@@ -421,9 +421,9 @@ interactive prompt.
|
|
421
421
|
|
422
422
|
To release a new version, update the version number in `version.rb`, and in the
|
423
423
|
`CHANGELOG.md`. Update the `README.md` if there are missing segments, make sure
|
424
|
-
tests and linting are pristine by calling `rake`, then create a commit
|
425
|
-
version. You can then run `rake release`, which will
|
426
|
-
using git, and push the gem to [rubygems.org](https://rubygems.org).
|
424
|
+
tests and linting are pristine by calling `bundle && rake`, then create a commit
|
425
|
+
for this version. You can then run `rake release`, which will assign a git tag,
|
426
|
+
push using git, and push the gem to [rubygems.org](https://rubygems.org).
|
427
427
|
|
428
428
|
## Contributing
|
429
429
|
|
@@ -17,11 +17,11 @@ module ServiceActor
|
|
17
17
|
def inherited(child)
|
18
18
|
super
|
19
19
|
|
20
|
-
child.fail_ons.
|
20
|
+
child.fail_ons.push(*fail_ons)
|
21
21
|
end
|
22
22
|
|
23
23
|
def fail_on(*exceptions)
|
24
|
-
fail_ons.
|
24
|
+
fail_ons.push(*exceptions)
|
25
25
|
end
|
26
26
|
|
27
27
|
def fail_ons
|
data/lib/service_actor/result.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: service_actor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sunny Ripert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -164,17 +164,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
164
164
|
requirements:
|
165
165
|
- - ">="
|
166
166
|
- !ruby/object:Gem::Version
|
167
|
-
version: 2.
|
168
|
-
- - "<"
|
169
|
-
- !ruby/object:Gem::Version
|
170
|
-
version: 2.8.0
|
167
|
+
version: '2.4'
|
171
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
172
169
|
requirements:
|
173
170
|
- - ">="
|
174
171
|
- !ruby/object:Gem::Version
|
175
172
|
version: '0'
|
176
173
|
requirements: []
|
177
|
-
rubygems_version: 3.1.
|
174
|
+
rubygems_version: 3.1.6
|
178
175
|
signing_key:
|
179
176
|
specification_version: 4
|
180
177
|
summary: Service objects for your application logic
|