libis-workflow-activerecord 0.9.0
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 +7 -0
- data/.gitignore +57 -0
- data/.travis.yml +50 -0
- data/Gemfile +3 -0
- data/README.md +13 -0
- data/Rakefile +85 -0
- data/db/config.yml +71 -0
- data/db/migrate/001_create_work_items_table.rb +18 -0
- data/db/migrate/002_create_jobs_table.rb +27 -0
- data/db/schema.rb +72 -0
- data/db/setup_db.rb +14 -0
- data/db/travis.config.yml +4 -0
- data/lib/libis-workflow-activerecord.rb +1 -0
- data/lib/libis/workflow/activerecord.rb +25 -0
- data/lib/libis/workflow/activerecord/base.rb +79 -0
- data/lib/libis/workflow/activerecord/config.rb +30 -0
- data/lib/libis/workflow/activerecord/helpers/hash_serializer.rb +32 -0
- data/lib/libis/workflow/activerecord/helpers/property_helper.rb +40 -0
- data/lib/libis/workflow/activerecord/helpers/status_serializer.rb +30 -0
- data/lib/libis/workflow/activerecord/job.rb +73 -0
- data/lib/libis/workflow/activerecord/run.rb +99 -0
- data/lib/libis/workflow/activerecord/version.rb +7 -0
- data/lib/libis/workflow/activerecord/work_item.rb +90 -0
- data/lib/libis/workflow/activerecord/worker.rb +20 -0
- data/lib/libis/workflow/activerecord/workflow.rb +40 -0
- data/libis-workflow-activerecord.gemspec +42 -0
- data/spec/db_env.sh +5 -0
- data/spec/db_start.sh +5 -0
- data/spec/items.rb +3 -0
- data/spec/items/test_dir_item.rb +18 -0
- data/spec/items/test_file_item.rb +29 -0
- data/spec/items/test_item.rb +6 -0
- data/spec/items/test_run.rb +8 -0
- data/spec/job_spec.rb +10 -0
- data/spec/run_spec.rb +4 -0
- data/spec/spec_helper.rb +37 -0
- data/spec/tasks/camelize_name.rb +13 -0
- data/spec/tasks/checksum_tester.rb +34 -0
- data/spec/tasks/collect_files.rb +52 -0
- data/spec/test_job.rb +6 -0
- data/spec/test_workflow.rb +6 -0
- data/spec/test_workitem.rb +7 -0
- data/spec/workflow_spec.rb +208 -0
- data/spec/workitem_spec.rb +366 -0
- metadata +245 -0
@@ -0,0 +1,366 @@
|
|
1
|
+
require 'rspec'
|
2
|
+
require_relative 'spec_helper'
|
3
|
+
|
4
|
+
require 'libis-workflow-activerecord'
|
5
|
+
require 'test_workitem'
|
6
|
+
require 'awesome_print'
|
7
|
+
|
8
|
+
describe 'TestWorkItem' do
|
9
|
+
|
10
|
+
let :root do
|
11
|
+
f = Libis::Workflow::ActiveRecord::WorkItem.where('properties @> ?', {name: 'root'}.to_json)
|
12
|
+
return f.first if f.length > 0
|
13
|
+
f = TestWorkItem.new
|
14
|
+
f.properties[:name] = 'root'
|
15
|
+
f.save
|
16
|
+
f
|
17
|
+
end
|
18
|
+
|
19
|
+
context 'creation' do
|
20
|
+
|
21
|
+
it 'new item' do
|
22
|
+
item = TestWorkItem.new
|
23
|
+
expect(item.class).to be TestWorkItem
|
24
|
+
expect(item.id).to be_nil
|
25
|
+
item.save
|
26
|
+
expect(item.id).not_to be_nil
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'create item' do
|
30
|
+
item = TestWorkItem.create
|
31
|
+
expect(item.class).to be TestWorkItem
|
32
|
+
expect(item.id).not_to be_nil
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
|
37
|
+
context 'properties' do
|
38
|
+
|
39
|
+
before :context do
|
40
|
+
@item = TestWorkItem.create
|
41
|
+
end
|
42
|
+
|
43
|
+
after :context do
|
44
|
+
# @item.delete
|
45
|
+
end
|
46
|
+
|
47
|
+
let(:item) { @item }
|
48
|
+
|
49
|
+
# noinspection RubyResolve
|
50
|
+
it 'empty on creation' do
|
51
|
+
expect(item.properties).to be_a Hash
|
52
|
+
expect(item.properties).to be_empty
|
53
|
+
end
|
54
|
+
|
55
|
+
it 'can add property fields with indifferent access' do
|
56
|
+
item.properties['name'] = 'Foo'
|
57
|
+
expect(item.properties['name']).to eql 'Foo'
|
58
|
+
expect(item.properties[:name]).to eql 'Foo'
|
59
|
+
|
60
|
+
item.properties[:label] = 'Bar'
|
61
|
+
expect(item.properties[:label]).to eql 'Bar'
|
62
|
+
expect(item.properties['label']).to eql 'Bar'
|
63
|
+
|
64
|
+
# name and label are special properties
|
65
|
+
expect(item.name).to eql 'Foo'
|
66
|
+
expect(item.label).to eql 'Bar'
|
67
|
+
|
68
|
+
item.name = 'Baz'
|
69
|
+
expect(item.properties['name']).to eql 'Baz'
|
70
|
+
|
71
|
+
item.label = 'Quux'
|
72
|
+
expect(item.properties[:label]).to eql 'Quux'
|
73
|
+
|
74
|
+
item.save
|
75
|
+
end
|
76
|
+
|
77
|
+
# noinspection RubyResolve
|
78
|
+
it 'property_field' do
|
79
|
+
expect(item.properties[:abc]).to be_nil
|
80
|
+
expect(item.abc).to be :xyz
|
81
|
+
item.abc = 'def'
|
82
|
+
item.save
|
83
|
+
expect(item.abc).to be :def
|
84
|
+
expect(item.properties[:abc]).to eql 'def'
|
85
|
+
item.abc = :xyz
|
86
|
+
item.save
|
87
|
+
expect(item.properties[:abc]).to eql 'xyz'
|
88
|
+
expect(item.abc).to be :xyz
|
89
|
+
item.abc = nil
|
90
|
+
item.save
|
91
|
+
expect(item.properties[:abc]).to be_nil
|
92
|
+
expect(item.abc).to be :xyz
|
93
|
+
end
|
94
|
+
|
95
|
+
# noinspection RubyResolve
|
96
|
+
it 'clear all property_fields' do
|
97
|
+
new_item = TestWorkItem.create
|
98
|
+
new_item.abc = 'foo'
|
99
|
+
expect(new_item.abc).to be :foo
|
100
|
+
expect(new_item.properties.size)
|
101
|
+
end
|
102
|
+
|
103
|
+
end
|
104
|
+
|
105
|
+
context 'options' do
|
106
|
+
|
107
|
+
before :context do
|
108
|
+
@item = TestWorkItem.create
|
109
|
+
end
|
110
|
+
|
111
|
+
after :context do
|
112
|
+
# @item.delete
|
113
|
+
end
|
114
|
+
|
115
|
+
let(:item) { @item }
|
116
|
+
|
117
|
+
it 'add with indifferent access' do
|
118
|
+
item.options['foo'] = 'bar'
|
119
|
+
expect(item.options['foo']).to eql 'bar'
|
120
|
+
expect(item.options[:foo]).to eql 'bar'
|
121
|
+
|
122
|
+
item.options[:baz] = 'quux'
|
123
|
+
expect(item.options[:baz]).to eql 'quux'
|
124
|
+
expect(item.options['baz']).to eql 'quux'
|
125
|
+
|
126
|
+
item.save
|
127
|
+
end
|
128
|
+
|
129
|
+
it 'multilevel with indifferent access' do
|
130
|
+
item.options[:quux] = {}
|
131
|
+
item.options[:quux]['foo'] = 'bar'
|
132
|
+
expect(item.options['quux']['foo']).to eql 'bar'
|
133
|
+
expect(item.options[:quux][:foo]).to eql 'bar'
|
134
|
+
|
135
|
+
item.options['quux'][:baz] = 'quux'
|
136
|
+
expect(item.options['quux'][:baz]).to eql 'quux'
|
137
|
+
expect(item.options[:quux]['baz']).to eql 'quux'
|
138
|
+
|
139
|
+
item.save
|
140
|
+
end
|
141
|
+
|
142
|
+
end
|
143
|
+
|
144
|
+
context 'status' do
|
145
|
+
|
146
|
+
before :context do
|
147
|
+
@item = TestWorkItem.create
|
148
|
+
end
|
149
|
+
|
150
|
+
after :context do
|
151
|
+
# @item.delete
|
152
|
+
end
|
153
|
+
|
154
|
+
let(:item) { @item }
|
155
|
+
|
156
|
+
it 'added' do
|
157
|
+
item.set_status('abc', :STARTED)
|
158
|
+
expect(item.status_log.size).to be 1
|
159
|
+
status_entry = item.status_log[0]
|
160
|
+
expect(status_entry[:task]).to eql 'abc'
|
161
|
+
expect(status_entry[:status]).to be :STARTED
|
162
|
+
expect(item.check_status(:STARTED, 'abc')).to be_truthy
|
163
|
+
end
|
164
|
+
|
165
|
+
it 'updated' do
|
166
|
+
item.set_status('abc', :DONE)
|
167
|
+
expect(item.status_log.size).to be 1
|
168
|
+
status_entry = item.status_log[0]
|
169
|
+
expect(status_entry[:task]).to eql 'abc'
|
170
|
+
expect(status_entry[:status]).to be :DONE
|
171
|
+
expect(item.check_status(:DONE, 'abc')).to be_truthy
|
172
|
+
end
|
173
|
+
|
174
|
+
context 'with progress' do
|
175
|
+
|
176
|
+
it 'created' do
|
177
|
+
item.set_status('def', :STARTED)
|
178
|
+
expect(item.status_log.size).to be 2
|
179
|
+
status_entry = item.status_log[1]
|
180
|
+
expect(status_entry[:task]).to eql 'def'
|
181
|
+
expect(status_entry[:status]).to be :STARTED
|
182
|
+
expect(item.check_status(:STARTED, 'def')).to be_truthy
|
183
|
+
end
|
184
|
+
|
185
|
+
it 'updated' do
|
186
|
+
item.status_progress('def', 3, 10)
|
187
|
+
expect(item.status_log.size).to be 2
|
188
|
+
status_entry = item.status_log[1]
|
189
|
+
expect(status_entry[:task]).to eql 'def'
|
190
|
+
expect(status_entry[:status]).to be :STARTED
|
191
|
+
expect(status_entry[:progress]).to be 3
|
192
|
+
expect(status_entry[:max]).to be 10
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
end
|
197
|
+
|
198
|
+
context 'copy' do
|
199
|
+
|
200
|
+
# noinspection RubyResolve
|
201
|
+
it 'simple' do
|
202
|
+
item = TestWorkItem.create
|
203
|
+
new_item = item.duplicate
|
204
|
+
expect(new_item.id).to be_nil
|
205
|
+
expect(new_item.properties).to be_empty
|
206
|
+
expect(new_item.options).to be_empty
|
207
|
+
expect(new_item.status_log).to be_empty
|
208
|
+
new_item.save!
|
209
|
+
expect(new_item.id).not_to be_nil
|
210
|
+
expect(new_item.id).not_to eql item.id
|
211
|
+
end
|
212
|
+
|
213
|
+
# noinspection RubyResolve
|
214
|
+
it 'with properties' do
|
215
|
+
item = TestWorkItem.create
|
216
|
+
item.properties['foo'] = 'bar'
|
217
|
+
item.properties['baz'] = 'quux'
|
218
|
+
new_item = item.duplicate
|
219
|
+
expect(new_item.id).to be_nil
|
220
|
+
expect(new_item.properties).not_to be_empty
|
221
|
+
expect(new_item.properties.size).to be 2
|
222
|
+
expect(new_item.properties['foo']).to eql 'bar'
|
223
|
+
expect(new_item.properties[:foo]).not_to be 'bar'
|
224
|
+
expect(new_item.properties[:baz]).to eql 'quux'
|
225
|
+
expect(new_item.properties['baz']).not_to be 'quux'
|
226
|
+
expect(new_item.properties.size).to be 2
|
227
|
+
expect(new_item.options).to be_empty
|
228
|
+
expect(new_item.status_log).to be_empty
|
229
|
+
new_item.save!
|
230
|
+
expect(new_item.id).not_to be_nil
|
231
|
+
expect(new_item.id).not_to eql item.id
|
232
|
+
end
|
233
|
+
|
234
|
+
# noinspection RubyResolve
|
235
|
+
it 'with options' do
|
236
|
+
item = TestWorkItem.create
|
237
|
+
item.options['foo'] = {}
|
238
|
+
item.options[:foo]['bar'] = {}
|
239
|
+
item.options['foo'][:bar]['baz'] = 'quux'
|
240
|
+
new_item = item.duplicate
|
241
|
+
expect(new_item.id).to be_nil
|
242
|
+
expect(new_item.options).not_to be_empty
|
243
|
+
expect(new_item.options.size).to be 1
|
244
|
+
expect(new_item.options['foo'].size).to be 1
|
245
|
+
expect(new_item.options[:foo]['bar'].size).to be 1
|
246
|
+
expect(new_item.options[:foo][:bar][:baz]).to eql 'quux'
|
247
|
+
expect(new_item.properties).to be_empty
|
248
|
+
expect(new_item.status_log).to be_empty
|
249
|
+
new_item.save!
|
250
|
+
expect(new_item.id).not_to be_nil
|
251
|
+
expect(new_item.id).not_to eql item.id
|
252
|
+
end
|
253
|
+
|
254
|
+
end
|
255
|
+
|
256
|
+
context 'hierarchy' do
|
257
|
+
|
258
|
+
before :context do
|
259
|
+
@item = TestWorkItem.create
|
260
|
+
@item.name = 'root'
|
261
|
+
end
|
262
|
+
|
263
|
+
after :context do
|
264
|
+
# @item.delete
|
265
|
+
end
|
266
|
+
|
267
|
+
let(:root) { @item }
|
268
|
+
|
269
|
+
it 'child via set parent' do
|
270
|
+
item = TestWorkItem.new
|
271
|
+
item.properties[:name] = 'child 1'
|
272
|
+
item.parent = root
|
273
|
+
expect(item.id).to be_nil
|
274
|
+
item.save
|
275
|
+
expect(item.id).not_to be_nil
|
276
|
+
# noinspection RubyResolve
|
277
|
+
expect(item.parent_id).to be root.id
|
278
|
+
expect(item.parent).to be root
|
279
|
+
expect(root.items.size).to be 1
|
280
|
+
expect(root.items.first).to eql item
|
281
|
+
end
|
282
|
+
|
283
|
+
it 'child via <<' do
|
284
|
+
item = TestWorkItem.new
|
285
|
+
item.properties[:name] = 'child 2'
|
286
|
+
root << item
|
287
|
+
expect(item.id).not_to be_nil
|
288
|
+
# noinspection RubyResolve
|
289
|
+
expect(item.parent_id).to be root.id
|
290
|
+
expect(item.parent).to be root
|
291
|
+
expect(root.items.size).to be 2
|
292
|
+
expect(root.items.last).to eql item
|
293
|
+
end
|
294
|
+
|
295
|
+
it 'child via add_item' do
|
296
|
+
item = TestWorkItem.new
|
297
|
+
item.properties[:name] = 'child 3'
|
298
|
+
root.add_item item
|
299
|
+
expect(item.id).not_to be_nil
|
300
|
+
# noinspection RubyResolve
|
301
|
+
expect(item.parent_id).to be root.id
|
302
|
+
expect(item.parent).to eql root
|
303
|
+
expect(root.items.size).to be 3
|
304
|
+
expect(root.items[2]).to eql item
|
305
|
+
end
|
306
|
+
|
307
|
+
it 'grandchild via set parent' do
|
308
|
+
item = TestWorkItem.new
|
309
|
+
item.properties[:name] = 'grandchild 1 of 1'
|
310
|
+
parent = TestWorkItem.where('properties @> ? ', {name: 'child 1'}.to_json).first
|
311
|
+
item.parent = parent
|
312
|
+
expect(item.id).to be_nil
|
313
|
+
item.save
|
314
|
+
expect(item.id).not_to be_nil
|
315
|
+
# noinspection RubyResolve
|
316
|
+
expect(item.parent_id).to be parent.id
|
317
|
+
expect(item.parent).to be parent
|
318
|
+
expect(parent.items.size).to be 1
|
319
|
+
expect(parent.items.first).to eql item
|
320
|
+
expect(item.parent.parent).to eql root
|
321
|
+
end
|
322
|
+
|
323
|
+
it 'deep copy' do
|
324
|
+
item = TestWorkItem.where('properties @> ? ', {name: 'child 1'}.to_json).first
|
325
|
+
expect(item).not_to be_nil
|
326
|
+
new_item = root.copy_item(item)
|
327
|
+
expect(new_item.id).not_to be item.id
|
328
|
+
expect(new_item.parent).to eql item.parent
|
329
|
+
expect(new_item.items.size).to be 1
|
330
|
+
expect(new_item.items[0]).not_to eql item.items[0]
|
331
|
+
expect(new_item.items[0].name).to eql item.items[0].name
|
332
|
+
new_item.name = 'Copy of ' + item.name
|
333
|
+
new_item.items.first.name = 'Copy of ' + item.items.first.name
|
334
|
+
new_item.save!
|
335
|
+
end
|
336
|
+
|
337
|
+
it 'move' do
|
338
|
+
item = TestWorkItem.where('properties @> ? ', {name: 'Copy of grandchild 1 of 1'}.to_json).first
|
339
|
+
item.name = 'Traveling grandchild'
|
340
|
+
parent = item.parent
|
341
|
+
expect(parent.items.size).to be 1
|
342
|
+
new_parent = TestWorkItem.where('properties @> ? ', {name: 'child 2'}.to_json).first
|
343
|
+
new_parent.move_item item
|
344
|
+
expect(parent.items.size).to be 0
|
345
|
+
expect(new_parent.items.size).to be 1
|
346
|
+
expect(new_parent.items.first.id).to be item.id
|
347
|
+
end
|
348
|
+
|
349
|
+
it 'cascade delete' do
|
350
|
+
expect(root.items.count).to be 4
|
351
|
+
child = TestWorkItem.where('properties @> ? ', {name: 'child 1'}.to_json).first
|
352
|
+
child.destroy
|
353
|
+
expect(root.items.count).to be 3
|
354
|
+
|
355
|
+
grandchild = TestWorkItem.where('properties @> ? ', {name: 'grandchild 1 of 1'}.to_json).first
|
356
|
+
expect(grandchild).to be_nil
|
357
|
+
end
|
358
|
+
|
359
|
+
it 'get items' do
|
360
|
+
expect(root.get_items).to be_a(ActiveRecord::Relation)
|
361
|
+
expect(root.get_item_list).to be_a(Array)
|
362
|
+
end
|
363
|
+
|
364
|
+
end
|
365
|
+
|
366
|
+
end
|
metadata
ADDED
@@ -0,0 +1,245 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: libis-workflow-activerecord
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Kris Dekeyser
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-03-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: libis-workflow
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activerecord
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '5'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.6'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.6'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: awesome_print
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: database_cleaner
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: coveralls
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: sqlite3
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: pg
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
description: Class implementations that use ActiveRecord storage for the LIBIS Workflow
|
154
|
+
framework.
|
155
|
+
email: kris.dekeyser@libis.be
|
156
|
+
executables: []
|
157
|
+
extensions: []
|
158
|
+
extra_rdoc_files: []
|
159
|
+
files:
|
160
|
+
- ".gitignore"
|
161
|
+
- ".travis.yml"
|
162
|
+
- Gemfile
|
163
|
+
- README.md
|
164
|
+
- Rakefile
|
165
|
+
- db/config.yml
|
166
|
+
- db/migrate/001_create_work_items_table.rb
|
167
|
+
- db/migrate/002_create_jobs_table.rb
|
168
|
+
- db/schema.rb
|
169
|
+
- db/setup_db.rb
|
170
|
+
- db/travis.config.yml
|
171
|
+
- lib/libis-workflow-activerecord.rb
|
172
|
+
- lib/libis/workflow/activerecord.rb
|
173
|
+
- lib/libis/workflow/activerecord/base.rb
|
174
|
+
- lib/libis/workflow/activerecord/config.rb
|
175
|
+
- lib/libis/workflow/activerecord/helpers/hash_serializer.rb
|
176
|
+
- lib/libis/workflow/activerecord/helpers/property_helper.rb
|
177
|
+
- lib/libis/workflow/activerecord/helpers/status_serializer.rb
|
178
|
+
- lib/libis/workflow/activerecord/job.rb
|
179
|
+
- lib/libis/workflow/activerecord/run.rb
|
180
|
+
- lib/libis/workflow/activerecord/version.rb
|
181
|
+
- lib/libis/workflow/activerecord/work_item.rb
|
182
|
+
- lib/libis/workflow/activerecord/worker.rb
|
183
|
+
- lib/libis/workflow/activerecord/workflow.rb
|
184
|
+
- libis-workflow-activerecord.gemspec
|
185
|
+
- spec/db_env.sh
|
186
|
+
- spec/db_start.sh
|
187
|
+
- spec/items.rb
|
188
|
+
- spec/items/test_dir_item.rb
|
189
|
+
- spec/items/test_file_item.rb
|
190
|
+
- spec/items/test_item.rb
|
191
|
+
- spec/items/test_run.rb
|
192
|
+
- spec/job_spec.rb
|
193
|
+
- spec/run_spec.rb
|
194
|
+
- spec/spec_helper.rb
|
195
|
+
- spec/tasks/camelize_name.rb
|
196
|
+
- spec/tasks/checksum_tester.rb
|
197
|
+
- spec/tasks/collect_files.rb
|
198
|
+
- spec/test_job.rb
|
199
|
+
- spec/test_workflow.rb
|
200
|
+
- spec/test_workitem.rb
|
201
|
+
- spec/workflow_spec.rb
|
202
|
+
- spec/workitem_spec.rb
|
203
|
+
homepage: https://github.com/libis/workflow-activerecord
|
204
|
+
licenses:
|
205
|
+
- MIT
|
206
|
+
metadata: {}
|
207
|
+
post_install_message:
|
208
|
+
rdoc_options: []
|
209
|
+
require_paths:
|
210
|
+
- lib
|
211
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
|
+
requirements:
|
218
|
+
- - ">="
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: '0'
|
221
|
+
requirements: []
|
222
|
+
rubyforge_project:
|
223
|
+
rubygems_version: 2.5.1
|
224
|
+
signing_key:
|
225
|
+
specification_version: 4
|
226
|
+
summary: ActiveRecord persistence for the LIBIS Workflow framework.
|
227
|
+
test_files:
|
228
|
+
- spec/db_env.sh
|
229
|
+
- spec/db_start.sh
|
230
|
+
- spec/items.rb
|
231
|
+
- spec/items/test_dir_item.rb
|
232
|
+
- spec/items/test_file_item.rb
|
233
|
+
- spec/items/test_item.rb
|
234
|
+
- spec/items/test_run.rb
|
235
|
+
- spec/job_spec.rb
|
236
|
+
- spec/run_spec.rb
|
237
|
+
- spec/spec_helper.rb
|
238
|
+
- spec/tasks/camelize_name.rb
|
239
|
+
- spec/tasks/checksum_tester.rb
|
240
|
+
- spec/tasks/collect_files.rb
|
241
|
+
- spec/test_job.rb
|
242
|
+
- spec/test_workflow.rb
|
243
|
+
- spec/test_workitem.rb
|
244
|
+
- spec/workflow_spec.rb
|
245
|
+
- spec/workitem_spec.rb
|