bearcat 1.2.17 → 1.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1576ece83267a9212a00c6fc0a058e5e4ee1a91
|
4
|
+
data.tar.gz: d0b06c5fcb109b1e376c886e54cdccd040ee3eba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8a21cc34b9f32f669416ff4bd3e58680c31972aaf61cd7e4c171d0579c65f11455c27149d37705969e3f6f07bffcb7689d4c781f42c43b47edea9f6068d38ee
|
7
|
+
data.tar.gz: e8ddebc8984761cac508c28755c0593655bab12e222a95ef09673c1b03ab6045a59257ccccb20cf3c0bc366880c4cfb53998ba2317545fb4e2c4cd16b1c974a1
|
@@ -10,6 +10,10 @@ module Bearcat
|
|
10
10
|
get("/api/v1/group_categories/#{id}")
|
11
11
|
end
|
12
12
|
|
13
|
+
def edit_group_category(id, params={})
|
14
|
+
put("/api/v1/group_categories/#{id}", params)
|
15
|
+
end
|
16
|
+
|
13
17
|
def create_group_category(context, id, params={})
|
14
18
|
post("/api/v1/#{context}/#{id}/group_categories", params)
|
15
19
|
end
|
data/lib/bearcat/version.rb
CHANGED
@@ -28,4 +28,12 @@ describe Bearcat::Client::GroupCategories do
|
|
28
28
|
group_category["id"].should == 1
|
29
29
|
end
|
30
30
|
|
31
|
+
it 'edits an existing group category' do
|
32
|
+
name = "edited group category"
|
33
|
+
stub_put(@client, "/api/v1/group_categories/1").with(body: {"name" => name}).to_return(json_response("edited_group_category.json"))
|
34
|
+
group_category = @client.edit_group_category(1, { name: name })
|
35
|
+
group_category["name"].should == name
|
36
|
+
group_category["id"].should == 1
|
37
|
+
end
|
38
|
+
|
31
39
|
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"id": 1,
|
3
|
+
"name": "edited group category",
|
4
|
+
"role": null,
|
5
|
+
"self_signup": null,
|
6
|
+
"group_limit": null,
|
7
|
+
"auto_leader": null,
|
8
|
+
"context_type": "Course",
|
9
|
+
"course_id": 14,
|
10
|
+
"groups_count": 0,
|
11
|
+
"unassigned_users_count": 13,
|
12
|
+
"protected": false,
|
13
|
+
"allows_multiple_memberships": false,
|
14
|
+
"is_member": false
|
15
|
+
}
|
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.2.
|
4
|
+
version: 1.2.18
|
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: 2016-09-
|
11
|
+
date: 2016-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -173,7 +173,6 @@ files:
|
|
173
173
|
- spec/fixtures/account_admins.json
|
174
174
|
- spec/fixtures/account_courses.json
|
175
175
|
- spec/fixtures/account_grading_standards.json
|
176
|
-
- spec/fixtures/account_groups.json
|
177
176
|
- spec/fixtures/account_reports.json
|
178
177
|
- spec/fixtures/account_reports_index.json
|
179
178
|
- spec/fixtures/account_reports_result_success.json
|
@@ -231,6 +230,7 @@ files:
|
|
231
230
|
- spec/fixtures/discussion_entry_replies.json
|
232
231
|
- spec/fixtures/discussion_topics.json
|
233
232
|
- spec/fixtures/edited_group.json
|
233
|
+
- spec/fixtures/edited_group_category.json
|
234
234
|
- spec/fixtures/enroll_student.json
|
235
235
|
- spec/fixtures/enrollment_terms.json
|
236
236
|
- spec/fixtures/gradebook_history.json
|
@@ -297,7 +297,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
297
297
|
version: '0'
|
298
298
|
requirements: []
|
299
299
|
rubyforge_project:
|
300
|
-
rubygems_version: 2.
|
300
|
+
rubygems_version: 2.5.1
|
301
301
|
signing_key:
|
302
302
|
specification_version: 4
|
303
303
|
summary: Canvas API
|
@@ -337,7 +337,6 @@ test_files:
|
|
337
337
|
- spec/fixtures/account_admins.json
|
338
338
|
- spec/fixtures/account_courses.json
|
339
339
|
- spec/fixtures/account_grading_standards.json
|
340
|
-
- spec/fixtures/account_groups.json
|
341
340
|
- spec/fixtures/account_reports.json
|
342
341
|
- spec/fixtures/account_reports_index.json
|
343
342
|
- spec/fixtures/account_reports_result_success.json
|
@@ -395,6 +394,7 @@ test_files:
|
|
395
394
|
- spec/fixtures/discussion_entry_replies.json
|
396
395
|
- spec/fixtures/discussion_topics.json
|
397
396
|
- spec/fixtures/edited_group.json
|
397
|
+
- spec/fixtures/edited_group_category.json
|
398
398
|
- spec/fixtures/enroll_student.json
|
399
399
|
- spec/fixtures/enrollment_terms.json
|
400
400
|
- spec/fixtures/gradebook_history.json
|
@@ -1,42 +0,0 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"id":2,
|
4
|
-
"name":"2010",
|
5
|
-
"max_membership":null,
|
6
|
-
"is_public":false,
|
7
|
-
"join_level":"invitation_only",
|
8
|
-
"group_category_id":2,
|
9
|
-
"description":null,
|
10
|
-
"members_count":0,
|
11
|
-
"storage_quota_mb":50,
|
12
|
-
"context_type":"Account",
|
13
|
-
"account_id":1,
|
14
|
-
"avatar_url":null,
|
15
|
-
"role":null,
|
16
|
-
"leader":null,
|
17
|
-
"sis_group_id":null,
|
18
|
-
"sis_import_id":null,
|
19
|
-
"has_submission":false,
|
20
|
-
"concluded":false
|
21
|
-
},
|
22
|
-
{
|
23
|
-
"id":3,
|
24
|
-
"name":"2014",
|
25
|
-
"max_membership":null,
|
26
|
-
"is_public":false,
|
27
|
-
"join_level":"invitation_only",
|
28
|
-
"group_category_id":3,
|
29
|
-
"description":null,
|
30
|
-
"members_count":2,
|
31
|
-
"storage_quota_mb":50,
|
32
|
-
"context_type":"Account",
|
33
|
-
"account_id":1,
|
34
|
-
"avatar_url":null,
|
35
|
-
"role":null,
|
36
|
-
"leader":null,
|
37
|
-
"sis_group_id":null,
|
38
|
-
"sis_import_id":null,
|
39
|
-
"has_submission":false,
|
40
|
-
"concluded":false
|
41
|
-
}
|
42
|
-
]
|