rbbt-rest 1.2.41 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbbt/rest/workflow/jobs.rb +7 -2
- data/share/views/compass/workflow.sass +3 -1
- data/share/views/form.haml +2 -1
- data/share/views/partials/form.haml +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2b2a924290d2d90b77317f8ff443e515accbef3
|
4
|
+
data.tar.gz: 11ffdc8e6988331b88dfe7e7698b2a3f5cf69a69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c7f7b942ad71effd216ad6789de00717c72f7475ed702b767154f5fd2e91758b03bc6517a0e879e481a2adde98fe3f2b7abf5e10a5d70213e7757750fa88914
|
7
|
+
data.tar.gz: acf5284071e5d43349268ff6c5b883e1111a303ba215439ca93aaabca011f8a7ca2e8eb44bd20be61ce2b6137174da4c723f2f614e84d1249fe69ca016d1db75
|
@@ -69,7 +69,7 @@ module WorkflowRESTHelpers
|
|
69
69
|
end
|
70
70
|
|
71
71
|
def show_exec_result(result, workflow, task)
|
72
|
-
case format
|
72
|
+
case format.to_sym
|
73
73
|
when :html
|
74
74
|
show_result_html result, workflow, task, nil
|
75
75
|
when :json
|
@@ -80,7 +80,12 @@ module WorkflowRESTHelpers
|
|
80
80
|
halt 200, result.to_s
|
81
81
|
when :literal, :raw
|
82
82
|
content_type "text/plain"
|
83
|
-
|
83
|
+
case workflow.task_info(task)[:result_type]
|
84
|
+
when :array
|
85
|
+
halt 200, result * "\n"
|
86
|
+
else
|
87
|
+
halt 200, result.to_s
|
88
|
+
end
|
84
89
|
when :binary
|
85
90
|
content_type "application/octet-stream"
|
86
91
|
halt 200, result.to_s
|
data/share/views/form.haml
CHANGED
@@ -8,4 +8,5 @@
|
|
8
8
|
%span.workflow= workflow
|
9
9
|
%span.task= Misc.humanize task
|
10
10
|
.form
|
11
|
-
= partial_render('partials/form', :id => id, :action => action, :method => 'post',
|
11
|
+
= partial_render('partials/form', :id => id, :action => action, :method => 'post',
|
12
|
+
:enctype => "multipart/form-data", :info => task_info, :klass => 'workflow_task')
|
@@ -29,5 +29,8 @@
|
|
29
29
|
- input_options = input_options.dup unless input_options.nil?
|
30
30
|
!= form_input(input, types[input], defaults[input], values[input], descriptions[input], input_id, input_options)
|
31
31
|
|
32
|
+
|
32
33
|
.input.submit
|
34
|
+
- if klass =~ /workflow_task/
|
35
|
+
!= form_input('_format', :select , :html, nil, "result format", "_format", {:select_options =>[:html, :json, :raw, :binary]})
|
33
36
|
%input(type="submit")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|