bearcat 1.5.8 → 1.5.9

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
  SHA256:
3
- metadata.gz: 150e150273fd4f18a8b31c135ffae24e9b2769f76c9b210312fa45442e9cc1ff
4
- data.tar.gz: 41c103177b839c4d5128e3872b1c821482cdc92f701e92a1aa3351b94e54d0b3
3
+ metadata.gz: eadcb68d96c1659e2a791f9025dc97bebab0a939abd082e557a07bc7d5d9d3af
4
+ data.tar.gz: 845d98257857be22d183a6398d24796c497b119dbb5e4bb03f52e541b32194a0
5
5
  SHA512:
6
- metadata.gz: a4c577806df77cade7a21c9d6b810e3e6166627f0d6066470e0057900e0485748e9fe164514e1c8297a73bdb91709a72a1d475cdb70e0b6078ecd3886792e4b6
7
- data.tar.gz: b69419ec898e265fa6c7d4c5dd64859966e145881fdc37d1f5583a194827d77ed782969c612d47d6e7aa72a8a11404e0a473fe52f5f21bd62fc87b3897ce92af
6
+ metadata.gz: ee15e31c94f045c403b9188cd960a3d1528e962a2722fbddbd8be1b51c5964b5bcccf5d97416a2d6b8e93ee4bb75a5f23b70cf1b7d00a7d3f29306a159421680
7
+ data.tar.gz: e70ca965ac8906ba5a41a40992b0d832f3440d473f3d653319692e11e16a671b1c7d57a9cac6d3fb360a06ef4c6a6d121197349579e9accb5617aa6c57fbe85c
@@ -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={})
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.5.8' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.5.9' unless defined?(Bearcat::VERSION)
3
3
  end
@@ -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.8
4
+ version: 1.5.9
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-08-30 00:00:00.000000000 Z
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