civil_service 2.2.1 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7d6ba5c9e4c38beb469f37d88200c1c5925bb306ab41981c7317294b089fedd
4
- data.tar.gz: c4b8ea070e36db21717b060bae7bdbbf1a4436aeb23d70f51b8ec28f9e57e328
3
+ metadata.gz: c81938a431b93fc416ce04cd6062971c03f6cb397b909afcca2c8b8e8bb1164a
4
+ data.tar.gz: 1786acdbe99e9245bf0c8e244fada4d5dc84bc40cfab4b860bbe5d65faf81c46
5
5
  SHA512:
6
- metadata.gz: dc6d3cab1d4482d950826c801535257a98b3205cde536015dee94b1b861f4965dae27452806ab7c9d6374b9c1d70fa88ef4548c0dfc3c3c72a183cf802a3e343
7
- data.tar.gz: f6b993ffdc61d4ae67bfd55c308593e138b0c5066f6ebda19ff43118506830dfe6cb3a49866021079faec06c42405f57472128bff9688b2b56e8a2940cf4ea68
6
+ metadata.gz: 80ffe9daa4f19ccb5b6aff3ead328758e4005b1cdccdac14cbbf66f8642d4b69c6d750bb0f50a1be03fc899dd1d6b8816de1b6db93847b8040b866e15a06e3ca
7
+ data.tar.gz: ace5d7948426b071564cb8696a2da2c6a8362ec47b26b0a5593d2b1530e3db0d870f48a053744c441c52918ef81b770fbeb55c03986d2bbac8537b1a0f882af1
@@ -1,3 +1,8 @@
1
+ # Version 2.3.0 - April 3, 2020
2
+
3
+ * `#call!` now raises the underlying exception if the service threw an exception,
4
+ rather than hiding it inside a `CivilService::ServiceFailure`.
5
+
1
6
  # Version 2.2.1 - October 4, 2019
2
7
 
3
8
  * `CivilService::MultiResultService::MultiResult#exception` now checks the underlying exception on
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- civil_service (2.2.1)
4
+ civil_service (2.3.0)
5
5
  activemodel (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -15,15 +15,15 @@ GEM
15
15
  minitest (~> 5.1)
16
16
  tzinfo (~> 1.1)
17
17
  zeitwerk (~> 2.1, >= 2.1.8)
18
- concurrent-ruby (1.1.5)
19
- i18n (1.7.0)
18
+ concurrent-ruby (1.1.6)
19
+ i18n (1.8.2)
20
20
  concurrent-ruby (~> 1.0)
21
21
  minitest (5.11.3)
22
- rake (10.5.0)
22
+ rake (13.0.1)
23
23
  thread_safe (0.3.6)
24
- tzinfo (1.2.5)
24
+ tzinfo (1.2.6)
25
25
  thread_safe (~> 0.1)
26
- zeitwerk (2.1.10)
26
+ zeitwerk (2.2.0)
27
27
 
28
28
  PLATFORMS
29
29
  ruby
@@ -32,7 +32,7 @@ DEPENDENCIES
32
32
  bundler (~> 1.16)
33
33
  civil_service!
34
34
  minitest (~> 5.0)
35
- rake (~> 10.0)
35
+ rake (~> 13.0)
36
36
 
37
37
  BUNDLED WITH
38
38
  1.17.2
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # CivilService
2
2
 
3
- [![Build Status](https://travis-ci.org/neinteractiveliterature/civil_service.svg?branch=master)](https://travis-ci.org/neinteractiveliterature/civil_service)
3
+ [![Build Status](https://travis-ci.org/actblue/civil_service.svg?branch=master)](https://travis-ci.org/actblue/civil_service)
4
4
 
5
5
  CivilService is a tiny framework for [service objects in Rails apps](https://hackernoon.com/service-objects-in-ruby-on-rails-and-you-79ca8a1c946e). With CivilService, you can use ActiveModel validations to do pre-flight checks before the service runs, and create your own result object classes to capture the results of complex operations.
6
6
 
@@ -23,6 +23,6 @@ Gem::Specification.new do |spec|
23
23
  spec.add_dependency "activemodel", ">= 3.0.0"
24
24
 
25
25
  spec.add_development_dependency "bundler", "~> 1.16"
26
- spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "rake", "~> 13.0"
27
27
  spec.add_development_dependency "minitest", "~> 5.0"
28
28
  end
@@ -39,7 +39,7 @@ class CivilService::Service
39
39
  raise CivilService::ServiceFailure.new(self, failure(errors)) unless valid?
40
40
  end
41
41
 
42
- result = inner_call
42
+ result = call_and_raise
43
43
  raise CivilService::ServiceFailure.new(self, result) if result.failure?
44
44
  result
45
45
  end
@@ -1,3 +1,3 @@
1
1
  module CivilService
2
- VERSION = '2.2.1'
2
+ VERSION = '2.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: civil_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nat Budin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-04 00:00:00.000000000 Z
11
+ date: 2020-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '10.0'
47
+ version: '13.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '10.0'
54
+ version: '13.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: minitest
57
57
  requirement: !ruby/object:Gem::Requirement