isomorfeus-operation 1.0.0.zeta3 → 1.0.0.zeta4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isomorfeus/operation/version.rb +1 -1
- data/lib/lucid_operation/mixin.rb +10 -5
- data/lib/lucid_quick_op/mixin.rb +10 -5
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1628d33d1ba150e8f1c9a8e6f020ffa4d0f86049fc0e6f75cd61e8badce2484d
|
4
|
+
data.tar.gz: 398084ed751eed3acb210cf0d810a378f5d14b7bb28dd2782c1c11388bb4dadf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 730fcdd9ac5469f72c7ea1d236c4029fa592e996c65a8e79f2828430740f12419effd974f60ce68aa4282d30c8dd0f95fa147b87eef4aa27a908e42a1a88a1d8
|
7
|
+
data.tar.gz: cdb343530230ac9eff11816340a7ea22b28ba13406532accc6e64b14435fc6034f876325c97d1383caf326b76b84983f41aae889b04c016ca54fef97e8e7985e
|
@@ -39,12 +39,17 @@ module LucidOperation
|
|
39
39
|
def promise_run(props_hash)
|
40
40
|
validate_props(props_hash)
|
41
41
|
props_json = Isomorfeus::Data::Props.new(props_hash).to_json
|
42
|
-
Isomorfeus::Transport.promise_send_path('Isomorfeus::Operation::Handler::OperationHandler', self.name, props_json).then do |
|
43
|
-
if
|
44
|
-
|
45
|
-
|
42
|
+
Isomorfeus::Transport.promise_send_path('Isomorfeus::Operation::Handler::OperationHandler', self.name, props_json).then do |agent|
|
43
|
+
if agent.processed
|
44
|
+
agent.result
|
45
|
+
else
|
46
|
+
agent.processed = true
|
47
|
+
if agent.response.key?(:error)
|
48
|
+
`console.error(#{agent.response[:error].to_n})`
|
49
|
+
raise agent.response[:error]
|
50
|
+
end
|
51
|
+
agent.result = agent.response[:result]
|
46
52
|
end
|
47
|
-
response[:agent_response][:result]
|
48
53
|
end
|
49
54
|
end
|
50
55
|
end
|
data/lib/lucid_quick_op/mixin.rb
CHANGED
@@ -11,12 +11,17 @@ module LucidQuickOp
|
|
11
11
|
def promise_run(props_hash)
|
12
12
|
validate_props(props_hash)
|
13
13
|
props_json = Isomorfeus::Data::Props.new(props_hash).to_json
|
14
|
-
Isomorfeus::Transport.promise_send_path('Isomorfeus::Operation::Handler::OperationHandler', self.name, props_json).then do |
|
15
|
-
if
|
16
|
-
|
17
|
-
|
14
|
+
Isomorfeus::Transport.promise_send_path('Isomorfeus::Operation::Handler::OperationHandler', self.name, props_json).then do |agent|
|
15
|
+
if agent.processed
|
16
|
+
agent.result
|
17
|
+
else
|
18
|
+
agent.processed = true
|
19
|
+
if agent.response.key?(:error)
|
20
|
+
`console.error(#{agent.response[:error].to_n})`
|
21
|
+
raise agent.response[:error]
|
22
|
+
end
|
23
|
+
agent.result = agent.response[:result]
|
18
24
|
end
|
19
|
-
response[:agent_response][:result]
|
20
25
|
end
|
21
26
|
end
|
22
27
|
end
|
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: 1.0.0.
|
4
|
+
version: 1.0.0.zeta4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-29 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: 16.9.
|
89
|
+
version: 16.9.20
|
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: 16.9.
|
96
|
+
version: 16.9.20
|
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: 1.0.0.
|
117
|
+
version: 1.0.0.zeta4
|
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: 1.0.0.
|
124
|
+
version: 1.0.0.zeta4
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: isomorfeus-installer
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - '='
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 1.0.0.
|
131
|
+
version: 1.0.0.zeta4
|
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: 1.0.0.
|
138
|
+
version: 1.0.0.zeta4
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: opal-webpack-loader
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|