libis-workflow 2.1.14 → 2.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.vscode/launch.json +23 -0
- data/CHANGELOG.md +309 -0
- data/Gemfile +3 -0
- data/Rakefile +11 -1
- data/lib/libis/workflow/base/file_item.rb +0 -1
- data/lib/libis/workflow/base/run.rb +0 -1
- data/lib/libis/workflow/run.rb +3 -0
- data/lib/libis/workflow/task.rb +5 -5
- data/lib/libis/workflow/task_group.rb +1 -1
- data/lib/libis/workflow/version.rb +1 -1
- data/libis-workflow.gemspec +7 -7
- data/spec/workflow_spec.rb +37 -16
- metadata +32 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29a24d93fb0727e644395784d7fffe594f105c8037eac8268d4c0154ab6a4620
|
4
|
+
data.tar.gz: 8e14dc2c88f6d2e07cc7e9d1ce3a297a5d2d076529466f97310e83b31c073ffb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 612736ce0bd4b328dc0ae139d12d0d22a8490a14fd4d7b437fce2eee90785f216b259640db89766ce61db7bf0501da36b562d9fdb7704437ece529418182c879
|
7
|
+
data.tar.gz: 10d72ed0fed3618006cd3da4a2243550408755de48083bb7d770eec28cb06904c8a3d7cdfd4a91d81c409a8dd6d764b364e750a5ab32cbe410aa2c49dac355f4
|
data/.gitignore
CHANGED
data/.vscode/launch.json
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
{
|
2
|
+
// Use IntelliSense to learn about possible attributes.
|
3
|
+
// Hover to view descriptions of existing attributes.
|
4
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
5
|
+
"version": "0.2.0",
|
6
|
+
"configurations": [
|
7
|
+
{
|
8
|
+
"type": "rdbg",
|
9
|
+
"request": "launch",
|
10
|
+
"name": "Debug rspec test",
|
11
|
+
"command": "rspec",
|
12
|
+
"script": "${file}"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"type": "rdbg",
|
16
|
+
"name": "Debug current file with rdbg",
|
17
|
+
"request": "launch",
|
18
|
+
"script": "${file}",
|
19
|
+
"args": [],
|
20
|
+
"askParameters": true
|
21
|
+
}
|
22
|
+
]
|
23
|
+
}
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,309 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## [v2.1.15](https://github.com/libis/workflow/tree/v2.1.15) (27/11/2023)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.1.14...v2.1.15)
|
6
|
+
|
7
|
+
## [v2.1.14](https://github.com/libis/workflow/tree/v2.1.14) (23/10/2023)
|
8
|
+
|
9
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.1.13...v2.1.14)
|
10
|
+
|
11
|
+
## [v2.1.13](https://github.com/libis/workflow/tree/v2.1.13) (10/10/2023)
|
12
|
+
|
13
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.1.12...v2.1.13)
|
14
|
+
|
15
|
+
## [v2.1.12](https://github.com/libis/workflow/tree/v2.1.12) (06/09/2023)
|
16
|
+
|
17
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.1.11...v2.1.12)
|
18
|
+
|
19
|
+
## [v2.1.11](https://github.com/libis/workflow/tree/v2.1.11) (06/09/2023)
|
20
|
+
|
21
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.1.10...v2.1.11)
|
22
|
+
|
23
|
+
## [v2.1.10](https://github.com/libis/workflow/tree/v2.1.10) (23/08/2023)
|
24
|
+
|
25
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.1.9...v2.1.10)
|
26
|
+
|
27
|
+
## [v2.1.9](https://github.com/libis/workflow/tree/v2.1.9) (11/08/2023)
|
28
|
+
|
29
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.1.8...v2.1.9)
|
30
|
+
|
31
|
+
## [v2.1.8](https://github.com/libis/workflow/tree/v2.1.8) (09/08/2023)
|
32
|
+
|
33
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.1.7...v2.1.8)
|
34
|
+
|
35
|
+
## [v2.1.7](https://github.com/libis/workflow/tree/v2.1.7) (09/08/2023)
|
36
|
+
|
37
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.1.6...v2.1.7)
|
38
|
+
|
39
|
+
## [v2.1.6](https://github.com/libis/workflow/tree/v2.1.6) (19/07/2023)
|
40
|
+
|
41
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.1.5...v2.1.6)
|
42
|
+
|
43
|
+
## [v2.1.5](https://github.com/libis/workflow/tree/v2.1.5) (05/07/2023)
|
44
|
+
|
45
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.1.4...v2.1.5)
|
46
|
+
|
47
|
+
## [v2.1.4](https://github.com/libis/workflow/tree/v2.1.4) (24/02/2021)
|
48
|
+
|
49
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.1.3...v2.1.4)
|
50
|
+
|
51
|
+
## [v2.1.3](https://github.com/libis/workflow/tree/v2.1.3) (25/05/2020)
|
52
|
+
|
53
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.1.2...v2.1.3)
|
54
|
+
|
55
|
+
## [v2.1.2](https://github.com/libis/workflow/tree/v2.1.2) (13/05/2020)
|
56
|
+
|
57
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.1.0...v2.1.2)
|
58
|
+
|
59
|
+
## [v2.1.0](https://github.com/libis/workflow/tree/v2.1.0) (28/08/2019)
|
60
|
+
|
61
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.38...v2.1.0)
|
62
|
+
|
63
|
+
## [v2.0.38](https://github.com/libis/workflow/tree/v2.0.38) (01/10/2018)
|
64
|
+
|
65
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.37...v2.0.38)
|
66
|
+
|
67
|
+
## [v2.0.37](https://github.com/libis/workflow/tree/v2.0.37) (23/03/2018)
|
68
|
+
|
69
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.36...v2.0.37)
|
70
|
+
|
71
|
+
## [v2.0.36](https://github.com/libis/workflow/tree/v2.0.36) (09/03/2018)
|
72
|
+
|
73
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.35...v2.0.36)
|
74
|
+
|
75
|
+
## [v2.0.35](https://github.com/libis/workflow/tree/v2.0.35) (08/03/2018)
|
76
|
+
|
77
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.34...v2.0.35)
|
78
|
+
|
79
|
+
## [v2.0.34](https://github.com/libis/workflow/tree/v2.0.34) (28/02/2018)
|
80
|
+
|
81
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.33...v2.0.34)
|
82
|
+
|
83
|
+
## [v2.0.33](https://github.com/libis/workflow/tree/v2.0.33) (30/08/2017)
|
84
|
+
|
85
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.32...v2.0.33)
|
86
|
+
|
87
|
+
## [v2.0.32](https://github.com/libis/workflow/tree/v2.0.32) (19/12/2016)
|
88
|
+
|
89
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.31...v2.0.32)
|
90
|
+
|
91
|
+
## [v2.0.31](https://github.com/libis/workflow/tree/v2.0.31) (07/12/2016)
|
92
|
+
|
93
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.30...v2.0.31)
|
94
|
+
|
95
|
+
## [v2.0.30](https://github.com/libis/workflow/tree/v2.0.30) (27/07/2016)
|
96
|
+
|
97
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.29...v2.0.30)
|
98
|
+
|
99
|
+
## [v2.0.29](https://github.com/libis/workflow/tree/v2.0.29) (19/07/2016)
|
100
|
+
|
101
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.28...v2.0.29)
|
102
|
+
|
103
|
+
## [v2.0.28](https://github.com/libis/workflow/tree/v2.0.28) (20/06/2016)
|
104
|
+
|
105
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.25...v2.0.28)
|
106
|
+
|
107
|
+
## [v2.0.25](https://github.com/libis/workflow/tree/v2.0.25) (04/06/2016)
|
108
|
+
|
109
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.24...v2.0.25)
|
110
|
+
|
111
|
+
## [v2.0.24](https://github.com/libis/workflow/tree/v2.0.24) (02/06/2016)
|
112
|
+
|
113
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.23...v2.0.24)
|
114
|
+
|
115
|
+
## [v2.0.23](https://github.com/libis/workflow/tree/v2.0.23) (02/06/2016)
|
116
|
+
|
117
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.22...v2.0.23)
|
118
|
+
|
119
|
+
## [v2.0.22](https://github.com/libis/workflow/tree/v2.0.22) (02/06/2016)
|
120
|
+
|
121
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.21...v2.0.22)
|
122
|
+
|
123
|
+
## [v2.0.21](https://github.com/libis/workflow/tree/v2.0.21) (01/06/2016)
|
124
|
+
|
125
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.19...v2.0.21)
|
126
|
+
|
127
|
+
## [v2.0.19](https://github.com/libis/workflow/tree/v2.0.19) (02/05/2016)
|
128
|
+
|
129
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.18...v2.0.19)
|
130
|
+
|
131
|
+
## [v2.0.18](https://github.com/libis/workflow/tree/v2.0.18) (20/04/2016)
|
132
|
+
|
133
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.17...v2.0.18)
|
134
|
+
|
135
|
+
## [v2.0.17](https://github.com/libis/workflow/tree/v2.0.17) (18/04/2016)
|
136
|
+
|
137
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.16...v2.0.17)
|
138
|
+
|
139
|
+
## [v2.0.16](https://github.com/libis/workflow/tree/v2.0.16) (18/04/2016)
|
140
|
+
|
141
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.14...v2.0.16)
|
142
|
+
|
143
|
+
## [v2.0.14](https://github.com/libis/workflow/tree/v2.0.14) (18/04/2016)
|
144
|
+
|
145
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.13...v2.0.14)
|
146
|
+
|
147
|
+
## [v2.0.13](https://github.com/libis/workflow/tree/v2.0.13) (15/04/2016)
|
148
|
+
|
149
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.12...v2.0.13)
|
150
|
+
|
151
|
+
## [v2.0.12](https://github.com/libis/workflow/tree/v2.0.12) (13/04/2016)
|
152
|
+
|
153
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.11...v2.0.12)
|
154
|
+
|
155
|
+
## [v2.0.11](https://github.com/libis/workflow/tree/v2.0.11) (06/04/2016)
|
156
|
+
|
157
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.10...v2.0.11)
|
158
|
+
|
159
|
+
## [v2.0.10](https://github.com/libis/workflow/tree/v2.0.10) (26/03/2016)
|
160
|
+
|
161
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.9...v2.0.10)
|
162
|
+
|
163
|
+
## [v2.0.9](https://github.com/libis/workflow/tree/v2.0.9) (25/03/2016)
|
164
|
+
|
165
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.8...v2.0.9)
|
166
|
+
|
167
|
+
## [v2.0.8](https://github.com/libis/workflow/tree/v2.0.8) (25/03/2016)
|
168
|
+
|
169
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.7...v2.0.8)
|
170
|
+
|
171
|
+
## [v2.0.7](https://github.com/libis/workflow/tree/v2.0.7) (13/03/2016)
|
172
|
+
|
173
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.6...v2.0.7)
|
174
|
+
|
175
|
+
## [v2.0.6](https://github.com/libis/workflow/tree/v2.0.6) (11/03/2016)
|
176
|
+
|
177
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.5...v2.0.6)
|
178
|
+
|
179
|
+
## [v2.0.5](https://github.com/libis/workflow/tree/v2.0.5) (11/03/2016)
|
180
|
+
|
181
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.3...v2.0.5)
|
182
|
+
|
183
|
+
## [v2.0.3](https://github.com/libis/workflow/tree/v2.0.3) (10/03/2016)
|
184
|
+
|
185
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.2...v2.0.3)
|
186
|
+
|
187
|
+
## [v2.0.2](https://github.com/libis/workflow/tree/v2.0.2) (08/03/2016)
|
188
|
+
|
189
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.1...v2.0.2)
|
190
|
+
|
191
|
+
## [v2.0.1](https://github.com/libis/workflow/tree/v2.0.1) (07/03/2016)
|
192
|
+
|
193
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.0...v2.0.1)
|
194
|
+
|
195
|
+
## [v2.0.0](https://github.com/libis/workflow/tree/v2.0.0) (03/03/2016)
|
196
|
+
|
197
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.26...v2.0.0)
|
198
|
+
|
199
|
+
## [v2.0.beta.26](https://github.com/libis/workflow/tree/v2.0.beta.26) (26/01/2016)
|
200
|
+
|
201
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.25...v2.0.beta.26)
|
202
|
+
|
203
|
+
## [v2.0.beta.25](https://github.com/libis/workflow/tree/v2.0.beta.25) (07/01/2016)
|
204
|
+
|
205
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.24...v2.0.beta.25)
|
206
|
+
|
207
|
+
## [v2.0.beta.24](https://github.com/libis/workflow/tree/v2.0.beta.24) (07/01/2016)
|
208
|
+
|
209
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.23...v2.0.beta.24)
|
210
|
+
|
211
|
+
## [v2.0.beta.23](https://github.com/libis/workflow/tree/v2.0.beta.23) (07/01/2016)
|
212
|
+
|
213
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.22...v2.0.beta.23)
|
214
|
+
|
215
|
+
## [v2.0.beta.22](https://github.com/libis/workflow/tree/v2.0.beta.22) (05/01/2016)
|
216
|
+
|
217
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.21...v2.0.beta.22)
|
218
|
+
|
219
|
+
## [v2.0.beta.21](https://github.com/libis/workflow/tree/v2.0.beta.21) (16/12/2015)
|
220
|
+
|
221
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.20...v2.0.beta.21)
|
222
|
+
|
223
|
+
## [v2.0.beta.20](https://github.com/libis/workflow/tree/v2.0.beta.20) (16/12/2015)
|
224
|
+
|
225
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.19...v2.0.beta.20)
|
226
|
+
|
227
|
+
## [v2.0.beta.19](https://github.com/libis/workflow/tree/v2.0.beta.19) (14/12/2015)
|
228
|
+
|
229
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.18...v2.0.beta.19)
|
230
|
+
|
231
|
+
## [v2.0.beta.18](https://github.com/libis/workflow/tree/v2.0.beta.18) (11/12/2015)
|
232
|
+
|
233
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.17...v2.0.beta.18)
|
234
|
+
|
235
|
+
## [v2.0.beta.17](https://github.com/libis/workflow/tree/v2.0.beta.17) (11/12/2015)
|
236
|
+
|
237
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.16...v2.0.beta.17)
|
238
|
+
|
239
|
+
## [v2.0.beta.16](https://github.com/libis/workflow/tree/v2.0.beta.16) (11/12/2015)
|
240
|
+
|
241
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.15...v2.0.beta.16)
|
242
|
+
|
243
|
+
## [v2.0.beta.15](https://github.com/libis/workflow/tree/v2.0.beta.15) (11/12/2015)
|
244
|
+
|
245
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.14...v2.0.beta.15)
|
246
|
+
|
247
|
+
## [v2.0.beta.14](https://github.com/libis/workflow/tree/v2.0.beta.14) (11/12/2015)
|
248
|
+
|
249
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.13...v2.0.beta.14)
|
250
|
+
|
251
|
+
## [v2.0.beta.13](https://github.com/libis/workflow/tree/v2.0.beta.13) (03/12/2015)
|
252
|
+
|
253
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.12...v2.0.beta.13)
|
254
|
+
|
255
|
+
## [v2.0.beta.12](https://github.com/libis/workflow/tree/v2.0.beta.12) (09/11/2015)
|
256
|
+
|
257
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.11...v2.0.beta.12)
|
258
|
+
|
259
|
+
## [v2.0.beta.11](https://github.com/libis/workflow/tree/v2.0.beta.11) (22/10/2015)
|
260
|
+
|
261
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.10...v2.0.beta.11)
|
262
|
+
|
263
|
+
## [v2.0.beta.10](https://github.com/libis/workflow/tree/v2.0.beta.10) (08/10/2015)
|
264
|
+
|
265
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.9...v2.0.beta.10)
|
266
|
+
|
267
|
+
## [v2.0.beta.9](https://github.com/libis/workflow/tree/v2.0.beta.9) (21/06/2015)
|
268
|
+
|
269
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.8...v2.0.beta.9)
|
270
|
+
|
271
|
+
## [v2.0.beta.8](https://github.com/libis/workflow/tree/v2.0.beta.8) (16/06/2015)
|
272
|
+
|
273
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.7...v2.0.beta.8)
|
274
|
+
|
275
|
+
## [v2.0.beta.7](https://github.com/libis/workflow/tree/v2.0.beta.7) (15/06/2015)
|
276
|
+
|
277
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.6...v2.0.beta.7)
|
278
|
+
|
279
|
+
## [v2.0.beta.6](https://github.com/libis/workflow/tree/v2.0.beta.6) (10/06/2015)
|
280
|
+
|
281
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.5...v2.0.beta.6)
|
282
|
+
|
283
|
+
## [v2.0.beta.5](https://github.com/libis/workflow/tree/v2.0.beta.5) (17/04/2015)
|
284
|
+
|
285
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.4...v2.0.beta.5)
|
286
|
+
|
287
|
+
## [v2.0.beta.4](https://github.com/libis/workflow/tree/v2.0.beta.4) (15/04/2015)
|
288
|
+
|
289
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.3...v2.0.beta.4)
|
290
|
+
|
291
|
+
## [v2.0.beta.3](https://github.com/libis/workflow/tree/v2.0.beta.3) (15/04/2015)
|
292
|
+
|
293
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v2.0.beta.1...v2.0.beta.3)
|
294
|
+
|
295
|
+
## [v2.0.beta.1](https://github.com/libis/workflow/tree/v2.0.beta.1) (22/09/2014)
|
296
|
+
|
297
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v1.0.1...v2.0.beta.1)
|
298
|
+
|
299
|
+
## [v1.0.1](https://github.com/libis/workflow/tree/v1.0.1) (24/07/2014)
|
300
|
+
|
301
|
+
[Full Changelog](https://github.com/libis/workflow/compare/v1.0...v1.0.1)
|
302
|
+
|
303
|
+
## [v1.0](https://github.com/libis/workflow/tree/v1.0) (24/07/2014)
|
304
|
+
|
305
|
+
[Full Changelog](https://github.com/libis/workflow/compare/36687e2a4350b2725710f19ba9a98e0c449c0c15...v1.0)
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -4,4 +4,14 @@ require 'rspec/core/rake_task'
|
|
4
4
|
RSpec::Core::RakeTask.new('spec')
|
5
5
|
|
6
6
|
desc 'run tests'
|
7
|
-
task :default => :spec
|
7
|
+
task :default => :spec
|
8
|
+
|
9
|
+
require 'github_changelog_generator/task'
|
10
|
+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
11
|
+
config.user = 'libis'
|
12
|
+
config.project = 'workflow'
|
13
|
+
config.token = ENV['CHANGELOG_GITHUB_TOKEN']
|
14
|
+
config.date_format = '%d/%m/%Y'
|
15
|
+
config.unreleased = true
|
16
|
+
config.verbose = false
|
17
|
+
end
|
data/lib/libis/workflow/run.rb
CHANGED
data/lib/libis/workflow/task.rb
CHANGED
@@ -213,21 +213,21 @@ module Libis
|
|
213
213
|
|
214
214
|
rescue Libis::WorkflowError => e
|
215
215
|
set_status(item, :FAILED)
|
216
|
-
error 'Error processing subitem (%d/%d): %s', item, i + 1, items.size, e.message
|
216
|
+
error 'Error processing subitem (%d/%d): %s @ %s', item, i + 1, items.size, e.message, e.backtrace.first
|
217
217
|
break if parameter(:abort_recursion_on_failure)
|
218
218
|
|
219
219
|
rescue Libis::WorkflowAbort => e
|
220
|
-
fatal_error
|
220
|
+
fatal_error "Fatal error processing subitem (%d/%d): %s\n%s", item, i + 1, items.size, e.message, e.backtrace[..9].map{|t| ' -- ' + t}.join("\n")
|
221
221
|
set_status(item, :FAILED)
|
222
222
|
break
|
223
223
|
|
224
224
|
rescue Libis::WorkflowAbortForget => e
|
225
|
-
fatal_error
|
225
|
+
fatal_error "Fatal error processing subitem (%d/%d): %s\n%s", item, i + 1, items.size, e.message, e.backtrace[..9].map{|t| ' -- ' + t}.join("\n")
|
226
226
|
set_status(item, :FAILED)
|
227
227
|
raise e
|
228
228
|
|
229
229
|
rescue Exception => e
|
230
|
-
fatal_error
|
230
|
+
fatal_error "Fatal error processing subitem (%d/%d): %s @ %s\n%s", item, i + 1, items.size, e.message, e.backtrace[..9].map{|t| ' -- ' + t}.join("\n")
|
231
231
|
set_status(item, :FAILED)
|
232
232
|
raise Libis::WorkflowAbort, "#{e.message} @ #{e.backtrace.first}"
|
233
233
|
|
@@ -340,7 +340,7 @@ module Libis
|
|
340
340
|
end
|
341
341
|
|
342
342
|
def set_status(item, state)
|
343
|
-
item.set_status(namepath, state) unless parameter(:run_always)
|
343
|
+
item.set_status(namepath, state)# unless parameter(:run_always)
|
344
344
|
state
|
345
345
|
end
|
346
346
|
|
@@ -43,7 +43,7 @@ module Libis
|
|
43
43
|
tasks.each_with_index do |task, i|
|
44
44
|
unless task.parameter(:run_always)
|
45
45
|
next unless continue
|
46
|
-
if
|
46
|
+
if item.status(task.namepath) == :DONE && item.get_run.action == :retry
|
47
47
|
debug 'Retry: skipping task %s because it has finished successfully.', item, task.namepath
|
48
48
|
next
|
49
49
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Libis
|
2
2
|
module Workflow
|
3
|
-
VERSION = '2.1.
|
3
|
+
VERSION = '2.1.16' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
|
4
4
|
end
|
5
5
|
end
|
data/libis-workflow.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
|
15
15
|
spec.author = 'Kris Dekeyser'
|
16
16
|
spec.email = 'kris.dekeyser@libis.be'
|
17
|
-
spec.homepage = 'https://github.com/
|
17
|
+
spec.homepage = 'https://github.com/libis/workflow'
|
18
18
|
spec.license = 'MIT'
|
19
19
|
|
20
20
|
if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
|
@@ -27,11 +27,11 @@ Gem::Specification.new do |spec|
|
|
27
27
|
|
28
28
|
spec.require_paths = ['lib']
|
29
29
|
|
30
|
-
spec.
|
31
|
-
spec.add_development_dependency 'rspec', '~> 3.1'
|
32
|
-
spec.add_development_dependency 'simplecov', '~> 0.9'
|
33
|
-
spec.add_development_dependency 'coveralls', '~> 0.7'
|
34
|
-
spec.add_development_dependency 'awesome_print'
|
30
|
+
spec.add_runtime_dependency 'libis-tools', '~> 1.1'
|
35
31
|
|
36
|
-
spec.
|
32
|
+
spec.add_development_dependency 'rake'
|
33
|
+
spec.add_development_dependency 'rspec'
|
34
|
+
spec.add_development_dependency 'simplecov'
|
35
|
+
spec.add_development_dependency 'coveralls'
|
36
|
+
spec.add_development_dependency 'awesome_print'
|
37
37
|
end
|
data/spec/workflow_spec.rb
CHANGED
@@ -6,22 +6,28 @@ require 'awesome_print'
|
|
6
6
|
basedir = File.absolute_path File.join(File.dirname(__FILE__))
|
7
7
|
dirname = File.join(basedir, 'items')
|
8
8
|
|
9
|
-
def
|
10
|
-
|
11
|
-
output = logoutput.string.lines.to_a.map {|x| x[/(?<=\] ).*/].strip}
|
9
|
+
def print_output(logoutput)
|
10
|
+
output = logoutput.string.lines.to_a.map {|x| x[/(?<=\] ).*/]&.strip}.compact
|
12
11
|
|
13
|
-
|
14
|
-
|
12
|
+
puts 'output:'
|
13
|
+
ap output
|
14
|
+
end
|
15
15
|
|
16
|
+
def check_output(logoutput, sample_out)
|
17
|
+
sample_out = sample_out.lines.to_a.map {|x| x&.strip}
|
18
|
+
output = logoutput.string.lines.to_a.map {|x| x[/(?<=\] ).*/]&.strip}.compact
|
16
19
|
expect(output.size).to eq sample_out.size
|
17
20
|
output.each_with_index do |o, i|
|
18
|
-
expect(o).to
|
21
|
+
expect(o).to start_with sample_out[i]
|
19
22
|
end
|
20
23
|
end
|
21
24
|
|
25
|
+
def print_status_log(status_log)
|
26
|
+
puts 'status_log:'
|
27
|
+
status_log.each { |e| ap e }
|
28
|
+
end
|
29
|
+
|
22
30
|
def check_status_log(status_log, sample_status_log)
|
23
|
-
# puts 'status_log:'
|
24
|
-
# status_log.each { |e| ap e }
|
25
31
|
expect(status_log.size).to eq sample_status_log.size
|
26
32
|
sample_status_log.each_with_index do |h, i|
|
27
33
|
h.keys.each {|key| expect(status_log[i][key.to_s]).to eq h[key]}
|
@@ -113,24 +119,26 @@ DEBUG -- CollectFiles - TestRun : Processing subitem (1/1): items
|
|
113
119
|
DEBUG -- CollectFiles - items : Processing subitem (1/3): test_dir_item.rb
|
114
120
|
DEBUG -- CollectFiles - items : Processing subitem (2/3): test_file_item.rb
|
115
121
|
DEBUG -- CollectFiles - items : Processing subitem (3/3): test_run.rb
|
116
|
-
DEBUG -- CollectFiles - items : 3
|
117
|
-
DEBUG -- CollectFiles - TestRun : 1
|
122
|
+
DEBUG -- CollectFiles - items : 3 subitem(s) passed
|
123
|
+
DEBUG -- CollectFiles - TestRun : 1 subitem(s) passed
|
118
124
|
INFO -- Run - TestRun : Running subtask (2/2): ProcessFiles
|
119
125
|
INFO -- ProcessFiles - TestRun : Running subtask (1/2): ChecksumTester
|
120
126
|
DEBUG -- ProcessFiles/ChecksumTester - TestRun : Processing subitem (1/1): items
|
121
127
|
DEBUG -- ProcessFiles/ChecksumTester - items : Processing subitem (1/3): test_dir_item.rb
|
122
128
|
DEBUG -- ProcessFiles/ChecksumTester - items : Processing subitem (2/3): test_file_item.rb
|
123
129
|
DEBUG -- ProcessFiles/ChecksumTester - items : Processing subitem (3/3): test_run.rb
|
124
|
-
DEBUG -- ProcessFiles/ChecksumTester - items : 3
|
125
|
-
DEBUG -- ProcessFiles/ChecksumTester - TestRun : 1
|
130
|
+
DEBUG -- ProcessFiles/ChecksumTester - items : 3 subitem(s) passed
|
131
|
+
DEBUG -- ProcessFiles/ChecksumTester - TestRun : 1 subitem(s) passed
|
126
132
|
INFO -- ProcessFiles - TestRun : Running subtask (2/2): CamelizeName
|
127
133
|
DEBUG -- ProcessFiles/CamelizeName - TestRun : Processing subitem (1/1): items
|
128
134
|
DEBUG -- ProcessFiles/CamelizeName - Items : Processing subitem (1/3): test_dir_item.rb
|
129
135
|
DEBUG -- ProcessFiles/CamelizeName - Items : Processing subitem (2/3): test_file_item.rb
|
130
136
|
DEBUG -- ProcessFiles/CamelizeName - Items : Processing subitem (3/3): test_run.rb
|
131
|
-
DEBUG -- ProcessFiles/CamelizeName - Items : 3
|
132
|
-
DEBUG -- ProcessFiles/CamelizeName - TestRun : 1
|
137
|
+
DEBUG -- ProcessFiles/CamelizeName - Items : 3 subitem(s) passed
|
138
|
+
DEBUG -- ProcessFiles/CamelizeName - TestRun : 1 subitem(s) passed
|
139
|
+
DEBUG -- ProcessFiles - TestRun : 2 subtask(s) passed
|
133
140
|
INFO -- ProcessFiles - TestRun : Done
|
141
|
+
DEBUG -- Run - TestRun : 2 subtask(s) passed
|
134
142
|
INFO -- Run - TestRun : Done
|
135
143
|
STR
|
136
144
|
|
@@ -422,7 +430,7 @@ STR
|
|
422
430
|
it 'should run final task' do
|
423
431
|
run
|
424
432
|
|
425
|
-
|
433
|
+
check_output logoutput, <<STR
|
426
434
|
INFO -- Run - TestRun : Ingest run started.
|
427
435
|
INFO -- Run - TestRun : Running subtask (1/3): CollectFiles
|
428
436
|
INFO -- Run - TestRun : Running subtask (2/3): ProcessingTask
|
@@ -551,10 +559,23 @@ STR
|
|
551
559
|
it 'should run final task during retry' do
|
552
560
|
run
|
553
561
|
|
554
|
-
logoutput.truncate(0)
|
555
562
|
run.run :retry
|
556
563
|
|
557
564
|
check_output logoutput, <<STR
|
565
|
+
INFO -- Run - TestRun : Ingest run started.
|
566
|
+
INFO -- Run - TestRun : Running subtask (1/3): CollectFiles
|
567
|
+
INFO -- Run - TestRun : Running subtask (2/3): ProcessingTask
|
568
|
+
ERROR -- ProcessingTask - TestRun : Task failed with failed status
|
569
|
+
ERROR -- ProcessingTask - TestRun : Task failed with failed status
|
570
|
+
ERROR -- ProcessingTask - TestRun : Task failed with failed status
|
571
|
+
ERROR -- ProcessingTask - items : 3 subitem(s) failed
|
572
|
+
ERROR -- ProcessingTask - TestRun : 1 subitem(s) failed
|
573
|
+
INFO -- Run - TestRun : Running subtask (3/3): FinalTask
|
574
|
+
INFO -- FinalTask - TestRun : Final processing of test_dir_item.rb
|
575
|
+
INFO -- FinalTask - TestRun : Final processing of test_file_item.rb
|
576
|
+
INFO -- FinalTask - TestRun : Final processing of test_run.rb
|
577
|
+
ERROR -- Run - TestRun : 1 subtask(s) failed
|
578
|
+
INFO -- Run - TestRun : Failed
|
558
579
|
INFO -- Run - TestRun : Ingest run started.
|
559
580
|
INFO -- Run - TestRun : Running subtask (2/3): ProcessingTask
|
560
581
|
ERROR -- ProcessingTask - TestRun : Task failed with failed status
|
metadata
CHANGED
@@ -1,73 +1,73 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libis-workflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kris Dekeyser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: libis-tools
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
type: :
|
19
|
+
version: '1.1'
|
20
|
+
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '1.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: simplecov
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: coveralls
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
@@ -81,19 +81,19 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: awesome_print
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
90
|
-
type: :
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
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: '
|
96
|
+
version: '0'
|
97
97
|
description: A simple framework to build custom task/workflow solutions.
|
98
98
|
email: kris.dekeyser@libis.be
|
99
99
|
executables: []
|
@@ -103,6 +103,8 @@ files:
|
|
103
103
|
- ".coveralls.yml"
|
104
104
|
- ".gitignore"
|
105
105
|
- ".travis.yml"
|
106
|
+
- ".vscode/launch.json"
|
107
|
+
- CHANGELOG.md
|
106
108
|
- Gemfile
|
107
109
|
- LICENSE
|
108
110
|
- README.md
|
@@ -144,7 +146,7 @@ files:
|
|
144
146
|
- spec/tasks/final_task.rb
|
145
147
|
- spec/tasks/processing_task.rb
|
146
148
|
- spec/workflow_spec.rb
|
147
|
-
homepage: https://github.com/
|
149
|
+
homepage: https://github.com/libis/workflow
|
148
150
|
licenses:
|
149
151
|
- MIT
|
150
152
|
metadata: {}
|
@@ -163,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
165
|
- !ruby/object:Gem::Version
|
164
166
|
version: '0'
|
165
167
|
requirements: []
|
166
|
-
rubygems_version: 3.
|
168
|
+
rubygems_version: 3.4.19
|
167
169
|
signing_key:
|
168
170
|
specification_version: 4
|
169
171
|
summary: LIBIS Workflow framework.
|