cpee 2.1.48 → 2.1.50
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cpee.gemspec +2 -2
- data/server/executionhandlers/ruby/connection.rb +14 -5
- data/server/routing/end.pid +1 -1
- data/server/routing/forward-events-00.pid +1 -1
- data/server/routing/forward-votes.pid +1 -1
- data/server/routing/persist.pid +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae076f6c9e29ad07d9fde309d7d442c217f4f5e6dc7d53a1568539ac8ab355b5
|
4
|
+
data.tar.gz: 848076eca4541d65022199637c8b49a01a27072a05217e953b56b260e131bbf3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fb987297935bf548bd59a0547bf11b1b4b2a333d7064d7b4e1b124ece5372384c39263550476d474cf1b255a58a2dfb59ce8858d4b15f5572b7277cccfd755c
|
7
|
+
data.tar.gz: c7ce6bcb5a7d798ea680c160941fd3d2a76c990ee7a32c9ee55da99eff9dc9f75c5073c05cf6b01066d6a05e7afa31e8a13717ffb32e4382e2e3bd8f91c622f7
|
data/cpee.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "cpee"
|
3
|
-
s.version = "2.1.
|
3
|
+
s.version = "2.1.50"
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.license = "LGPL-3.0"
|
6
6
|
s.summary = "Preliminary release of cloud process execution engine (cpee.org). If you just need workflow execution, without a rest service exposing it, then use WEEL."
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.homepage = 'http://cpee.org/'
|
23
23
|
|
24
24
|
s.add_runtime_dependency 'riddl', '~> 0.126'
|
25
|
-
s.add_runtime_dependency 'weel', '~> 1.99', '>= 1.99.
|
25
|
+
s.add_runtime_dependency 'weel', '~> 1.99', '>= 1.99.111'
|
26
26
|
s.add_runtime_dependency 'highline', '~> 2.0'
|
27
27
|
s.add_runtime_dependency 'redis', '~> 5.0'
|
28
28
|
s.add_runtime_dependency 'rubyzip', '~>2'
|
@@ -132,7 +132,7 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
|
|
132
132
|
end
|
133
133
|
|
134
134
|
status = result = headers = nil
|
135
|
-
|
135
|
+
begin
|
136
136
|
tendpoint = @handler_endpoint.sub(/^http(s)?-(get|put|post|delete):/,'http\\1:')
|
137
137
|
type = $2 || parameters[:method] || 'post'
|
138
138
|
|
@@ -144,9 +144,16 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
|
|
144
144
|
status, result, headers = client.request type => params
|
145
145
|
if status == 561
|
146
146
|
@handler_endpoint = @handler_endpoint_orig
|
147
|
-
|
147
|
+
params.delete_if { |p| p.name == 'original_endpoint' }
|
148
|
+
params.each do |p|
|
149
|
+
if p.name == 'attributes'
|
150
|
+
t = JSON::parse(p.value) rescue {}
|
151
|
+
t['mock'] = @controller.attributes['mock']
|
152
|
+
p.value = t.to_json
|
153
|
+
end
|
154
|
+
end
|
148
155
|
end
|
149
|
-
end
|
156
|
+
end while status == 561
|
150
157
|
|
151
158
|
if status < 200 || status >= 300
|
152
159
|
headers['CPEE_SALVAGE'] = true
|
@@ -273,12 +280,14 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
|
|
273
280
|
result = result[0]
|
274
281
|
end
|
275
282
|
end
|
283
|
+
else
|
284
|
+
Riddl::Parameter::Array[*result]
|
276
285
|
end
|
277
286
|
if result.is_a? String
|
278
287
|
enc = detect_encoding(result)
|
279
288
|
enc == 'OTHER' ? result : (result.encode('UTF-8',enc) rescue convert_to_base64(result))
|
280
289
|
else
|
281
|
-
|
290
|
+
result
|
282
291
|
end
|
283
292
|
end
|
284
293
|
|
@@ -379,7 +388,7 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
|
|
379
388
|
end
|
380
389
|
end #}}}
|
381
390
|
|
382
|
-
def test_condition(mr,code)
|
391
|
+
def test_condition(mr,code,args)
|
383
392
|
res = mr.instance_eval(code,'Condition',1)
|
384
393
|
@controller.notify("gateway/decide", :instance_uuid => @controller.uuid, :code => code, :condition => (res ? "true" : "false"))
|
385
394
|
res
|
data/server/routing/end.pid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
1105683
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
1105692
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
1105689
|
data/server/routing/persist.pid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
1105686
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cpee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.50
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: tools
|
12
12
|
cert_chain: []
|
13
|
-
date: 2023-
|
13
|
+
date: 2023-09-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: riddl
|
@@ -35,7 +35,7 @@ dependencies:
|
|
35
35
|
version: '1.99'
|
36
36
|
- - ">="
|
37
37
|
- !ruby/object:Gem::Version
|
38
|
-
version: 1.99.
|
38
|
+
version: 1.99.111
|
39
39
|
type: :runtime
|
40
40
|
prerelease: false
|
41
41
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -45,7 +45,7 @@ dependencies:
|
|
45
45
|
version: '1.99'
|
46
46
|
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 1.99.
|
48
|
+
version: 1.99.111
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: highline
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|