bearcat 1.3.26 → 1.3.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bearcat/client/assignments.rb +4 -0
- data/lib/bearcat/version.rb +1 -1
- data/spec/bearcat/client/assignments_spec.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 142fc4547f87872c4cf8a72ef5954a4cbf8e2f25
|
4
|
+
data.tar.gz: 61c821b9c19bd34ea24a112203c41d7cd397aeab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ad33603656783a8c52b4f16f89f38000f1dcb87eae16f3ff594bedfa4f37e47f723f960bbd045e997e792537fa5a0171d78786d089dd17fa218b935e1e19bdf
|
7
|
+
data.tar.gz: 1f853b8c9ae662b9c82dc576ba933ce29747e53c3d69328db1ff8e2991e2ca9399df48eb3d9e1684ec63000ba774051c39a8a4b4ae1fca70803a6ede7edbe701
|
@@ -22,6 +22,10 @@ module Bearcat
|
|
22
22
|
post("api/v1/courses/#{course}/assignments/#{assignment}/overrides", params)
|
23
23
|
end
|
24
24
|
|
25
|
+
def delete_assignment_override(course_id, assignment_id, override_id, params={})
|
26
|
+
delete("api/v1/courses/#{course_id}/assignments/#{assignment_id}/overrides/#{override_id}", params)
|
27
|
+
end
|
28
|
+
|
25
29
|
def batch_create_assignment_overrides(course_id, params)
|
26
30
|
post("/api/v1/courses/#{course_id}/assignments/overrides", params)
|
27
31
|
end
|
data/lib/bearcat/version.rb
CHANGED
@@ -36,6 +36,11 @@ describe Bearcat::Client::Assignments do
|
|
36
36
|
override["course_section_id"].should == 74
|
37
37
|
end
|
38
38
|
|
39
|
+
it "deletes assignment overrides" do
|
40
|
+
stub_delete(@client, "/api/v1/courses/3/assignments/1/overrides/2").to_return({})
|
41
|
+
@client.delete_assignment_override(3, 1, 2)
|
42
|
+
end
|
43
|
+
|
39
44
|
it "creates a new assignment" do
|
40
45
|
name = "new assignment"
|
41
46
|
stub_post(@client, "/api/v1/courses/1/assignments").with(body: {"assignment" => {"name" => name}}).to_return(json_response("created_assignment.json"))
|
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.27
|
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: 2018-
|
11
|
+
date: 2018-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|