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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8a94d95be41c1325704589ad75229a827109642b2ddb33634903fba1540607f
4
- data.tar.gz: 887b798917031608d9047b769f3e9eb398882435b0a1eacb5012a05236271d17
3
+ metadata.gz: 1628d33d1ba150e8f1c9a8e6f020ffa4d0f86049fc0e6f75cd61e8badce2484d
4
+ data.tar.gz: 398084ed751eed3acb210cf0d810a378f5d14b7bb28dd2782c1c11388bb4dadf
5
5
  SHA512:
6
- metadata.gz: 9b8e0c60829734cc09bd16363eccac31aeeb124e687c186f5cf29ade3057c6b2ca72ca721bfa4a781e5f4f57ced2b252f4fea22e6ef50d044b271e37b4656415
7
- data.tar.gz: 3f957ab15133ce19ab98c6d4f9e0ae9df58a6ec92f50fcf5b953a62d3bf95450624d07f0070ebbc988cd2ae35fc02e0e86aa57c44451767e563dfb37db027034
6
+ metadata.gz: 730fcdd9ac5469f72c7ea1d236c4029fa592e996c65a8e79f2828430740f12419effd974f60ce68aa4282d30c8dd0f95fa147b87eef4aa27a908e42a1a88a1d8
7
+ data.tar.gz: cdb343530230ac9eff11816340a7ea22b28ba13406532accc6e64b14435fc6034f876325c97d1383caf326b76b84983f41aae889b04c016ca54fef97e8e7985e
@@ -1,5 +1,5 @@
1
1
  module Isomorfeus
2
2
  module Operation
3
- VERSION = '1.0.0.zeta3'
3
+ VERSION = '1.0.0.zeta4'
4
4
  end
5
5
  end
@@ -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 |response|
43
- if response[:agent_response].key?(:error)
44
- `console.error(#{response[:agent_response][:error].to_n})`
45
- raise response[:agent_response][:error]
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
@@ -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 |response|
15
- if response[:agent_response].key?(:error)
16
- `console.error(#{response[:agent_response][:error].to_n})`
17
- raise response[:agent_response][:error]
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.zeta3
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-28 00:00:00.000000000 Z
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.17
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.17
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.zeta3
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.zeta3
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.zeta3
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.zeta3
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