bearcat 1.5.34 → 1.5.36

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
  SHA256:
3
- metadata.gz: 4efbb8a21e14b67c67719db1a277dfae50d63b4d2ee498e33d6221a8df088ed7
4
- data.tar.gz: 236065689610b4d34b652881197e03cf92fd007c5ebd15d892838fad3791444f
3
+ metadata.gz: 0c1aa4cc552b9089c7aeba0bac9d8c6e6607f249397e0d4e3b9351346dc467b9
4
+ data.tar.gz: 467d992e8040ea5f79a89fda52bdce0ed944efd59fff85df165aa48c65604f44
5
5
  SHA512:
6
- metadata.gz: 14e20a797d21d1af6b429193f235114c8b65caa733e26288cce3fc6507e5deaa82f668e4a461f819aa75acb20518e7b106bf16abbbdad957211600ae3032cc0f
7
- data.tar.gz: d31adf9b9b18a383e6474ebbc9397f83fabafc1d8d6245eb70fd7f86a7db8f3d6e7fc51c3cc27997e75cf85d1828dc88312484207ed6905b9204f338a06f06a4
6
+ metadata.gz: 8394cf85848a727ebd888c20d76ad27f5d6335556eb949a1763b6ab584e746e9e3daf4195412c863333ae54d8d6abb792efe7b26ab79b3e0bf263972d3081f71
7
+ data.tar.gz: 04d083c01d107b8d0b71fe32e42a94e832c8c72b5ef48ff3b7958b6713c56b1b1d683626032557541dafd9995f8ce3c6278863aeb380e13422e921345881322d
@@ -71,6 +71,18 @@ module Badgrcat
71
71
  delete :delete_assertion
72
72
  end
73
73
  end
74
+
75
+ prefix "v2/backpack" do
76
+ prefix "/assertions" do
77
+ get :backpack_assertions
78
+ end
79
+ end
80
+
81
+ prefix "v2/users" do
82
+ prefix "/self" do
83
+ get :get_user_profile
84
+ end
85
+ end
74
86
  end
75
87
  end
76
88
  end
@@ -198,7 +198,7 @@ module Bearcat
198
198
  path = response.env[:url].path
199
199
  if path.match(/.*\/(courses||groups)\/\d+\/conferences/)
200
200
  key = 'conferences'
201
- elsif path.match(/.*\/accounts\/(?:(?:\d+~)?\d+|self)\/terms/)
201
+ elsif path.match(/.*\/accounts\/[^\/]+\/terms/)
202
202
  key = 'enrollment_terms'
203
203
  end
204
204
  end
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.5.34' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.5.36' unless defined?(Bearcat::VERSION)
3
3
  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.5.34
4
+ version: 1.5.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure CustomDev
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-19 00:00:00.000000000 Z
11
+ date: 2024-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -429,10 +429,10 @@ files:
429
429
  - spec/fixtures/user_page_views.json
430
430
  - spec/fixtures/user_profile.json
431
431
  - spec/helper.rb
432
- homepage:
432
+ homepage:
433
433
  licenses: []
434
434
  metadata: {}
435
- post_install_message:
435
+ post_install_message:
436
436
  rdoc_options: []
437
437
  require_paths:
438
438
  - lib
@@ -447,199 +447,199 @@ required_rubygems_version: !ruby/object:Gem::Requirement
447
447
  - !ruby/object:Gem::Version
448
448
  version: '0'
449
449
  requirements: []
450
- rubygems_version: 3.0.3.1
451
- signing_key:
450
+ rubygems_version: 3.5.16
451
+ signing_key:
452
452
  specification_version: 4
453
453
  summary: Canvas API
454
454
  test_files:
455
- - spec/bearcat_spec.rb
456
- - spec/bearcat/client_spec.rb
457
455
  - spec/bearcat/api_array_spec.rb
458
- - spec/bearcat/rate_limiting_spec.rb
459
- - spec/bearcat/stub_bearcat_spec.rb
460
- - spec/bearcat/client/canvas_files_spec.rb
461
- - spec/bearcat/client/folders_spec.rb
462
- - spec/bearcat/client/conferences_spec.rb
463
- - spec/bearcat/client/conversations_spec.rb
464
- - spec/bearcat/client/outcome_groups_spec.rb
456
+ - spec/bearcat/client/accounts_spec.rb
457
+ - spec/bearcat/client/analytics_spec.rb
465
458
  - spec/bearcat/client/assignment_groups_spec.rb
466
459
  - spec/bearcat/client/assignments_spec.rb
467
- - spec/bearcat/client/rubric_association_spec.rb
468
- - spec/bearcat/client/o_auth2_spec.rb
469
- - spec/bearcat/client/search_spec.rb
470
- - spec/bearcat/client/calendar_events_spec.rb
471
- - spec/bearcat/client/group_memberships_spec.rb
472
- - spec/bearcat/client/pages_spec.rb
473
- - spec/bearcat/client/modules_spec.rb
474
- - spec/bearcat/client/discussions_spec.rb
475
- - spec/bearcat/client/files_spec.rb
476
- - spec/bearcat/client/roles_spec.rb
477
- - spec/bearcat/client/graph_ql_spec.rb
478
- - spec/bearcat/client/group_categories_spec.rb
479
- - spec/bearcat/client/rubric_assessment_spec.rb
480
460
  - spec/bearcat/client/blueprint_courses_spec.rb
481
- - spec/bearcat/client/submissions_spec.rb
482
- - spec/bearcat/client/module_items_spec.rb
461
+ - spec/bearcat/client/calendar_events_spec.rb
462
+ - spec/bearcat/client/canvas_files_spec.rb
463
+ - spec/bearcat/client/conferences_spec.rb
464
+ - spec/bearcat/client/content_exports_spec.rb
483
465
  - spec/bearcat/client/content_migrations_spec.rb
466
+ - spec/bearcat/client/conversations_spec.rb
467
+ - spec/bearcat/client/courses_spec.rb
484
468
  - spec/bearcat/client/custom_gradebook_columns_spec.rb
469
+ - spec/bearcat/client/discussions_spec.rb
485
470
  - spec/bearcat/client/enrollments_spec.rb
486
- - spec/bearcat/client/analytics_spec.rb
487
- - spec/bearcat/client/content_exports_spec.rb
488
471
  - spec/bearcat/client/external_tools_spec.rb
489
- - spec/bearcat/client/rubric_spec.rb
490
- - spec/bearcat/client/accounts_spec.rb
472
+ - spec/bearcat/client/files_spec.rb
473
+ - spec/bearcat/client/folders_spec.rb
474
+ - spec/bearcat/client/graph_ql_spec.rb
475
+ - spec/bearcat/client/group_categories_spec.rb
476
+ - spec/bearcat/client/group_membership_spec.rb
477
+ - spec/bearcat/client/group_memberships_spec.rb
478
+ - spec/bearcat/client/groups_spec.rb
491
479
  - spec/bearcat/client/learning_outcomes_spec.rb
480
+ - spec/bearcat/client/module_items_spec.rb
481
+ - spec/bearcat/client/modules_spec.rb
482
+ - spec/bearcat/client/o_auth2_spec.rb
483
+ - spec/bearcat/client/outcome_groups_spec.rb
492
484
  - spec/bearcat/client/outcomes_spec.rb
493
- - spec/bearcat/client/courses_spec.rb
485
+ - spec/bearcat/client/pages_spec.rb
486
+ - spec/bearcat/client/quizzes_spec.rb
494
487
  - spec/bearcat/client/reports_spec.rb
495
- - spec/bearcat/client/users_spec.rb
488
+ - spec/bearcat/client/roles_spec.rb
489
+ - spec/bearcat/client/rubric_assessment_spec.rb
490
+ - spec/bearcat/client/rubric_association_spec.rb
491
+ - spec/bearcat/client/rubric_spec.rb
492
+ - spec/bearcat/client/search_spec.rb
496
493
  - spec/bearcat/client/sections_spec.rb
497
- - spec/bearcat/client/group_membership_spec.rb
498
- - spec/bearcat/client/groups_spec.rb
499
- - spec/bearcat/client/quizzes_spec.rb
500
- - spec/helper.rb
494
+ - spec/bearcat/client/submissions_spec.rb
495
+ - spec/bearcat/client/users_spec.rb
496
+ - spec/bearcat/client_spec.rb
497
+ - spec/bearcat/rate_limiting_spec.rb
498
+ - spec/bearcat/stub_bearcat_spec.rb
499
+ - spec/bearcat_spec.rb
500
+ - spec/fixtures/access_token.json
501
+ - spec/fixtures/account_admin_create.json
502
+ - spec/fixtures/account_admin_delete.json
503
+ - spec/fixtures/account_admins.json
504
+ - spec/fixtures/account_courses.json
501
505
  - spec/fixtures/account_grading_standards.json
506
+ - spec/fixtures/account_groups.json
507
+ - spec/fixtures/account_reports.json
508
+ - spec/fixtures/account_reports_index.json
509
+ - spec/fixtures/account_reports_result_success.json
510
+ - spec/fixtures/account_reports_start_result.json
511
+ - spec/fixtures/account_role.json
512
+ - spec/fixtures/account_roles.json
513
+ - spec/fixtures/account_sis_imports.json
514
+ - spec/fixtures/account_sub_accounts.json
515
+ - spec/fixtures/account_user.json
516
+ - spec/fixtures/account_users.json
517
+ - spec/fixtures/accounts.json
502
518
  - spec/fixtures/add_custom_user_data.json
519
+ - spec/fixtures/add_user.json
520
+ - spec/fixtures/assignment.json
503
521
  - spec/fixtures/assignment_group.json
504
- - spec/fixtures/account_groups.json
505
- - spec/fixtures/update_outcome.json
506
- - spec/fixtures/section_enrollments.json
507
- - spec/fixtures/outcome_groups.json
508
- - spec/fixtures/assignments.json
509
- - spec/fixtures/course_files.json
522
+ - spec/fixtures/assignment_groups.json
510
523
  - spec/fixtures/assignment_section_override.json
511
- - spec/fixtures/delete_course.json
512
- - spec/fixtures/course_folder.json
513
- - spec/fixtures/ok.json
514
- - spec/fixtures/account_sub_accounts.json
515
- - spec/fixtures/course_sections.json
516
- - spec/fixtures/merge_user.json
524
+ - spec/fixtures/assignments.json
517
525
  - spec/fixtures/bearcat.jpg
518
- - spec/fixtures/create_group_discussion.json
519
- - spec/fixtures/course_enrollments.json
520
- - spec/fixtures/account_users.json
521
- - spec/fixtures/no_custom_data.json
522
- - spec/fixtures/communication_channels.json
523
- - spec/fixtures/edited_group_category.json
524
- - spec/fixtures/rubric_assessment.json
525
- - spec/fixtures/paged_body.json
526
- - spec/fixtures/canvas_files/upload_success.json
526
+ - spec/fixtures/blueprint_migration.json
527
+ - spec/fixtures/blueprint_subscriptions.json
528
+ - spec/fixtures/blueprint_template.json
529
+ - spec/fixtures/blueprint_update_assocations_success.json
530
+ - spec/fixtures/calendar_event.json
531
+ - spec/fixtures/calendar_events.json
527
532
  - spec/fixtures/canvas_files/declare_file.json
528
- - spec/fixtures/account_reports.json
529
- - spec/fixtures/outcomes.json
530
- - spec/fixtures/search_find_recipients.json
531
- - spec/fixtures/content_migration_files/upload_success.json
533
+ - spec/fixtures/canvas_files/upload_success.json
534
+ - spec/fixtures/cc.imscc
535
+ - spec/fixtures/communication_channels.json
536
+ - spec/fixtures/conclude_enrollment.json
537
+ - spec/fixtures/content_export.json
532
538
  - spec/fixtures/content_migration_files/content_migration.json
533
539
  - spec/fixtures/content_migration_files/response.json
534
- - spec/fixtures/created_assignment.json
540
+ - spec/fixtures/content_migration_files/upload_success.json
541
+ - spec/fixtures/conversation.json
542
+ - spec/fixtures/course.json
535
543
  - spec/fixtures/course_conferences.json
544
+ - spec/fixtures/course_copy.json
545
+ - spec/fixtures/course_enrollments.json
546
+ - spec/fixtures/course_files.json
547
+ - spec/fixtures/course_folder.json
548
+ - spec/fixtures/course_folders.json
549
+ - spec/fixtures/course_grading_standards.json
550
+ - spec/fixtures/course_groups.json
551
+ - spec/fixtures/course_sections.json
552
+ - spec/fixtures/course_settings.json
553
+ - spec/fixtures/course_students.json
554
+ - spec/fixtures/create_course_discussion.json
555
+ - spec/fixtures/create_group_discussion.json
536
556
  - spec/fixtures/create_outcome_in_group.json
537
- - spec/fixtures/delete_custom_data_scope.json
538
- - spec/fixtures/created_group_category.json
539
- - spec/fixtures/created_course.json
540
- - spec/fixtures/assignment_groups.json
541
- - spec/fixtures/section.json
542
557
  - spec/fixtures/create_section.json
543
- - spec/fixtures/user_page_views.json
544
- - spec/fixtures/account_admin_create.json
545
- - spec/fixtures/assignment.json
546
- - spec/fixtures/calendar_event.json
547
- - spec/fixtures/blueprint_subscriptions.json
548
- - spec/fixtures/blueprint_update_assocations_success.json
549
- - spec/fixtures/course.json
550
- - spec/fixtures/rubric_association.json
551
- - spec/fixtures/external_tools.json
552
- - spec/fixtures/conversation.json
553
- - spec/fixtures/external_tool.json
554
- - spec/fixtures/course_students.json
555
- - spec/fixtures/updated_course.json
556
- - spec/fixtures/discussion_topics.json
557
- - spec/fixtures/user_enrollments.json
558
- - spec/fixtures/account_roles.json
559
- - spec/fixtures/add_user.json
560
- - spec/fixtures/discussion_entry_replies.json
561
- - spec/fixtures/report_history.json
562
- - spec/fixtures/gradebook_history.json
563
- - spec/fixtures/account_sis_imports.json
564
- - spec/fixtures/update_section.json
565
- - spec/fixtures/conclude_enrollment.json
566
- - spec/fixtures/start_report.json
558
+ - spec/fixtures/created_assignment.json
559
+ - spec/fixtures/created_course.json
560
+ - spec/fixtures/created_group.json
561
+ - spec/fixtures/created_group_category.json
562
+ - spec/fixtures/created_group_membership.json
563
+ - spec/fixtures/created_module.json
567
564
  - spec/fixtures/custom_data.json
568
- - spec/fixtures/rubric.json
569
- - spec/fixtures/account_role.json
570
- - spec/fixtures/update_outcome_group.json
571
- - spec/fixtures/module_item.json
572
- - spec/fixtures/report_status.json
573
- - spec/fixtures/enroll_student.json
574
- - spec/fixtures/group_category.json
575
- - spec/fixtures/delete_group_category.json
565
+ - spec/fixtures/custom_food_data.json
566
+ - spec/fixtures/custom_gradebook_columns/column_data.json
567
+ - spec/fixtures/custom_gradebook_columns/custom_gradebook_column.json
568
+ - spec/fixtures/custom_gradebook_columns/custom_gradebook_columns.json
569
+ - spec/fixtures/custom_gradebook_columns/gradebook_column_progress.json
576
570
  - spec/fixtures/dashboard.json
577
- - spec/fixtures/edited_group.json
571
+ - spec/fixtures/delete_course.json
572
+ - spec/fixtures/delete_custom_data_scope.json
573
+ - spec/fixtures/delete_group_category.json
574
+ - spec/fixtures/delete_section.json
575
+ - spec/fixtures/deleted_conversation.json
576
+ - spec/fixtures/deleted_group.json
578
577
  - spec/fixtures/department_level_participation.json
579
- - spec/fixtures/outcome_result.json
580
- - spec/fixtures/file.csv
581
- - spec/fixtures/course_copy.json
582
- - spec/fixtures/user_logins.json
583
- - spec/fixtures/module_item_sequence.json
584
- - spec/fixtures/course_settings.json
578
+ - spec/fixtures/department_level_statistics.json
579
+ - spec/fixtures/discussion_entries.json
580
+ - spec/fixtures/discussion_entry_replies.json
581
+ - spec/fixtures/discussion_topic.json
582
+ - spec/fixtures/discussion_topics.json
583
+ - spec/fixtures/edited_group.json
584
+ - spec/fixtures/edited_group_category.json
585
+ - spec/fixtures/enroll_student.json
585
586
  - spec/fixtures/enrollment_terms.json
586
- - spec/fixtures/blueprint_migration.json
587
- - spec/fixtures/cc.imscc
588
- - spec/fixtures/user_profile.json
589
- - spec/fixtures/create_course_discussion.json
590
- - spec/fixtures/custom_food_data.json
591
- - spec/fixtures/created_module.json
592
- - spec/fixtures/course_groups.json
593
- - spec/fixtures/reactivate_enrollment.json
594
- - spec/fixtures/blueprint_template.json
595
- - spec/fixtures/account_courses.json
596
- - spec/fixtures/calendar_events.json
597
- - spec/fixtures/submissions/submission.json
598
- - spec/fixtures/link_unlink_outcome.json
599
- - spec/fixtures/account_reports_index.json
600
- - spec/fixtures/module_items.json
601
- - spec/fixtures/access_token.json
602
- - spec/fixtures/progress.json
603
- - spec/fixtures/module.json
587
+ - spec/fixtures/external_tool.json
588
+ - spec/fixtures/external_tools.json
589
+ - spec/fixtures/file.csv
590
+ - spec/fixtures/gradebook_history.json
591
+ - spec/fixtures/graph_ql_scores.json
592
+ - spec/fixtures/group.json
604
593
  - spec/fixtures/group_categories.json
605
- - spec/fixtures/course_folders.json
606
- - spec/fixtures/department_level_statistics.json
607
- - spec/fixtures/account_admin_delete.json
608
- - spec/fixtures/account_reports_result_success.json
609
- - spec/fixtures/deleted_conversation.json
594
+ - spec/fixtures/group_category.json
595
+ - spec/fixtures/group_category_groups.json
596
+ - spec/fixtures/group_conferences.json
597
+ - spec/fixtures/group_membership.json
610
598
  - spec/fixtures/learning_outcome.json
611
- - spec/fixtures/user_details.json
612
- - spec/fixtures/outcome_group_import.json
599
+ - spec/fixtures/link_unlink_outcome.json
600
+ - spec/fixtures/merge_user.json
601
+ - spec/fixtures/module.json
602
+ - spec/fixtures/module_item.json
603
+ - spec/fixtures/module_item_sequence.json
604
+ - spec/fixtures/module_items.json
613
605
  - spec/fixtures/modules.json
614
- - spec/fixtures/group.json
606
+ - spec/fixtures/no_custom_data.json
607
+ - spec/fixtures/ok.json
608
+ - spec/fixtures/outcome_group_import.json
609
+ - spec/fixtures/outcome_groups.json
610
+ - spec/fixtures/outcome_result.json
615
611
  - spec/fixtures/outcome_subgroup.json
616
612
  - spec/fixtures/outcome_subgroups.json
617
- - spec/fixtures/delete_section.json
618
- - spec/fixtures/account_user.json
619
- - spec/fixtures/accounts.json
620
- - spec/fixtures/account_admins.json
621
- - spec/fixtures/report_list.json
622
- - spec/fixtures/group_membership.json
623
- - spec/fixtures/quizzes/course_quizzes.json
613
+ - spec/fixtures/outcomes.json
614
+ - spec/fixtures/paged_body.json
615
+ - spec/fixtures/pages.json
616
+ - spec/fixtures/progress.json
617
+ - spec/fixtures/quizzes/course_quiz.json
624
618
  - spec/fixtures/quizzes/course_quiz_questions.json
619
+ - spec/fixtures/quizzes/course_quizzes.json
625
620
  - spec/fixtures/quizzes/quiz_assignment_override.json
626
621
  - spec/fixtures/quizzes/quiz_extension.json
627
- - spec/fixtures/quizzes/course_quiz.json
628
- - spec/fixtures/content_export.json
629
- - spec/fixtures/created_group.json
630
- - spec/fixtures/pages.json
631
- - spec/fixtures/discussion_entries.json
622
+ - spec/fixtures/reactivate_enrollment.json
623
+ - spec/fixtures/report_history.json
624
+ - spec/fixtures/report_list.json
625
+ - spec/fixtures/report_status.json
626
+ - spec/fixtures/rubric.json
627
+ - spec/fixtures/rubric_assessment.json
628
+ - spec/fixtures/rubric_association.json
629
+ - spec/fixtures/search_find_recipients.json
630
+ - spec/fixtures/section.json
631
+ - spec/fixtures/section_enrollments.json
632
632
  - spec/fixtures/single_account.json
633
- - spec/fixtures/group_category_groups.json
634
- - spec/fixtures/created_group_membership.json
633
+ - spec/fixtures/start_report.json
634
+ - spec/fixtures/submissions/submission.json
635
+ - spec/fixtures/update_outcome.json
636
+ - spec/fixtures/update_outcome_group.json
637
+ - spec/fixtures/update_section.json
638
+ - spec/fixtures/updated_course.json
635
639
  - spec/fixtures/user_avatars.json
636
- - spec/fixtures/graph_ql_scores.json
637
- - spec/fixtures/custom_gradebook_columns/gradebook_column_progress.json
638
- - spec/fixtures/custom_gradebook_columns/custom_gradebook_column.json
639
- - spec/fixtures/custom_gradebook_columns/custom_gradebook_columns.json
640
- - spec/fixtures/custom_gradebook_columns/column_data.json
641
- - spec/fixtures/account_reports_start_result.json
642
- - spec/fixtures/course_grading_standards.json
643
- - spec/fixtures/group_conferences.json
644
- - spec/fixtures/discussion_topic.json
645
- - spec/fixtures/deleted_group.json
640
+ - spec/fixtures/user_details.json
641
+ - spec/fixtures/user_enrollments.json
642
+ - spec/fixtures/user_logins.json
643
+ - spec/fixtures/user_page_views.json
644
+ - spec/fixtures/user_profile.json
645
+ - spec/helper.rb