bearcat 1.3.33 → 1.3.34
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a3f727c69d49f071c490b3ab4ee43221aae04605
|
|
4
|
+
data.tar.gz: 86167b2192aa6401ba20d2c4f7cc08d6a4bba8e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b20cc96215f7acb2385de1ae7d01a0c4b51ba1586a71b49e4b93525c6bb871994c0c2b465b4c85f7bed921bb5350fab61b69597f3b7d2285f2ecf0234fe57031
|
|
7
|
+
data.tar.gz: 5f0f495f82c2f372bddcb5d8f257a4abe3efcc7513059495313ba96aa221626161266b79fe7012dd4749fca7ee97bd2e1e99d0b9563d2a68488ec8ffd9e7807d
|
|
@@ -26,6 +26,10 @@ module Bearcat
|
|
|
26
26
|
delete("/api/v1/courses/#{course}/enrollments/#{enrollment}", params)
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
+
def reactivate_enrollment(course, enrollment, params={})
|
|
30
|
+
put("/api/v1/courses/#{course}/enrollments/#{enrollment}/reactivate", params)
|
|
31
|
+
end
|
|
32
|
+
|
|
29
33
|
end
|
|
30
34
|
end
|
|
31
35
|
end
|
data/lib/bearcat/version.rb
CHANGED
|
@@ -71,4 +71,14 @@ describe Bearcat::Client::Enrollments do
|
|
|
71
71
|
enrollment["enrollment_state"].should == "completed"
|
|
72
72
|
end
|
|
73
73
|
|
|
74
|
+
it "reactivates a students enrollment" do
|
|
75
|
+
stub_request(:put, "http://canvas.instructure.com/api/v1/courses/3/enrollments/1386/reactivate").to_return(json_response("reactivate_enrollment.json"))
|
|
76
|
+
enrollment = @client.reactivate_enrollment(3, 1386)
|
|
77
|
+
enrollment["course_id"].should == 3
|
|
78
|
+
enrollment["course_section_id"].should == 70
|
|
79
|
+
enrollment["id"].should == 1386
|
|
80
|
+
enrollment["role"].should == "StudentEnrollment"
|
|
81
|
+
enrollment["enrollment_state"].should == "active"
|
|
82
|
+
end
|
|
83
|
+
|
|
74
84
|
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{"associated_user_id": null,
|
|
2
|
+
"course_id": 3,
|
|
3
|
+
"course_section_id": 70,
|
|
4
|
+
"id": 1386,
|
|
5
|
+
"limit_privileges_to_course_section": false,
|
|
6
|
+
"root_account_id": 1,
|
|
7
|
+
"type": "StudentEnrollment",
|
|
8
|
+
"updated_at": "2013-06-27T10:05:15-06:00",
|
|
9
|
+
"user_id": 1,
|
|
10
|
+
"enrollment_state": "active",
|
|
11
|
+
"role": "StudentEnrollment",
|
|
12
|
+
"grades": {
|
|
13
|
+
"html_url": "http://localhost:3000/courses/310/grades/1",
|
|
14
|
+
"current_score": null,
|
|
15
|
+
"final_score": null,
|
|
16
|
+
"current_grade": null,
|
|
17
|
+
"final_grade": null
|
|
18
|
+
},
|
|
19
|
+
"html_url": "http://localhost:3000/courses/310/users/1"
|
|
20
|
+
}
|
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.3.
|
|
4
|
+
version: 1.3.34
|
|
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: 2019-04-
|
|
11
|
+
date: 2019-04-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -337,6 +337,7 @@ files:
|
|
|
337
337
|
- spec/fixtures/quizzes/course_quizzes.json
|
|
338
338
|
- spec/fixtures/quizzes/quiz_assignment_override.json
|
|
339
339
|
- spec/fixtures/quizzes/quiz_extension.json
|
|
340
|
+
- spec/fixtures/reactivate_enrollment.json
|
|
340
341
|
- spec/fixtures/report_history.json
|
|
341
342
|
- spec/fixtures/report_list.json
|
|
342
343
|
- spec/fixtures/report_status.json
|
|
@@ -510,6 +511,7 @@ test_files:
|
|
|
510
511
|
- spec/fixtures/create_course_discussion.json
|
|
511
512
|
- spec/fixtures/custom_food_data.json
|
|
512
513
|
- spec/fixtures/course_groups.json
|
|
514
|
+
- spec/fixtures/reactivate_enrollment.json
|
|
513
515
|
- spec/fixtures/account_courses.json
|
|
514
516
|
- spec/fixtures/calendar_events.json
|
|
515
517
|
- spec/fixtures/submissions/submission.json
|