isomorfeus-operation 2.0.13 → 2.0.14

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: cc15772b910d2380e052274021b9c9e42b8fdab5ef1b1bca9acfe510aef70efd
4
- data.tar.gz: 0455a6fecf0f97b14c7a78598621dfd38b76f8998ef83b3ac985fc685ac62673
3
+ metadata.gz: 7af2c43eb65e83a5233581c8aef7e5f127b0fb32fe5882fdebf95f41e391334d
4
+ data.tar.gz: cc617193a97083734e11401dda63f86a8b5bebaeab284567982b57d2c901685f
5
5
  SHA512:
6
- metadata.gz: fda3470ecd3516f05c4aded649ae2b1f1555c6a18566bb17629a61f8d228af0c2e60706fa296fb29bb65a1624a9ea290d5f4faf43358dbc2ca065d7914a87377
7
- data.tar.gz: 365749a57030365bcc04553b7f1ce10f141bace676c0c073a98bceb718c4b71990c0dce4418c41fe69f811d21f068749336de7f428e4bc1c4a65f9a5877aa932
6
+ metadata.gz: 3af25afed7c8702b36f9fcbe9b67df6326d02517f888bbbf5a5dad12088237d4aa4b56eeba2f581b01c53ac23d2351d467cf4dfd0041389c79c3984839353065
7
+ data.tar.gz: 26146fc3d5633484119640d64ddf3413958f79914ed17d5e2fe9830e60f1e4dc0ce4ca2bea481c883df56e9b2bc03bf682d6e31a5910e5ab2120d19b0d58bb20
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  module Operation
3
- VERSION = '2.0.13'
3
+ VERSION = '2.0.14'
4
4
  end
5
5
  end
@@ -39,12 +39,8 @@ module LucidOperation
39
39
  def promise_run(**props_hash)
40
40
  props = validated_props(props_hash)
41
41
  Isomorfeus::Transport.promise_send_path('Isomorfeus::Operation::Handler::OperationHandler', self.name, props).then do |agent|
42
- unless agent.processed
43
- agent.processed = true
44
- if agent.response.key?(:error)
45
- Isomorfeus.raise_error(message: agent.response[:error])
46
- end
47
- agent.result = agent.response[:result]
42
+ agent.process do |agnt|
43
+ agnt.response[:result]
48
44
  end
49
45
  if agent.result.key?(:rejected)
50
46
  if agent.result.key?(:error)
@@ -11,12 +11,8 @@ module LucidQuickOp
11
11
  def promise_run(**props_hash)
12
12
  props = validated_props(props_hash)
13
13
  Isomorfeus::Transport.promise_send_path('Isomorfeus::Operation::Handler::OperationHandler', self.name, props).then do |agent|
14
- unless agent.processed
15
- agent.processed = true
16
- if agent.response.key?(:error)
17
- Isomorfeus.raise_error(message: agent.response[:error])
18
- end
19
- agent.result = agent.response[:result]
14
+ agent.process do
15
+ agent.response[:result]
20
16
  end
21
17
  if agent.result.key?(:rejected)
22
18
  if agent.result.key?(:error)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-operation
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.13
4
+ version: 2.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-01 00:00:00.000000000 Z
11
+ date: 2022-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 10.6.24
89
+ version: 10.6.25
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 10.6.24
96
+ version: 10.6.25
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: isomorfeus-redux
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -114,28 +114,28 @@ dependencies:
114
114
  requirements:
115
115
  - - '='
116
116
  - !ruby/object:Gem::Version
117
- version: 2.0.13
117
+ version: 2.0.14
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - '='
123
123
  - !ruby/object:Gem::Version
124
- version: 2.0.13
124
+ version: 2.0.14
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: isomorfeus
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - '='
130
130
  - !ruby/object:Gem::Version
131
- version: 2.0.13
131
+ version: 2.0.14
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - '='
137
137
  - !ruby/object:Gem::Version
138
- version: 2.0.13
138
+ version: 2.0.14
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rake
141
141
  requirement: !ruby/object:Gem::Requirement