isomorfeus-operation 2.0.13 → 2.0.17

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: 6f6b7d601010c08b3adbb6b54951a906b2fe7b972f5fa25b3f43a5cdeb5fd615
4
+ data.tar.gz: 818d12006dae50eb6e447dec6164f997d57479276c4390d1615d12ad6371d1ca
5
5
  SHA512:
6
- metadata.gz: fda3470ecd3516f05c4aded649ae2b1f1555c6a18566bb17629a61f8d228af0c2e60706fa296fb29bb65a1624a9ea290d5f4faf43358dbc2ca065d7914a87377
7
- data.tar.gz: 365749a57030365bcc04553b7f1ce10f141bace676c0c073a98bceb718c4b71990c0dce4418c41fe69f811d21f068749336de7f428e4bc1c4a65f9a5877aa932
6
+ metadata.gz: 88bbe0868f93a1fe43f8c5d2df21a8817f5f9916a8cda210bb0f52027f78c1df7bf469d116f97308513d9d260ba63ae12260119cbbf796b8a5395999e9ee881d
7
+ data.tar.gz: 9d0482b3ebb5132f6d07af5ae0c03ae5f6efd3f167b61f01715b70a72c8f37bdee2b7fc5d6130a3b9077ec8acea0b792908f3f7cab1eed569533377bda9d6a40
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  module Operation
3
- VERSION = '2.0.13'
3
+ VERSION = '2.0.17'
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.17
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-05 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.27
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.27
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.17
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.17
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.17
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.17
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rake
141
141
  requirement: !ruby/object:Gem::Requirement