canvas_sync 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,6 +24,10 @@ class FakeCanvas < Sinatra::Base
24
24
  json_response 200, 'module.json'
25
25
  end
26
26
 
27
+ get '/api/v1/courses/1/modules/1/items/1' do
28
+ json_response 200, 'module_item.json'
29
+ end
30
+
27
31
  private
28
32
 
29
33
  def json_response(response_code, file_name)
@@ -0,0 +1,12 @@
1
+ {
2
+ "id":33,
3
+ "title":"Lame Assignment in the middle",
4
+ "position":2,
5
+ "indent":0,
6
+ "type":"Assignment",
7
+ "module_id":20,
8
+ "html_url":"http://localhost:3000/courses/1/modules/items/1",
9
+ "content_id":143,
10
+ "url":"http://localhost:3000/api/v1/courses/784/assignments/143",
11
+ "published":true
12
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate Collings
@@ -348,6 +348,9 @@ files:
348
348
  - lib/canvas_sync/generators/templates/services/live_events/module/module_created_event.rb
349
349
  - lib/canvas_sync/generators/templates/services/live_events/module/module_event.rb
350
350
  - lib/canvas_sync/generators/templates/services/live_events/module/module_updated_event.rb
351
+ - lib/canvas_sync/generators/templates/services/live_events/module_item/module_item_created_event.rb
352
+ - lib/canvas_sync/generators/templates/services/live_events/module_item/module_item_event.rb
353
+ - lib/canvas_sync/generators/templates/services/live_events/module_item/module_item_updated_event.rb
351
354
  - lib/canvas_sync/generators/templates/services/live_events/submission/submission_created_event.rb
352
355
  - lib/canvas_sync/generators/templates/services/live_events/submission/submission_event.rb
353
356
  - lib/canvas_sync/generators/templates/services/live_events/submission/submission_updated_event.rb
@@ -416,6 +419,7 @@ files:
416
419
  - spec/canvas_sync/processors/provisioning_report_processor_spec.rb
417
420
  - spec/canvas_sync/processors/submissions_processor_spec.rb
418
421
  - spec/canvas_sync/services/module_event_spec.rb
422
+ - spec/canvas_sync/services/module_item_event_spec.rb
419
423
  - spec/dummy/README.rdoc
420
424
  - spec/dummy/Rakefile
421
425
  - spec/dummy/app/models/account.rb
@@ -446,6 +450,9 @@ files:
446
450
  - spec/dummy/app/services/live_events/grade_event.rb
447
451
  - spec/dummy/app/services/live_events/module_created_event.rb
448
452
  - spec/dummy/app/services/live_events/module_event.rb
453
+ - spec/dummy/app/services/live_events/module_item_created_event.rb
454
+ - spec/dummy/app/services/live_events/module_item_event.rb
455
+ - spec/dummy/app/services/live_events/module_item_updated_event.rb
449
456
  - spec/dummy/app/services/live_events/module_updated_event.rb
450
457
  - spec/dummy/app/services/live_events/submission_created_event.rb
451
458
  - spec/dummy/app/services/live_events/submission_event.rb
@@ -503,6 +510,7 @@ files:
503
510
  - spec/support/fake_canvas.rb
504
511
  - spec/support/fixtures/canvas_responses/admins.json
505
512
  - spec/support/fixtures/canvas_responses/module.json
513
+ - spec/support/fixtures/canvas_responses/module_item.json
506
514
  - spec/support/fixtures/canvas_responses/roles.json
507
515
  - spec/support/fixtures/canvas_responses/terms.json
508
516
  - spec/support/fixtures/reports/assignment_groups.csv
@@ -577,6 +585,7 @@ test_files:
577
585
  - spec/canvas_sync/processors/provisioning_report_processor_spec.rb
578
586
  - spec/canvas_sync/processors/submissions_processor_spec.rb
579
587
  - spec/canvas_sync/services/module_event_spec.rb
588
+ - spec/canvas_sync/services/module_item_event_spec.rb
580
589
  - spec/dummy/README.rdoc
581
590
  - spec/dummy/Rakefile
582
591
  - spec/dummy/app/models/account.rb
@@ -607,6 +616,9 @@ test_files:
607
616
  - spec/dummy/app/services/live_events/grade_event.rb
608
617
  - spec/dummy/app/services/live_events/module_created_event.rb
609
618
  - spec/dummy/app/services/live_events/module_event.rb
619
+ - spec/dummy/app/services/live_events/module_item_created_event.rb
620
+ - spec/dummy/app/services/live_events/module_item_event.rb
621
+ - spec/dummy/app/services/live_events/module_item_updated_event.rb
610
622
  - spec/dummy/app/services/live_events/module_updated_event.rb
611
623
  - spec/dummy/app/services/live_events/submission_created_event.rb
612
624
  - spec/dummy/app/services/live_events/submission_event.rb
@@ -664,6 +676,7 @@ test_files:
664
676
  - spec/support/fake_canvas.rb
665
677
  - spec/support/fixtures/canvas_responses/admins.json
666
678
  - spec/support/fixtures/canvas_responses/module.json
679
+ - spec/support/fixtures/canvas_responses/module_item.json
667
680
  - spec/support/fixtures/canvas_responses/roles.json
668
681
  - spec/support/fixtures/canvas_responses/terms.json
669
682
  - spec/support/fixtures/reports/assignment_groups.csv