canvas_sync 0.3.11 → 0.3.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,9 @@
1
+ FactoryGirl.define do
2
+ factory :assignment do
3
+ sequence(:canvas_assignment_id) { |n| n }
4
+ sequence(:title) { |n| "Assignment #{n}" }
5
+ due_at { 1.week.from_now }
6
+ unlock_at { 1.day.ago }
7
+ lock_at { 3.weeks.from_now }
8
+ end
9
+ end
@@ -0,0 +1,3 @@
1
+ id,title,description,due_at,unlock_at,lock_at,points_possible,min_score,max_score,mastery_score,grading_type,submission_types,workflow_state,context_id,context_type,assignment_group_id,grading_scheme_id,grading_standard_id,location,created_at,updated_at,group_category,submissions_downloads,peer_review_count,peer_reviews_due_at,peer_reviews_assigned,peer_reviews,automatic_peer_reviews,all_day,all_day_date,could_be_locked,cloned_item_id,context_code,position,migration_id,grade_group_students_individually,anonymous_peer_reviews,time_zone_edited,turnitin_enabled,allowed_extensions,needs_grading_count,turnitin_settings,muted,group_category_id,freeze_on_copy,copied,only_visible_to_overrides,post_to_sis,integration_id,integration_data
2
+ 88,Assignment 1,<p>fdsfds</p>,"","","",100.0,"","","",points,online_text_entry,published,58,Course,55,"","","",2017-09-21 18:28:15 UTC,2017-09-21 19:36:23 UTC,"",0,0,"","","","","","","","",course_58,1,"","","","","","",1,"","","","","","","","",""
3
+ 89,fdsfdsfds,<p>fdsfdsfsdf</p>,"","","",100.0,"","","",points,online_text_entry,published,59,Course,56,"","","",2017-09-22 19:49:35 UTC,2017-09-22 19:49:35 UTC,"",0,0,"","","","","","","","",course_59,1,"","","","","","",0,"","","","","","","","",""
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.11
4
+ version: 0.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate Collings
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-09 00:00:00.000000000 Z
11
+ date: 2018-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -206,6 +206,20 @@ dependencies:
206
206
  - - ">="
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: rubocop
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
209
223
  - !ruby/object:Gem::Dependency
210
224
  name: activejob
211
225
  requirement: !ruby/object:Gem::Requirement
@@ -294,8 +308,10 @@ files:
294
308
  - lib/canvas_sync/generators/install_generator.rb
295
309
  - lib/canvas_sync/generators/install_live_events_generator.rb
296
310
  - lib/canvas_sync/generators/templates/models/admin.rb
311
+ - lib/canvas_sync/generators/templates/models/assignment.rb
297
312
  - lib/canvas_sync/generators/templates/models/course.rb
298
313
  - lib/canvas_sync/generators/templates/models/create_admins.rb
314
+ - lib/canvas_sync/generators/templates/models/create_assignments.rb
299
315
  - lib/canvas_sync/generators/templates/models/create_courses.rb
300
316
  - lib/canvas_sync/generators/templates/models/create_enrollments.rb
301
317
  - lib/canvas_sync/generators/templates/models/create_roles.rb
@@ -334,12 +350,15 @@ files:
334
350
  - lib/canvas_sync/jobs/report_processor_job.rb
335
351
  - lib/canvas_sync/jobs/report_starter.rb
336
352
  - lib/canvas_sync/jobs/sync_admins_job.rb
353
+ - lib/canvas_sync/jobs/sync_assignments_job.rb
337
354
  - lib/canvas_sync/jobs/sync_provisioning_report_job.rb
338
355
  - lib/canvas_sync/jobs/sync_roles_job.rb
339
356
  - lib/canvas_sync/jobs/sync_terms_job.rb
340
357
  - lib/canvas_sync/jobs/sync_users_job.rb
358
+ - lib/canvas_sync/processors/assignments_processor.rb
341
359
  - lib/canvas_sync/processors/model_mappings.yml
342
360
  - lib/canvas_sync/processors/provisioning_report_processor.rb
361
+ - lib/canvas_sync/processors/report_processor.rb
343
362
  - lib/canvas_sync/version.rb
344
363
  - spec/canvas_sync/canvas_sync_spec.rb
345
364
  - spec/canvas_sync/jobs/job_spec.rb
@@ -347,22 +366,26 @@ files:
347
366
  - spec/canvas_sync/jobs/report_processor_job_spec.rb
348
367
  - spec/canvas_sync/jobs/report_starter_spec.rb
349
368
  - spec/canvas_sync/jobs/sync_admins_job_spec.rb
369
+ - spec/canvas_sync/jobs/sync_assignments_job_spec.rb
350
370
  - spec/canvas_sync/jobs/sync_provisioning_report_job_spec.rb
351
371
  - spec/canvas_sync/jobs/sync_roles_job_spec.rb
352
372
  - spec/canvas_sync/jobs/sync_terms_job_spec.rb
353
373
  - spec/canvas_sync/jobs/sync_users_job_spec.rb
354
374
  - spec/canvas_sync/models/admins_spec.rb
375
+ - spec/canvas_sync/models/assignments_spec.rb
355
376
  - spec/canvas_sync/models/course_spec.rb
356
377
  - spec/canvas_sync/models/enrollment_spec.rb
357
378
  - spec/canvas_sync/models/roles_spec.rb
358
379
  - spec/canvas_sync/models/section_spec.rb
359
380
  - spec/canvas_sync/models/term_spec.rb
360
381
  - spec/canvas_sync/models/user_spec.rb
382
+ - spec/canvas_sync/processors/assignments_processor_spec.rb
361
383
  - spec/canvas_sync/processors/provisioning_report_processor_spec.rb
362
384
  - spec/dummy/README.rdoc
363
385
  - spec/dummy/Rakefile
364
386
  - spec/dummy/app/models/admin.rb
365
387
  - spec/dummy/app/models/application_record.rb
388
+ - spec/dummy/app/models/assignment.rb
366
389
  - spec/dummy/app/models/course.rb
367
390
  - spec/dummy/app/models/enrollment.rb
368
391
  - spec/dummy/app/models/role.rb
@@ -390,11 +413,13 @@ files:
390
413
  - spec/dummy/db/migrate/20171107213207_create_sections.rb
391
414
  - spec/dummy/db/migrate/20180103162102_create_roles.rb
392
415
  - spec/dummy/db/migrate/20180109210452_create_admins.rb
416
+ - spec/dummy/db/migrate/20180212204530_create_assignments.rb
393
417
  - spec/dummy/db/schema.rb
394
418
  - spec/dummy/db/test.sqlite3
395
419
  - spec/dummy/log/development.log
396
420
  - spec/dummy/log/test.log
397
421
  - spec/factories/admin_factory.rb
422
+ - spec/factories/assignment_factory.rb
398
423
  - spec/factories/course_factory.rb
399
424
  - spec/factories/enrollment_factory.rb
400
425
  - spec/factories/role_factory.rb
@@ -406,6 +431,7 @@ files:
406
431
  - spec/support/fixtures/canvas_responses/admins.json
407
432
  - spec/support/fixtures/canvas_responses/roles.json
408
433
  - spec/support/fixtures/canvas_responses/terms.json
434
+ - spec/support/fixtures/reports/assignments.csv
409
435
  - spec/support/fixtures/reports/courses.csv
410
436
  - spec/support/fixtures/reports/enrollments.csv
411
437
  - spec/support/fixtures/reports/provisioning_csv
@@ -444,22 +470,26 @@ test_files:
444
470
  - spec/canvas_sync/jobs/report_processor_job_spec.rb
445
471
  - spec/canvas_sync/jobs/report_starter_spec.rb
446
472
  - spec/canvas_sync/jobs/sync_admins_job_spec.rb
473
+ - spec/canvas_sync/jobs/sync_assignments_job_spec.rb
447
474
  - spec/canvas_sync/jobs/sync_provisioning_report_job_spec.rb
448
475
  - spec/canvas_sync/jobs/sync_roles_job_spec.rb
449
476
  - spec/canvas_sync/jobs/sync_terms_job_spec.rb
450
477
  - spec/canvas_sync/jobs/sync_users_job_spec.rb
451
478
  - spec/canvas_sync/models/admins_spec.rb
479
+ - spec/canvas_sync/models/assignments_spec.rb
452
480
  - spec/canvas_sync/models/course_spec.rb
453
481
  - spec/canvas_sync/models/enrollment_spec.rb
454
482
  - spec/canvas_sync/models/roles_spec.rb
455
483
  - spec/canvas_sync/models/section_spec.rb
456
484
  - spec/canvas_sync/models/term_spec.rb
457
485
  - spec/canvas_sync/models/user_spec.rb
486
+ - spec/canvas_sync/processors/assignments_processor_spec.rb
458
487
  - spec/canvas_sync/processors/provisioning_report_processor_spec.rb
459
488
  - spec/dummy/README.rdoc
460
489
  - spec/dummy/Rakefile
461
490
  - spec/dummy/app/models/admin.rb
462
491
  - spec/dummy/app/models/application_record.rb
492
+ - spec/dummy/app/models/assignment.rb
463
493
  - spec/dummy/app/models/course.rb
464
494
  - spec/dummy/app/models/enrollment.rb
465
495
  - spec/dummy/app/models/role.rb
@@ -487,11 +517,13 @@ test_files:
487
517
  - spec/dummy/db/migrate/20171107213207_create_sections.rb
488
518
  - spec/dummy/db/migrate/20180103162102_create_roles.rb
489
519
  - spec/dummy/db/migrate/20180109210452_create_admins.rb
520
+ - spec/dummy/db/migrate/20180212204530_create_assignments.rb
490
521
  - spec/dummy/db/schema.rb
491
522
  - spec/dummy/db/test.sqlite3
492
523
  - spec/dummy/log/development.log
493
524
  - spec/dummy/log/test.log
494
525
  - spec/factories/admin_factory.rb
526
+ - spec/factories/assignment_factory.rb
495
527
  - spec/factories/course_factory.rb
496
528
  - spec/factories/enrollment_factory.rb
497
529
  - spec/factories/role_factory.rb
@@ -503,6 +535,7 @@ test_files:
503
535
  - spec/support/fixtures/canvas_responses/admins.json
504
536
  - spec/support/fixtures/canvas_responses/roles.json
505
537
  - spec/support/fixtures/canvas_responses/terms.json
538
+ - spec/support/fixtures/reports/assignments.csv
506
539
  - spec/support/fixtures/reports/courses.csv
507
540
  - spec/support/fixtures/reports/enrollments.csv
508
541
  - spec/support/fixtures/reports/provisioning_csv