libis-workflow 2.0.beta.24 → 2.0.beta.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/libis/workflow/base/workflow.rb +1 -1
- data/lib/libis/workflow/task.rb +5 -6
- data/lib/libis/workflow/version.rb +1 -1
- data/spec/workflow_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ea4a050e42493e2962e8824acc6094e8b54187a
|
4
|
+
data.tar.gz: 5458a8c05c9de70f18b50e4d1c7052c2358b6f5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a549c0faf2812ca296aebfb95a561f2ddbdec431dd27f54e39c37d53794048a2f9878b1a1b8f3f97a9063a1a849e152b62f6478b4557e4b0fb199b5f06469dc3
|
7
|
+
data.tar.gz: cf52e3fa44c72cd31d4590cb4a4865058d955fe90c4e9119c14cefa0e32c6491b0770b5b39765efa134e4128d16e7c92e5d9631efb66f9df31ea4e31ffa4f773
|
data/lib/libis/workflow/task.rb
CHANGED
@@ -106,15 +106,14 @@ module Libis
|
|
106
106
|
o = {}
|
107
107
|
o.merge!(opts[self.class.to_s] || {})
|
108
108
|
o.merge!(opts[self.name] || opts[self.names.join('/')] || {})
|
109
|
-
o.key_strings_to_symbols! recursive: true
|
110
109
|
|
111
110
|
if o and o.is_a? Hash
|
112
111
|
default_values.each do |name, _|
|
113
|
-
next unless o.key?(name)
|
114
|
-
next if o[name].nil?
|
115
|
-
paramdef = get_parameter_definition name
|
116
|
-
value = paramdef.parse(o[name])
|
117
|
-
self.parameter(name, value)
|
112
|
+
next unless o.key?(name.to_s)
|
113
|
+
next if o[name.to_s].nil?
|
114
|
+
paramdef = get_parameter_definition name.to_sym
|
115
|
+
value = paramdef.parse(o[name.to_s])
|
116
|
+
self.parameter(name.to_sym, value)
|
118
117
|
end
|
119
118
|
end
|
120
119
|
|
@@ -2,6 +2,6 @@
|
|
2
2
|
|
3
3
|
module Libis
|
4
4
|
module Workflow
|
5
|
-
VERSION = '2.0.beta.
|
5
|
+
VERSION = '2.0.beta.25' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
|
6
6
|
end
|
7
7
|
end
|
data/spec/workflow_spec.rb
CHANGED
@@ -62,7 +62,7 @@ describe 'TestWorkflow' do
|
|
62
62
|
# noinspection RubyResolve
|
63
63
|
it 'should camelize the workitem name' do
|
64
64
|
run = job.execute
|
65
|
-
expect(run.options['CollectFiles'][
|
65
|
+
expect(run.options['CollectFiles']['location']).to eq dirname
|
66
66
|
expect(run.size).to eq 1
|
67
67
|
expect(run.items.size).to eq 1
|
68
68
|
expect(run.items.first.class).to eq TestDirItem
|