bearcat 1.3.7 → 1.3.8

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: 410afb8f6177bf3e635f0fb7abc8dfd9e3f431ab
4
- data.tar.gz: a781a8b4ec7c352bc07a3fd87728916e3e92525a
3
+ metadata.gz: 18e8a9967ca55563f34d7e643f9e53dcf8082fec
4
+ data.tar.gz: 9bd770609f95f745ba639caab6a72e32f419e6c6
5
5
  SHA512:
6
- metadata.gz: 45e8c284733d60f869cdb5715c7e547a17df4c54c073aa74a74166ce52ccae9c4c01305f2277fc50c9d59e6e73ad4b74e9a40d0e60707a048e8d584b39ee642d
7
- data.tar.gz: 6145d78ce605af64cb9126b1a148c2439a4cb4e94fe54e9b3257705223cb91d74e86e4fbcbd3dfbafc0b142f765ab5561a69526ce09828b7be5b9f9e775b5422
6
+ metadata.gz: 2ef3aeed1f5bb6094fbf3f4fec911d7207d8d1f5a2c9a0ccdd16ebb1e762b61bfbe556c1fb0aed9231e23568bc79c626c8f2b26f23ae43364813c71c064209d1
7
+ data.tar.gz: 6b1645ccc91fd47090aab33ecf2064e1d703db6c749806fec8e24e0717848dae13ce3db76abe6308e4332f1061faf49e448bba570fc13ad46a6421d2502b6c30
@@ -17,6 +17,11 @@ module Bearcat
17
17
  def create_group_category(context, id, params={})
18
18
  post("/api/v1/#{context}/#{id}/group_categories", params)
19
19
  end
20
+
21
+ def delete_group_category(id, params={})
22
+ delete("/api/v1/group_categories/#{id}/", params)
23
+ end
24
+
20
25
  end
21
26
  end
22
27
  end
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.3.7' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.3.8' unless defined?(Bearcat::VERSION)
3
3
  end
@@ -36,4 +36,10 @@ describe Bearcat::Client::GroupCategories do
36
36
  group_category["id"].should == 1
37
37
  end
38
38
 
39
+ it 'deletes a group category' do
40
+ stub_delete(@client, "/api/v1/group_categories/1").to_return(json_response('delete_group_category.json'))
41
+ response = @client.delete_group_category(1)
42
+ response["delete"].should == true
43
+ end
44
+
39
45
  end
@@ -0,0 +1,3 @@
1
+ {
2
+ "delete": true
3
+ }
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.7
4
+ version: 1.3.8
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-01-24 00:00:00.000000000 Z
11
+ date: 2017-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -229,6 +229,7 @@ files:
229
229
  - spec/fixtures/custom_food_data.json
230
230
  - spec/fixtures/delete_course.json
231
231
  - spec/fixtures/delete_custom_data_scope.json
232
+ - spec/fixtures/delete_group_category.json
232
233
  - spec/fixtures/delete_section.json
233
234
  - spec/fixtures/deleted_conversation.json
234
235
  - spec/fixtures/deleted_group.json
@@ -307,7 +308,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
307
308
  version: '0'
308
309
  requirements: []
309
310
  rubyforge_project:
310
- rubygems_version: 2.5.1
311
+ rubygems_version: 2.4.8
311
312
  signing_key:
312
313
  specification_version: 4
313
314
  summary: Canvas API
@@ -402,6 +403,7 @@ test_files:
402
403
  - spec/fixtures/custom_food_data.json
403
404
  - spec/fixtures/delete_course.json
404
405
  - spec/fixtures/delete_custom_data_scope.json
406
+ - spec/fixtures/delete_group_category.json
405
407
  - spec/fixtures/delete_section.json
406
408
  - spec/fixtures/deleted_conversation.json
407
409
  - spec/fixtures/deleted_group.json