canvas_shim 0.1.7rc5 → 0.1.7rc6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34f81416b832e6f14db860b5e079d2678d775f60df3a7cd117d01fae8e42e07f
4
- data.tar.gz: 74bbe675c0ddb9ec9869b2e1c20a88d36a1c3ec8d46bab6e6cdf38f393187c3f
3
+ metadata.gz: fe476968161239a04c0ef914c7b481b34e14bc3da36c5bb6be9a4358501399a2
4
+ data.tar.gz: f93cb9cfe7c127f2ae3dca6f6e51bd5912570d9d001e3f814bb7fe864c55b573
5
5
  SHA512:
6
- metadata.gz: aff43a30aa4942d74f2bf2476771d58579cf95ccf3114a67d252f9a3d673df4c6667395ec5951ce877c5e9abf0294d248b3e11a4ec438ec13d80442d23e16ced
7
- data.tar.gz: 3074d2f6fb0a71f8cba5cb7b57e6db5abd8a65a587d54d4881d6fce63b59484d642339de5643bda5826f9d64feb74e5a81c533e7a5d9174c6b48fa005772d481
6
+ metadata.gz: 92ac75fcd330827567ec8650c1d39e7bfed07813c0e57fad9b6d155b2d5204dc8c1f20ecb31512a8eb81bab3f5c9beaa9eb141b4c8229d12a4f22ce84076e539
7
+ data.tar.gz: 9fa488b4efea51f939a51b1f45baaaf80d76a804f4bb64e30b72f6ab4c7374ca11c03948e8fece1588d4463ad7d0122dd18596ad0460b568b71e41dc2e5f7562
@@ -1,12 +1,13 @@
1
1
  module PipelineService
2
2
  module Nouns
3
3
  class UnitGrades
4
- attr_reader :course, :student, :id, :changes
4
+ attr_reader :course, :student, :id, :changes, :submission
5
5
  def initialize(submission)
6
6
  @course = submission.assignment.course
7
7
  @student = submission.user
8
8
  @id = submission.id
9
9
  @changes = submission.changes
10
+ @submission = submission
10
11
  end
11
12
  end
12
13
  end
@@ -4,12 +4,14 @@ module PipelineService
4
4
  def initialize(object:)
5
5
  @course = object.course
6
6
  @student = object.student
7
+ @submission = object.submission
7
8
  end
8
9
 
9
10
  def call
10
11
  UnitsService::Commands::GetUnitGrades.new(
11
12
  course: @course,
12
- student: @student
13
+ student: @student,
14
+ submission: @submission,
13
15
  ).call
14
16
  end
15
17
  end
@@ -1,9 +1,10 @@
1
1
  module UnitsService
2
2
  module Commands
3
3
  class GetUnitGrades
4
- def initialize(course:, student:)
4
+ def initialize(course:, student:, submission:)
5
5
  @course = course
6
6
  @student = student
7
+ @submission = submission
7
8
  end
8
9
 
9
10
  def call
@@ -26,10 +27,11 @@ module UnitsService
26
27
  school_domain: ENV['CANVAS_DOMAIN'],
27
28
  course_id: @course.id,
28
29
  student_id: @student.id,
30
+ sis_user_id: @student.pseudonym.sis_user_id,
31
+ submitted_at: @submission.submitted_at,
29
32
  units: @grades.map {|unit, score| {
30
33
  id: unit.id,
31
34
  position: unit.position,
32
- created_at: unit.created_at,
33
35
  score: score
34
36
  }}
35
37
  }
@@ -1,3 +1,3 @@
1
1
  module CanvasShim
2
- VERSION = '0.1.7rc5'
2
+ VERSION = '0.1.7rc6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas_shim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7rc5
4
+ version: 0.1.7rc6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''