integration_pal 0.1.5 → 0.1.6
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/app/controllers/integration_pal/tasks_controller.rb +62 -0
- data/app/models/concerns/integration_pal/statusable.rb +32 -0
- data/app/models/integration_pal/job.rb +2 -19
- data/app/models/integration_pal/task.rb +16 -0
- data/app/views/integration_pal/jobs/index.html.erb +2 -0
- data/app/views/integration_pal/tasks/index.html.erb +29 -0
- data/app/views/integration_pal/tasks/show.html.erb +26 -0
- data/config/routes.rb +2 -1
- data/db/migrate/20170801153911_create_integration_pal_tasks.rb +16 -0
- data/lib/integration_pal/version.rb +1 -1
- data/spec/dummy/db/schema.rb +14 -1
- data/spec/dummy/log/test.log +1461 -0
- data/spec/factories/integration_pal_tasks.rb +7 -0
- data/spec/models/integration_pal/task_spec.rb +20 -0
- metadata +12 -2
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
module IntegrationPal
|
4
|
+
RSpec.describe Task, type: :model do
|
5
|
+
describe 'validations' do
|
6
|
+
it 'requires a worker' do
|
7
|
+
expect(build(:integration_pal_task, job: nil)).to_not be_valid
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'requires a valid status' do
|
11
|
+
expect(build(:integration_pal_task, status: 'fake_status')).to_not be_valid
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'is valid with all attributes' do
|
15
|
+
expect(build(:integration_pal_task)).to be_valid
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: integration_pal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Tanner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -211,6 +211,7 @@ files:
|
|
211
211
|
- app/controllers/integration_pal/api_controller.rb
|
212
212
|
- app/controllers/integration_pal/application_controller.rb
|
213
213
|
- app/controllers/integration_pal/jobs_controller.rb
|
214
|
+
- app/controllers/integration_pal/tasks_controller.rb
|
214
215
|
- app/controllers/integration_pal/workers_controller.rb
|
215
216
|
- app/helpers/integration_pal/application_helper.rb
|
216
217
|
- app/jobs/integration_pal/application_job.rb
|
@@ -231,14 +232,18 @@ files:
|
|
231
232
|
- app/models/canvas/models/x_list.rb
|
232
233
|
- app/models/canvas/utils/csv.rb
|
233
234
|
- app/models/canvas/utils/sis.rb
|
235
|
+
- app/models/concerns/integration_pal/statusable.rb
|
234
236
|
- app/models/integration_pal/application_record.rb
|
235
237
|
- app/models/integration_pal/job.rb
|
238
|
+
- app/models/integration_pal/task.rb
|
236
239
|
- app/models/integration_pal/worker.rb
|
237
240
|
- app/views/integration_pal/jobs/_form.html.erb
|
238
241
|
- app/views/integration_pal/jobs/edit.html.erb
|
239
242
|
- app/views/integration_pal/jobs/index.html.erb
|
240
243
|
- app/views/integration_pal/jobs/new.html.erb
|
241
244
|
- app/views/integration_pal/jobs/show.html.erb
|
245
|
+
- app/views/integration_pal/tasks/index.html.erb
|
246
|
+
- app/views/integration_pal/tasks/show.html.erb
|
242
247
|
- app/views/integration_pal/workers/_form.html.erb
|
243
248
|
- app/views/integration_pal/workers/edit.html.erb
|
244
249
|
- app/views/integration_pal/workers/index.html.erb
|
@@ -253,6 +258,7 @@ files:
|
|
253
258
|
- db/migrate/20170524203831_create_integration_pal_workers.rb
|
254
259
|
- db/migrate/20170525153603_create_integration_pal_jobs.rb
|
255
260
|
- db/migrate/20170531201218_add_error_fields_to_jobs.rb
|
261
|
+
- db/migrate/20170801153911_create_integration_pal_tasks.rb
|
256
262
|
- lib/concerns/integration_pal/base_job.rb
|
257
263
|
- lib/generators/integration_pal/install/USAGE
|
258
264
|
- lib/generators/integration_pal/install/install_generator.rb
|
@@ -318,8 +324,10 @@ files:
|
|
318
324
|
- spec/dummy/public/apple-touch-icon.png
|
319
325
|
- spec/dummy/public/favicon.ico
|
320
326
|
- spec/factories/integration_pal_jobs.rb
|
327
|
+
- spec/factories/integration_pal_tasks.rb
|
321
328
|
- spec/factories/integration_pal_workers.rb
|
322
329
|
- spec/models/integration_pal/job_spec.rb
|
330
|
+
- spec/models/integration_pal/task_spec.rb
|
323
331
|
- spec/models/integration_pal/worker_spec.rb
|
324
332
|
- spec/rails_helper.rb
|
325
333
|
- spec/spec_helper.rb
|
@@ -406,8 +414,10 @@ test_files:
|
|
406
414
|
- spec/dummy/public/favicon.ico
|
407
415
|
- spec/dummy/Rakefile
|
408
416
|
- spec/factories/integration_pal_jobs.rb
|
417
|
+
- spec/factories/integration_pal_tasks.rb
|
409
418
|
- spec/factories/integration_pal_workers.rb
|
410
419
|
- spec/models/integration_pal/job_spec.rb
|
420
|
+
- spec/models/integration_pal/task_spec.rb
|
411
421
|
- spec/models/integration_pal/worker_spec.rb
|
412
422
|
- spec/rails_helper.rb
|
413
423
|
- spec/spec_helper.rb
|