service_record 1.2.2 → 1.2.3

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: a7480968cffcfeaa22303ad0e8e0eefbe9eb5c748a562eb24651e1a0563fdaec
4
- data.tar.gz: cd4d145d8bf049e67586a5bc64d1b9c70939815a42996407ffd26744de2e2328
3
+ metadata.gz: 18360cbcbc1cfc03843dc3b6a705853cc8a346c1784403a12718603a1b4d5542
4
+ data.tar.gz: 89570b1eaf7ad8718912ed1a7c10a9be1a278868f3987abbe184d6d0004e0401
5
5
  SHA512:
6
- metadata.gz: e1cf4a2872060a83ac89f578721a9169db038bc4502f31a0382162ac3ea5402aa76effc3cd7f5e66c05b66a160f3148dd094fd3f9ea476d0d0902eea81a01b6e
7
- data.tar.gz: 6ea144985aa85012173f7275782e118473f22c5cc2a9a5c85c7ef8d49409f4c68b7a97de4e8fd479a9ae90e58a7e635eb594f191bafec97e29d76e7b7b2cd565
6
+ metadata.gz: 7ef18d0df8ae49e3bcfc1ebaed6337b537877d5f82962d7e3cfae93ee5106c4c8ded431203c59e25465f8377fd28d5869350e8046e939ba1c2e68548c7720e01
7
+ data.tar.gz: d0242117bbcad6173708a181f4ca16ff330991c40e76333c5ce5b08290af6b6ff85a6dccfe0adbf1d316ce972bf2601faa543fb67af530ea540440fd01e7f82c
@@ -22,8 +22,9 @@ module ServiceRecord
22
22
 
23
23
  def self.perform!(args = {})
24
24
  service = perform(args)
25
+ return service if service.success?
25
26
 
26
- raise Failure, service if service.failure?
27
+ raise Failure, service
27
28
  end
28
29
 
29
30
  attr_accessor :result
@@ -1,3 +1,3 @@
1
1
  module ServiceRecord
2
- VERSION = '1.2.2'.freeze
2
+ VERSION = '1.2.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: service_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Muhammad Usman