bearcat 1.3.19 → 1.3.20
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 +5 -1
- data/lib/bearcat/version.rb +1 -1
- data/spec/bearcat/client/assignments_spec.rb +6 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0d20056587e89b7cbcf84479124a9b0f4acbff8
|
4
|
+
data.tar.gz: 2233ae2a035138e4a3c277c9401d7cd67518a9a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 788dcf706f3224e44d54982106025d53c36bb098dd6342ce69c090232dc31ee21e7e6161b3bd116cbcc3d52a106fbf22afd120649324196dc24f59e0271c3694
|
7
|
+
data.tar.gz: f1855b5714c88c240440728f3bd562439b7fe69d3f71e9d8ad9612536531eeabc7d1341f876f7aa05acdea4c74b4e5337bbdec3cef25d86bc312cf893d7ef94b
|
@@ -25,6 +25,10 @@ module Bearcat
|
|
25
25
|
def edit_assignment(course, assignment, params={})
|
26
26
|
put("/api/v1/courses/#{course}/assignments/#{assignment}", params)
|
27
27
|
end
|
28
|
+
|
29
|
+
def delete_assignment(course, assignment)
|
30
|
+
delete("/api/v1/courses/#{course}/assignments/#{assignment}")
|
31
|
+
end
|
28
32
|
end
|
29
33
|
end
|
30
|
-
end
|
34
|
+
end
|
data/lib/bearcat/version.rb
CHANGED
@@ -44,4 +44,10 @@ describe Bearcat::Client::Assignments do
|
|
44
44
|
assignment["id"].should == 1
|
45
45
|
end
|
46
46
|
|
47
|
+
it "deletes an assignment" do
|
48
|
+
stub_delete(@client, "/api/v1/courses/3/assignments/1").to_return(json_response("assignment.json"))
|
49
|
+
assignment = @client.delete_assignment(3, 1)
|
50
|
+
assignment["id"].should == 1
|
51
|
+
end
|
52
|
+
|
47
53
|
end
|
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.20
|
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: 2017-
|
11
|
+
date: 2017-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -319,7 +319,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
319
319
|
version: '0'
|
320
320
|
requirements: []
|
321
321
|
rubyforge_project:
|
322
|
-
rubygems_version: 2.
|
322
|
+
rubygems_version: 2.4.8
|
323
323
|
signing_key:
|
324
324
|
specification_version: 4
|
325
325
|
summary: Canvas API
|