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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18e8a9967ca55563f34d7e643f9e53dcf8082fec
|
4
|
+
data.tar.gz: 9bd770609f95f745ba639caab6a72e32f419e6c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/bearcat/version.rb
CHANGED
@@ -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
|
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.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-
|
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.
|
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
|