convenient_service 0.19.0 → 0.19.1

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: 1943fd64d61a41a18701985f5a7296b7cf3337ab0562c1912ee7765668dd6f3a
4
- data.tar.gz: 02e2d46311210cd922b606848f36c82db136a7f2ca2013fba269c6c5eb3adc3a
3
+ metadata.gz: 3c335178b5dfefbb7b3bd6cf65d1daca7d911b8f73faa8e2d485ef0be01f189a
4
+ data.tar.gz: a012a141e2472ec1e273aeb90f4f49cb14ce5cf858453280d88834a0da80f14b
5
5
  SHA512:
6
- metadata.gz: 74cded446d90f5b06675c5c19f7647792e195b47178504b14dbf650640186f33679e8bf8c17ad73e214ff5f1b38d233c7919c361f3f90c569435fc14e4c5d999
7
- data.tar.gz: a7773a495b1805778221b006427562bd25acd7420c243aab192abaf0460d661d905259aed97a2c489ccd9e77bac349da1516f9dd8ec8d7b573115b5872229b92
6
+ metadata.gz: a0266947fbfa642f28247005db67bcc9b035e8ae742614880a063ae1e7f2a36853dc8c5a830990de5645845c774b77b5a69351bba6ce1e946f5858c09af4fb95
7
+ data.tar.gz: 93db0af41a737137a452a4bc9c60992bf32c96c637fe65d2b212200d3c776a87001046bc9d0eb2ad6f7160bc9a15454452c20235aa3ffcbc815a504558f636f7
@@ -33,7 +33,10 @@ module ConvenientService
33
33
  # @return [ConvenientService::Service::Plugins::HasJSendResult::Entities::Result]
34
34
  #
35
35
  def result
36
- left_expression.success? ? left_expression.result : right_expression.result
36
+ return left_expression.result if left_expression.success?
37
+ return left_expression.result if left_expression.error?
38
+
39
+ right_expression.result
37
40
  end
38
41
 
39
42
  ##
@@ -66,7 +69,10 @@ module ConvenientService
66
69
  # @return [Boolean]
67
70
  #
68
71
  def error?
69
- left_expression.error? || right_expression.error?
72
+ return false if left_expression.success?
73
+ return true if left_expression.error?
74
+
75
+ right_expression.error?
70
76
  end
71
77
 
72
78
  ##
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ConvenientService
4
- VERSION = "0.19.0"
4
+ VERSION = "0.19.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: convenient_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.19.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marian Kostyk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-08 00:00:00.000000000 Z
11
+ date: 2024-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: amazing_print