bearcat 1.2.15 → 1.2.16

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
  SHA1:
3
- metadata.gz: 5426a0f6f733add9d7be309f72ffd7185b77b263
4
- data.tar.gz: 02487a5957a1b4f0877efb9056426cbbc0fedd9c
3
+ metadata.gz: a735cca4046245a8ff2941513e3b59a28c69e9bd
4
+ data.tar.gz: 6669f6cc25124370b761c55333c770596492b757
5
5
  SHA512:
6
- metadata.gz: c2c5fb84ca83da6d3fa30708cdbefbb20150f37a03614578633bbafae5d63662f24334217f161f71a2c003fc7435992c87025bd39e4e0b30c4eb669aced315e3
7
- data.tar.gz: 4a2605d4015376c5b8eeff77a87c3ddc68bf65cdcc2017c39b2e5d199104ce6d68dbca037c1df71f3707bbab4d8adb7ec18f6dc21a9006d62882ba856bbda2b5
6
+ metadata.gz: 77ac5d5691916492b6a27dc2765bb90de21d2884562da58b301fb892127ea4dcfbce0af66d5cb3ea2479e927a2521171bc39d05990eb68293c9938883d424a7c
7
+ data.tar.gz: 3cf804c76c228b94b63a94c5a6585b1ae8ee5490b078a9a3a21cccdd0b8f787369c4e126ff0729d5e35cc52ccafc14f2c8fe4865534c0b82d96db640270c968d
@@ -49,6 +49,10 @@ module Bearcat
49
49
  def course_grading_standards(course, params={})
50
50
  get("/api/v1/courses/#{course}/grading_standards", params)
51
51
  end
52
+
53
+ def course_gradebook_history(course, params={})
54
+ get("api/v1/courses/#{course}/gradebook_history/feed", params)
55
+ end
52
56
  end
53
57
  end
54
58
  end
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.2.15' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.2.16' unless defined?(Bearcat::VERSION)
3
3
  end
@@ -109,4 +109,11 @@ describe Bearcat::Client::Sections do
109
109
  expect(grading_standards['id']).to eq 2
110
110
  expect(grading_standards['title']).to eq 'custom grading scheme'
111
111
  end
112
+
113
+ it 'gets course gradebook history' do
114
+ stub_get(@client, "/api/v1/courses/1/gradebook_history/feed").to_return(json_response("gradebook_history.json"))
115
+ gradebook_history = @client.course_gradebook_history(1).all_pages![0]
116
+ expect(gradebook_history['id']).to eq 1
117
+ expect(gradebook_history['workflow_state']).to eq 'graded'
118
+ end
112
119
  end
@@ -0,0 +1,52 @@
1
+ [
2
+ {
3
+ "id": 1,
4
+ "body": null,
5
+ "url": null,
6
+ "grade": "0",
7
+ "score": 0,
8
+ "submitted_at": null,
9
+ "assignment_id": 87,
10
+ "user_id": 3006,
11
+ "submission_type": null,
12
+ "workflow_state": "graded",
13
+ "grade_matches_current_submission": true,
14
+ "graded_at": "2016-09-02T16:57:36Z",
15
+ "grader_id": 1,
16
+ "attempt": null,
17
+ "excused": false,
18
+ "late": false,
19
+ "preview_url": "http://localhost:3000/courses/5/assignments/87/submissions/3006?preview=1&version=2",
20
+ "grader": "mvalentine@instructure.com",
21
+ "assignment_name": "00000b",
22
+ "user_name": "a@example.com",
23
+ "current_grade": "0",
24
+ "current_graded_at": "2016-09-02T16:57:36Z",
25
+ "current_grader": "mvalentine@instructure.com"
26
+ },
27
+ {
28
+ "id": 2,
29
+ "body": null,
30
+ "url": null,
31
+ "grade": "0",
32
+ "score": 0,
33
+ "submitted_at": null,
34
+ "assignment_id": 87,
35
+ "user_id": 3006,
36
+ "submission_type": null,
37
+ "workflow_state": "graded",
38
+ "grade_matches_current_submission": true,
39
+ "graded_at": "2016-09-02T16:57:36Z",
40
+ "grader_id": 1,
41
+ "attempt": null,
42
+ "excused": false,
43
+ "late": false,
44
+ "preview_url": "http://localhost:3000/courses/5/assignments/87/submissions/3006?preview=1&version=2",
45
+ "grader": "mvalentine@instructure.com",
46
+ "assignment_name": "00000b",
47
+ "user_name": "a@example.com",
48
+ "current_grade": "0",
49
+ "current_graded_at": "2016-09-02T16:57:36Z",
50
+ "current_grader": "mvalentine@instructure.com"
51
+ }
52
+ ]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bearcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.15
4
+ version: 1.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Mills, Jake Sorce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-25 00:00:00.000000000 Z
11
+ date: 2016-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -231,6 +231,7 @@ files:
231
231
  - spec/fixtures/edited_group.json
232
232
  - spec/fixtures/enroll_student.json
233
233
  - spec/fixtures/enrollment_terms.json
234
+ - spec/fixtures/gradebook_history.json
234
235
  - spec/fixtures/group.json
235
236
  - spec/fixtures/group_categories.json
236
237
  - spec/fixtures/group_category.json
@@ -294,7 +295,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
294
295
  version: '0'
295
296
  requirements: []
296
297
  rubyforge_project:
297
- rubygems_version: 2.4.5.1
298
+ rubygems_version: 2.4.5
298
299
  signing_key:
299
300
  specification_version: 4
300
301
  summary: Canvas API
@@ -392,6 +393,7 @@ test_files:
392
393
  - spec/fixtures/edited_group.json
393
394
  - spec/fixtures/enroll_student.json
394
395
  - spec/fixtures/enrollment_terms.json
396
+ - spec/fixtures/gradebook_history.json
395
397
  - spec/fixtures/group.json
396
398
  - spec/fixtures/group_categories.json
397
399
  - spec/fixtures/group_category.json