steplib 0.9.0.8 → 0.9.0.9
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/steplib/steplib_updater.rb +2 -1
- data/lib/steplib/steplib_validator.rb +3 -2
- data/lib/steplib/workflow_updater.rb +3 -2
- data/lib/steplib/workflow_utils.rb +3 -4
- 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: 66bb253b9b4d908a32cc28ffb1f2b671d3c53848
|
4
|
+
data.tar.gz: 17f4d9fc6d09322e655d0e4d51ef3358981ca007
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e2534c38514f8509787b55cd493b8c5abbaf1e276826d97b25006ee7abb5c7672667d8999ee440ccbbe59168344b672534437d18a69bf10d16be7976bf61eab
|
7
|
+
data.tar.gz: 2a3c4bbba3dd0801a0fc0ffa5d7f7d9c9d25bbcd29c84dd466ed8bc5a8f74fd2e8930d8364462b8c70453248baec5cad6f64908fb03c41b336d0582b293256c8
|
@@ -11,6 +11,7 @@ module Steplib
|
|
11
11
|
step_version_data = HashUtils.set_missing_defaults(step_version_data, [
|
12
12
|
{key: 'fork_url', value: step_version_data['website']},
|
13
13
|
{key: 'icon_url_256', value: nil},
|
14
|
+
{key: 'is_always_run', value: false},
|
14
15
|
{key: 'project_type_tags', value: []},
|
15
16
|
{key: 'type_tags', value: []},
|
16
17
|
{key: 'inputs', value: []},
|
@@ -44,4 +45,4 @@ module Steplib
|
|
44
45
|
|
45
46
|
end
|
46
47
|
end
|
47
|
-
end
|
48
|
+
end
|
@@ -68,7 +68,7 @@ module Steplib
|
|
68
68
|
|
69
69
|
def required_step_version_properties_with_types
|
70
70
|
return [
|
71
|
-
# auto
|
71
|
+
# auto-generated IDs
|
72
72
|
['id', String],
|
73
73
|
['steplib_source', String],
|
74
74
|
['version_tag', String],
|
@@ -82,6 +82,7 @@ module Steplib
|
|
82
82
|
['project_type_tags', Array],
|
83
83
|
['type_tags', Array],
|
84
84
|
['is_requires_admin_user', ABooleanValue],
|
85
|
+
['is_always_run', ABooleanValue],
|
85
86
|
['inputs', Array],
|
86
87
|
['outputs', Array],
|
87
88
|
]
|
@@ -174,4 +175,4 @@ module Steplib
|
|
174
175
|
|
175
176
|
end
|
176
177
|
end
|
177
|
-
end
|
178
|
+
end
|
@@ -103,7 +103,7 @@ module Steplib
|
|
103
103
|
'icon_url_256']
|
104
104
|
)
|
105
105
|
#
|
106
|
-
# copy only if missing
|
106
|
+
# copy only if missing (user defined attributes)
|
107
107
|
# see "@WorkflowUserMod" in the steplib format spec for more information
|
108
108
|
workflow_step = HashUtils.copy_missing_attributes(
|
109
109
|
workflow_step,
|
@@ -131,6 +131,7 @@ module Steplib
|
|
131
131
|
else
|
132
132
|
# copy all except the ones which are used for identifying the input inside a step(-version):
|
133
133
|
# * mapped_to
|
134
|
+
#
|
134
135
|
# copy no matter what
|
135
136
|
a_wf_step_inp = HashUtils.copy_attributes(
|
136
137
|
a_wf_step_inp,
|
@@ -138,7 +139,7 @@ module Steplib
|
|
138
139
|
['title', 'description',
|
139
140
|
'is_required', 'value_options', 'is_dont_change_value']
|
140
141
|
)
|
141
|
-
# copy only if missing
|
142
|
+
# copy only if missing (user defined attributes)
|
142
143
|
# see "@WorkflowUserMod" in the steplib format spec for more information
|
143
144
|
a_wf_step_inp = HashUtils.copy_missing_attributes(
|
144
145
|
a_wf_step_inp,
|
@@ -22,10 +22,9 @@ module Steplib
|
|
22
22
|
return workflow_base_template
|
23
23
|
end
|
24
24
|
|
25
|
-
def create_workflow_step_from_steplib_step(steplib_step, position_in_workflow
|
25
|
+
def create_workflow_step_from_steplib_step(steplib_step, position_in_workflow)
|
26
26
|
wf_step = HashUtils.deep_copy(steplib_step).merge({
|
27
27
|
'position_in_workflow' => position_in_workflow.to_i,
|
28
|
-
'is_always_run' => !!is_always_run,
|
29
28
|
})
|
30
29
|
return wf_step
|
31
30
|
end
|
@@ -34,7 +33,7 @@ module Steplib
|
|
34
33
|
workflow_data = create_workflow_base_template()
|
35
34
|
workflow_data['steps'] = steplib_step_versions.map.with_index { |steplib_step_ver, idx|
|
36
35
|
# return:
|
37
|
-
create_workflow_step_from_steplib_step(steplib_step_ver, idx
|
36
|
+
create_workflow_step_from_steplib_step(steplib_step_ver, idx)
|
38
37
|
}
|
39
38
|
workflow_data['environments'] = workflow_environments
|
40
39
|
return workflow_data
|
@@ -42,4 +41,4 @@ module Steplib
|
|
42
41
|
|
43
42
|
end
|
44
43
|
end
|
45
|
-
end
|
44
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: steplib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.0.
|
4
|
+
version: 0.9.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bitrise
|
@@ -46,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
46
46
|
version: '0'
|
47
47
|
requirements: []
|
48
48
|
rubyforge_project:
|
49
|
-
rubygems_version: 2.
|
49
|
+
rubygems_version: 2.4.3
|
50
50
|
signing_key:
|
51
51
|
specification_version: 4
|
52
52
|
summary: StepLib.com's validator and other utilities GEM
|