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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a514ff7ba650102221cb5062bdcba419620229af17070f8393b7dfbdbcf20eae
4
- data.tar.gz: ce94d81e2a1e8cd31cf2b6087b86e71cadd7efa84b0823a420131a80477e7518
3
+ metadata.gz: c9d2367f70743f81df7df55ba4bc9a7fbcb5c27c08c2219abad25139763914f3
4
+ data.tar.gz: 107897dcd684becef83e44d9f07a2061b41a36d726120a92ebfef5ba549b4375
5
5
  SHA512:
6
- metadata.gz: a0ef5dc251c17236382350ffbed06936b344dfa7276f69cc67466cb69a4bcfd408d2017d831913f12db7d72cc7b3b9743223ebd75669c23b9b04c1619480651c
7
- data.tar.gz: a038729c6b37a9f6a1f29ef02fc1bc451faa4bb1eb1da62f7feef29f585c778be7cce93d62bedb81195fa6ee4fde814284778693954b8af706453730c2edc442
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 for this
425
- version. You can then run `rake release`, which will create a git tag, push
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.append(*fail_ons)
20
+ child.fail_ons.push(*fail_ons)
21
21
  end
22
22
 
23
23
  def fail_on(*exceptions)
24
- fail_ons.append(*exceptions)
24
+ fail_ons.push(*exceptions)
25
25
  end
26
26
 
27
27
  def fail_ons
@@ -28,7 +28,7 @@ module ServiceActor
28
28
  end
29
29
 
30
30
  def failure?
31
- super || false
31
+ self[:failure?] || false
32
32
  end
33
33
 
34
34
  def merge!(result)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ServiceActor
4
- VERSION = '3.1.0'
4
+ VERSION = '3.1.1'
5
5
  end
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.0
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: 2020-10-17 00:00:00.000000000 Z
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.3.7
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.2
174
+ rubygems_version: 3.1.6
178
175
  signing_key:
179
176
  specification_version: 4
180
177
  summary: Service objects for your application logic