bearcat 1.3.25 → 1.3.26

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: e453d5b28b6a865d7c7e2767a52eb564087dee73
4
- data.tar.gz: 1b426aa3e0362c42a66ec4320edf59ddb4bc5ab9
3
+ metadata.gz: 4b42383096ae3bee2a7828476a598ae39fb1801b
4
+ data.tar.gz: a2e7fab4a1b28c74354c662931fce0a90a454a65
5
5
  SHA512:
6
- metadata.gz: 35643b83baec2ca929c840c15f9431f928d83bf6bbefa5002d7b60f1d2bde7dbacca6e9286a4d419fe2ef89f366e3b04e3022e49f2301411abc3d4e825543b8d
7
- data.tar.gz: cdfbe163f6a2e2492177609a7badb7d8d82e490c08a67e1d82a409762324c7c37811e564ac6788fb2d9940b477e2a85c7b2f3457187fb1a76a1fd43d556cfb02
6
+ metadata.gz: edce1828c82d373be29f7281bba5896b510b69d5c9a5ac2a2c7697a2874463795c450ed08b68a479677b43f55bad670cb24d94298b718afae738ac5ccfaa160a
7
+ data.tar.gz: be0b3fc5ed1dbd0d4af2efdfe0a9062af2bbd900e02185d99a9c8a0a4186b6042558825560d9a2e1fadc3541be87263fb5b0178eb91cd9dca2fc6e11fdade5f3
@@ -75,6 +75,12 @@ module Bearcat
75
75
  @link_hash = {}
76
76
  end
77
77
 
78
+ def all_pages_each(page_count = 50, &block)
79
+ each_page(page_count) do |page|
80
+ page.each &block
81
+ end
82
+ end
83
+
78
84
  def all_pages!(page_count = 50)
79
85
  if pages?
80
86
  @page_count = page_count
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.3.25' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.3.26' 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.3.25
4
+ version: 1.3.26
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: 2018-08-23 00:00:00.000000000 Z
11
+ date: 2018-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -332,171 +332,170 @@ signing_key:
332
332
  specification_version: 4
333
333
  summary: Canvas API
334
334
  test_files:
335
+ - spec/bearcat_spec.rb
336
+ - spec/bearcat/client_spec.rb
337
+ - spec/bearcat/group_memberships_spec.rb
335
338
  - spec/bearcat/api_array_spec.rb
336
- - spec/bearcat/client/accounts_spec.rb
337
- - spec/bearcat/client/analytics_spec.rb
338
- - spec/bearcat/client/assignment_groups_spec.rb
339
- - spec/bearcat/client/assignments_spec.rb
340
- - spec/bearcat/client/calendar_events_spec.rb
341
339
  - spec/bearcat/client/canvas_files_spec.rb
340
+ - spec/bearcat/client/folders_spec.rb
342
341
  - spec/bearcat/client/conferences_spec.rb
343
- - spec/bearcat/client/content_exports_spec.rb
344
- - spec/bearcat/client/content_migrations_spec.rb
345
342
  - spec/bearcat/client/conversations_spec.rb
346
- - spec/bearcat/client/courses_spec.rb
347
- - spec/bearcat/client/custom_gradebook_columns_spec.rb
343
+ - spec/bearcat/client/outcome_groups_spec.rb
344
+ - spec/bearcat/client/assignment_groups_spec.rb
345
+ - spec/bearcat/client/assignments_spec.rb
346
+ - spec/bearcat/client/o_auth2_spec.rb
347
+ - spec/bearcat/client/search_spec.rb
348
+ - spec/bearcat/client/calendar_events_spec.rb
349
+ - spec/bearcat/client/pages_spec.rb
350
+ - spec/bearcat/client/modules_spec.rb
348
351
  - spec/bearcat/client/discussions_spec.rb
349
- - spec/bearcat/client/enrollments_spec.rb
350
- - spec/bearcat/client/external_tools_spec.rb
351
352
  - spec/bearcat/client/files_spec.rb
352
- - spec/bearcat/client/folders_spec.rb
353
353
  - spec/bearcat/client/group_categories_spec.rb
354
- - spec/bearcat/client/group_membership_spec.rb
355
- - spec/bearcat/client/groups_spec.rb
354
+ - spec/bearcat/client/submissions_spec.rb
356
355
  - spec/bearcat/client/module_items_spec.rb
357
- - spec/bearcat/client/modules_spec.rb
358
- - spec/bearcat/client/o_auth2_spec.rb
359
- - spec/bearcat/client/outcome_groups_spec.rb
356
+ - spec/bearcat/client/content_migrations_spec.rb
357
+ - spec/bearcat/client/custom_gradebook_columns_spec.rb
358
+ - spec/bearcat/client/enrollments_spec.rb
359
+ - spec/bearcat/client/analytics_spec.rb
360
+ - spec/bearcat/client/content_exports_spec.rb
361
+ - spec/bearcat/client/external_tools_spec.rb
362
+ - spec/bearcat/client/accounts_spec.rb
360
363
  - spec/bearcat/client/outcomes_spec.rb
361
- - spec/bearcat/client/pages_spec.rb
362
- - spec/bearcat/client/quizzes_spec.rb
364
+ - spec/bearcat/client/courses_spec.rb
363
365
  - spec/bearcat/client/reports_spec.rb
364
- - spec/bearcat/client/search_spec.rb
365
- - spec/bearcat/client/sections_spec.rb
366
- - spec/bearcat/client/submissions_spec.rb
367
366
  - spec/bearcat/client/users_spec.rb
368
- - spec/bearcat/client_spec.rb
369
- - spec/bearcat/group_memberships_spec.rb
370
- - spec/bearcat_spec.rb
371
- - spec/fixtures/access_token.json
372
- - spec/fixtures/account_admin_create.json
373
- - spec/fixtures/account_admin_delete.json
374
- - spec/fixtures/account_admins.json
375
- - spec/fixtures/account_courses.json
367
+ - spec/bearcat/client/sections_spec.rb
368
+ - spec/bearcat/client/group_membership_spec.rb
369
+ - spec/bearcat/client/groups_spec.rb
370
+ - spec/bearcat/client/quizzes_spec.rb
371
+ - spec/helper.rb
376
372
  - spec/fixtures/account_grading_standards.json
377
- - spec/fixtures/account_groups.json
378
- - spec/fixtures/account_reports.json
379
- - spec/fixtures/account_reports_index.json
380
- - spec/fixtures/account_reports_result_success.json
381
- - spec/fixtures/account_reports_start_result.json
382
- - spec/fixtures/account_roles.json
383
- - spec/fixtures/account_sis_imports.json
384
- - spec/fixtures/account_sub_accounts.json
385
- - spec/fixtures/account_user.json
386
- - spec/fixtures/account_users.json
387
- - spec/fixtures/accounts.json
388
373
  - spec/fixtures/add_custom_user_data.json
389
- - spec/fixtures/add_user.json
390
- - spec/fixtures/assignment.json
391
374
  - spec/fixtures/assignment_group.json
392
- - spec/fixtures/assignment_groups.json
393
- - spec/fixtures/assignment_section_override.json
375
+ - spec/fixtures/account_groups.json
376
+ - spec/fixtures/update_outcome.json
377
+ - spec/fixtures/section_enrollments.json
378
+ - spec/fixtures/outcome_groups.json
394
379
  - spec/fixtures/assignments.json
380
+ - spec/fixtures/course_files.json
381
+ - spec/fixtures/assignment_section_override.json
382
+ - spec/fixtures/delete_course.json
383
+ - spec/fixtures/ok.json
384
+ - spec/fixtures/account_sub_accounts.json
385
+ - spec/fixtures/course_sections.json
386
+ - spec/fixtures/merge_user.json
395
387
  - spec/fixtures/bearcat.jpg
396
- - spec/fixtures/calendar_event.json
397
- - spec/fixtures/calendar_events.json
398
- - spec/fixtures/canvas_files/declare_file.json
399
- - spec/fixtures/canvas_files/upload_success.json
400
- - spec/fixtures/cc.imscc
388
+ - spec/fixtures/create_group_discussion.json
389
+ - spec/fixtures/course_enrollments.json
390
+ - spec/fixtures/account_users.json
391
+ - spec/fixtures/no_custom_data.json
401
392
  - spec/fixtures/communication_channels.json
402
- - spec/fixtures/conclude_enrollment.json
403
- - spec/fixtures/content_export.json
393
+ - spec/fixtures/edited_group_category.json
394
+ - spec/fixtures/paged_body.json
395
+ - spec/fixtures/canvas_files/upload_success.json
396
+ - spec/fixtures/canvas_files/declare_file.json
397
+ - spec/fixtures/account_reports.json
398
+ - spec/fixtures/outcomes.json
399
+ - spec/fixtures/search_find_recipients.json
400
+ - spec/fixtures/content_migration_files/upload_success.json
404
401
  - spec/fixtures/content_migration_files/content_migration.json
405
402
  - spec/fixtures/content_migration_files/response.json
406
- - spec/fixtures/content_migration_files/upload_success.json
407
- - spec/fixtures/conversation.json
408
- - spec/fixtures/course.json
403
+ - spec/fixtures/created_assignment.json
409
404
  - spec/fixtures/course_conferences.json
410
- - spec/fixtures/course_copy.json
411
- - spec/fixtures/course_enrollments.json
412
- - spec/fixtures/course_files.json
413
- - spec/fixtures/course_folders.json
414
- - spec/fixtures/course_grading_standards.json
415
- - spec/fixtures/course_groups.json
416
- - spec/fixtures/course_sections.json
417
- - spec/fixtures/course_students.json
418
- - spec/fixtures/create_course_discussion.json
419
- - spec/fixtures/create_group_discussion.json
420
405
  - spec/fixtures/create_outcome_in_group.json
421
- - spec/fixtures/create_section.json
422
- - spec/fixtures/created_assignment.json
423
- - spec/fixtures/created_course.json
424
- - spec/fixtures/created_group.json
406
+ - spec/fixtures/delete_custom_data_scope.json
425
407
  - spec/fixtures/created_group_category.json
426
- - spec/fixtures/created_group_membership.json
408
+ - spec/fixtures/created_course.json
409
+ - spec/fixtures/assignment_groups.json
410
+ - spec/fixtures/section.json
411
+ - spec/fixtures/create_section.json
412
+ - spec/fixtures/user_page_views.json
413
+ - spec/fixtures/account_admin_create.json
414
+ - spec/fixtures/assignment.json
415
+ - spec/fixtures/calendar_event.json
416
+ - spec/fixtures/course.json
417
+ - spec/fixtures/external_tools.json
418
+ - spec/fixtures/conversation.json
419
+ - spec/fixtures/external_tool.json
420
+ - spec/fixtures/course_students.json
421
+ - spec/fixtures/updated_course.json
422
+ - spec/fixtures/discussion_topics.json
423
+ - spec/fixtures/user_enrollments.json
424
+ - spec/fixtures/account_roles.json
425
+ - spec/fixtures/add_user.json
426
+ - spec/fixtures/discussion_entry_replies.json
427
+ - spec/fixtures/report_history.json
428
+ - spec/fixtures/gradebook_history.json
429
+ - spec/fixtures/account_sis_imports.json
430
+ - spec/fixtures/update_section.json
431
+ - spec/fixtures/conclude_enrollment.json
432
+ - spec/fixtures/start_report.json
427
433
  - spec/fixtures/custom_data.json
428
- - spec/fixtures/custom_food_data.json
429
- - spec/fixtures/custom_gradebook_columns/column_data.json
430
- - spec/fixtures/custom_gradebook_columns/custom_gradebook_column.json
431
- - spec/fixtures/custom_gradebook_columns/custom_gradebook_columns.json
432
- - spec/fixtures/dashboard.json
433
- - spec/fixtures/delete_course.json
434
- - spec/fixtures/delete_custom_data_scope.json
434
+ - spec/fixtures/update_outcome_group.json
435
+ - spec/fixtures/module_item.json
436
+ - spec/fixtures/report_status.json
437
+ - spec/fixtures/enroll_student.json
438
+ - spec/fixtures/group_category.json
435
439
  - spec/fixtures/delete_group_category.json
436
- - spec/fixtures/delete_section.json
437
- - spec/fixtures/deleted_conversation.json
438
- - spec/fixtures/deleted_group.json
439
- - spec/fixtures/department_level_participation.json
440
- - spec/fixtures/department_level_statistics.json
441
- - spec/fixtures/discussion_entries.json
442
- - spec/fixtures/discussion_entry_replies.json
443
- - spec/fixtures/discussion_topic.json
444
- - spec/fixtures/discussion_topics.json
440
+ - spec/fixtures/dashboard.json
445
441
  - spec/fixtures/edited_group.json
446
- - spec/fixtures/edited_group_category.json
447
- - spec/fixtures/enroll_student.json
448
- - spec/fixtures/enrollment_terms.json
449
- - spec/fixtures/external_tool.json
450
- - spec/fixtures/external_tools.json
442
+ - spec/fixtures/department_level_participation.json
443
+ - spec/fixtures/outcome_result.json
451
444
  - spec/fixtures/file.csv
452
- - spec/fixtures/gradebook_history.json
453
- - spec/fixtures/group.json
454
- - spec/fixtures/group_categories.json
455
- - spec/fixtures/group_category.json
456
- - spec/fixtures/group_category_groups.json
457
- - spec/fixtures/group_conferences.json
458
- - spec/fixtures/group_membership.json
459
- - spec/fixtures/link_unlink_outcome.json
460
- - spec/fixtures/merge_user.json
461
- - spec/fixtures/module.json
462
- - spec/fixtures/module_item.json
445
+ - spec/fixtures/course_copy.json
446
+ - spec/fixtures/user_logins.json
463
447
  - spec/fixtures/module_item_sequence.json
448
+ - spec/fixtures/enrollment_terms.json
449
+ - spec/fixtures/cc.imscc
450
+ - spec/fixtures/user_profile.json
451
+ - spec/fixtures/create_course_discussion.json
452
+ - spec/fixtures/custom_food_data.json
453
+ - spec/fixtures/course_groups.json
454
+ - spec/fixtures/account_courses.json
455
+ - spec/fixtures/calendar_events.json
456
+ - spec/fixtures/submissions/submission.json
457
+ - spec/fixtures/link_unlink_outcome.json
458
+ - spec/fixtures/account_reports_index.json
464
459
  - spec/fixtures/module_items.json
465
- - spec/fixtures/modules.json
466
- - spec/fixtures/no_custom_data.json
467
- - spec/fixtures/ok.json
460
+ - spec/fixtures/access_token.json
461
+ - spec/fixtures/progress.json
462
+ - spec/fixtures/module.json
463
+ - spec/fixtures/group_categories.json
464
+ - spec/fixtures/course_folders.json
465
+ - spec/fixtures/department_level_statistics.json
466
+ - spec/fixtures/account_admin_delete.json
467
+ - spec/fixtures/account_reports_result_success.json
468
+ - spec/fixtures/deleted_conversation.json
469
+ - spec/fixtures/user_details.json
468
470
  - spec/fixtures/outcome_group_import.json
469
- - spec/fixtures/outcome_groups.json
470
- - spec/fixtures/outcome_result.json
471
+ - spec/fixtures/modules.json
472
+ - spec/fixtures/group.json
471
473
  - spec/fixtures/outcome_subgroup.json
472
474
  - spec/fixtures/outcome_subgroups.json
473
- - spec/fixtures/outcomes.json
474
- - spec/fixtures/paged_body.json
475
- - spec/fixtures/pages.json
476
- - spec/fixtures/progress.json
477
- - spec/fixtures/quizzes/course_quiz.json
478
- - spec/fixtures/quizzes/course_quiz_questions.json
475
+ - spec/fixtures/delete_section.json
476
+ - spec/fixtures/account_user.json
477
+ - spec/fixtures/accounts.json
478
+ - spec/fixtures/account_admins.json
479
+ - spec/fixtures/report_list.json
480
+ - spec/fixtures/group_membership.json
479
481
  - spec/fixtures/quizzes/course_quizzes.json
482
+ - spec/fixtures/quizzes/course_quiz_questions.json
480
483
  - spec/fixtures/quizzes/quiz_assignment_override.json
481
484
  - spec/fixtures/quizzes/quiz_extension.json
482
- - spec/fixtures/report_history.json
483
- - spec/fixtures/report_list.json
484
- - spec/fixtures/report_status.json
485
- - spec/fixtures/search_find_recipients.json
486
- - spec/fixtures/section.json
487
- - spec/fixtures/section_enrollments.json
485
+ - spec/fixtures/quizzes/course_quiz.json
486
+ - spec/fixtures/content_export.json
487
+ - spec/fixtures/created_group.json
488
+ - spec/fixtures/pages.json
489
+ - spec/fixtures/discussion_entries.json
488
490
  - spec/fixtures/single_account.json
489
- - spec/fixtures/start_report.json
490
- - spec/fixtures/submissions/submission.json
491
- - spec/fixtures/update_outcome.json
492
- - spec/fixtures/update_outcome_group.json
493
- - spec/fixtures/update_section.json
494
- - spec/fixtures/updated_course.json
491
+ - spec/fixtures/group_category_groups.json
492
+ - spec/fixtures/created_group_membership.json
495
493
  - spec/fixtures/user_avatars.json
496
- - spec/fixtures/user_details.json
497
- - spec/fixtures/user_enrollments.json
498
- - spec/fixtures/user_logins.json
499
- - spec/fixtures/user_page_views.json
500
- - spec/fixtures/user_profile.json
501
- - spec/helper.rb
502
- has_rdoc:
494
+ - spec/fixtures/custom_gradebook_columns/custom_gradebook_column.json
495
+ - spec/fixtures/custom_gradebook_columns/custom_gradebook_columns.json
496
+ - spec/fixtures/custom_gradebook_columns/column_data.json
497
+ - spec/fixtures/account_reports_start_result.json
498
+ - spec/fixtures/course_grading_standards.json
499
+ - spec/fixtures/group_conferences.json
500
+ - spec/fixtures/discussion_topic.json
501
+ - spec/fixtures/deleted_group.json