bearcat 1.5.8 → 1.5.10
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/courses.rb +2 -0
- data/lib/bearcat/client_module.rb +1 -1
- data/lib/bearcat/version.rb +1 -1
- data/spec/bearcat/client/courses_spec.rb +8 -0
- data/spec/fixtures/course_settings.json +33 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a572e8a0be0c0e08e88144dcb2e34196a19730b8cfe420853661c77a84ec21ea
|
4
|
+
data.tar.gz: b0433358360ec8237c68207431aa1d5b268cb11f707c3f64ea2e3067967c8281
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e37d8c50672547e32348f305ae229f5ac19f8d9c8a576e589fb635ce47fd5315886a0e71bafbfd0978ea3afe50813c53e25d03265ded5b02f3d184e6a535d3e1
|
7
|
+
data.tar.gz: f6aefbbc962d95bc8770125b3d42be221af98b6a4d598c39f154eefc52d97ea97d245543c54057de0ca61916ea2465ad577a957543ef5ec47b589a1d089e554c
|
@@ -20,6 +20,8 @@ module Bearcat
|
|
20
20
|
|
21
21
|
# Performs effectively the same operation as #create_content_migration, but without the need to specify a file to be uploaded
|
22
22
|
post :copy_course, "content_migrations"
|
23
|
+
|
24
|
+
get :course_settings, 'settings'
|
23
25
|
end
|
24
26
|
|
25
27
|
def create_content_migration_with_both_responses(course, file_path, params={})
|
data/lib/bearcat/version.rb
CHANGED
@@ -74,6 +74,14 @@ describe Bearcat::Client::Sections do
|
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
+
it 'returns a course\'s settings' do
|
78
|
+
stub_get(@client, '/api/v1/courses/1/settings').to_return(json_response('course_settings.json'))
|
79
|
+
settings = @client.course_settings(1)
|
80
|
+
settings['allow_student_discussion_topics'].should == false
|
81
|
+
settings['allow_student_discussion_editing'].should == true
|
82
|
+
settings['allow_student_discussion_reporting'].should == false
|
83
|
+
end
|
84
|
+
|
77
85
|
it 'throws an error on a failed file upload' do
|
78
86
|
stub_post(@client, "/api/v1/courses/659/content_migrations").
|
79
87
|
with(:body => {"migration_type"=>"canvas_cartridge_importer", "pre_attachment"=>{"name"=>"cc.imscc", "size"=>"2034"}}).
|
@@ -0,0 +1,33 @@
|
|
1
|
+
{
|
2
|
+
"allow_student_discussion_topics": false,
|
3
|
+
"allow_student_discussion_editing": true,
|
4
|
+
"allow_student_discussion_reporting": false,
|
5
|
+
"allow_student_anonymous_discussion_topics": false,
|
6
|
+
"filter_speed_grader_by_student_group": false,
|
7
|
+
"grading_standard_enabled": false,
|
8
|
+
"grading_standard_id": null,
|
9
|
+
"grade_passback_setting": null,
|
10
|
+
"allow_student_organized_groups": true,
|
11
|
+
"hide_final_grades": true,
|
12
|
+
"hide_distribution_graphs": true,
|
13
|
+
"hide_sections_on_course_users_page": false,
|
14
|
+
"lock_all_announcements": true,
|
15
|
+
"usage_rights_required": false,
|
16
|
+
"restrict_student_past_view": false,
|
17
|
+
"restrict_student_future_view": false,
|
18
|
+
"restrict_quantitative_data": false,
|
19
|
+
"show_announcements_on_home_page": false,
|
20
|
+
"home_page_announcement_limit": 3,
|
21
|
+
"syllabus_course_summary": true,
|
22
|
+
"homeroom_course": false,
|
23
|
+
"image_url": null,
|
24
|
+
"image_id": null,
|
25
|
+
"image": null,
|
26
|
+
"banner_image_url": null,
|
27
|
+
"banner_image_id": null,
|
28
|
+
"banner_image": null,
|
29
|
+
"course_color": null,
|
30
|
+
"friendly_name": null,
|
31
|
+
"default_due_time": "23:59:59",
|
32
|
+
"conditional_release": true
|
33
|
+
}
|
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.5.
|
4
|
+
version: 1.5.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Instructure CustomDev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -317,6 +317,7 @@ files:
|
|
317
317
|
- spec/fixtures/course_grading_standards.json
|
318
318
|
- spec/fixtures/course_groups.json
|
319
319
|
- spec/fixtures/course_sections.json
|
320
|
+
- spec/fixtures/course_settings.json
|
320
321
|
- spec/fixtures/course_students.json
|
321
322
|
- spec/fixtures/create_course_discussion.json
|
322
323
|
- spec/fixtures/create_group_discussion.json
|
@@ -525,6 +526,7 @@ test_files:
|
|
525
526
|
- spec/fixtures/update_section.json
|
526
527
|
- spec/fixtures/user_logins.json
|
527
528
|
- spec/fixtures/paged_body.json
|
529
|
+
- spec/fixtures/course_settings.json
|
528
530
|
- spec/fixtures/outcomes.json
|
529
531
|
- spec/fixtures/discussion_entry_replies.json
|
530
532
|
- spec/fixtures/course_groups.json
|