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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b42383096ae3bee2a7828476a598ae39fb1801b
4
- data.tar.gz: a2e7fab4a1b28c74354c662931fce0a90a454a65
3
+ metadata.gz: 142fc4547f87872c4cf8a72ef5954a4cbf8e2f25
4
+ data.tar.gz: 61c821b9c19bd34ea24a112203c41d7cd397aeab
5
5
  SHA512:
6
- metadata.gz: edce1828c82d373be29f7281bba5896b510b69d5c9a5ac2a2c7697a2874463795c450ed08b68a479677b43f55bad670cb24d94298b718afae738ac5ccfaa160a
7
- data.tar.gz: be0b3fc5ed1dbd0d4af2efdfe0a9062af2bbd900e02185d99a9c8a0a4186b6042558825560d9a2e1fadc3541be87263fb5b0178eb91cd9dca2fc6e11fdade5f3
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
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.3.26' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.3.27' unless defined?(Bearcat::VERSION)
3
3
  end
@@ -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.26
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-09-24 00:00:00.000000000 Z
11
+ date: 2018-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake