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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e219bc570a9199d353523b15a11e3d67c7763ab
4
- data.tar.gz: 67ff7b8cee59f23d5b26d96f67e9a90b4f6075b3
3
+ metadata.gz: b0d20056587e89b7cbcf84479124a9b0f4acbff8
4
+ data.tar.gz: 2233ae2a035138e4a3c277c9401d7cd67518a9a7
5
5
  SHA512:
6
- metadata.gz: 5ca760c1a9675b4e2d3680b9b3745bde4ff857bca914926d6ab072a94c3968df6d6403c7c29905170546986d1ef8ef6b628933b2406f7311c6b0861ad92e5fde
7
- data.tar.gz: eb0823b7f22e7be129b0ec3c2190bfd6c152870ac72b493d69007278551790fb124b6d90f073e96abe1f40b45ffbbb2a102407d6c29348a303ab33215a6a8737
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
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.3.19' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.3.20' unless defined?(Bearcat::VERSION)
3
3
  end
@@ -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.19
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-10-20 00:00:00.000000000 Z
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.6.13
322
+ rubygems_version: 2.4.8
323
323
  signing_key:
324
324
  specification_version: 4
325
325
  summary: Canvas API