pandarus 0.6.5 → 0.6.6

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: 1ace375ebcad78939cf91bf884eecebe9011561d
4
- data.tar.gz: bb336bcde7dd51abaf826b14a58fdb25df42224f
3
+ metadata.gz: bfa6372ba299af4e0774e127672e475c69eb26a6
4
+ data.tar.gz: deddce43e4d900fcd47f953d7dd579f122099634
5
5
  SHA512:
6
- metadata.gz: e6fe818f9387d8526a204fcad731f3807ee39b90d108320981ea9903f720bf8ff8304a579ed8bb59e85ad3a346578475f337950a9267754a41b5e85657c05b26
7
- data.tar.gz: 26b0aeee79174e11330bf831c0736c60b00f7666073b34ead8dc72fd4977b0d9e39b7defd45966707bf07bea461d01645a03d3cf3312b9600998f48a184778c4
6
+ metadata.gz: fc2c19cbf6a7c73a9d1a5fc57b9fa9e41f92764999767dd598c02b938b616f9e0a0350e70e8eaa57ed6555443535ecf7b590d647f066e7c4e90513547b09769e
7
+ data.tar.gz: 0457854c159b43164c21eb35d7161a99a385e539e88431b119d21f82126b813a899c73a74a3718325d04c4bc3e3fe088be90f8ac63e3432de0b83490405015b5
@@ -16,6 +16,7 @@ module Pandarus
16
16
  attribute :sis_account_id, resolve_type("String")
17
17
  attribute :integration_id, resolve_type("String")
18
18
  attribute :sis_import_id, resolve_type("Integer")
19
+ attribute :lti_guid, resolve_type("String")
19
20
  attribute :workflow_state, resolve_type("String")
20
21
 
21
22
  end
@@ -56,6 +56,7 @@ module Pandarus
56
56
  attribute :rubric_settings, resolve_type("String")
57
57
  attribute :rubric, resolve_type("RubricCriteria", collection: true)
58
58
  attribute :assignment_visibility, resolve_type("Integer", collection: true)
59
+ attribute :overrides, resolve_type("AssignmentOverride", collection: true)
59
60
 
60
61
  end
61
62
  end
@@ -19,6 +19,7 @@ module Pandarus
19
19
  attribute :calculation_int, resolve_type("Integer")
20
20
  attribute :ratings, resolve_type("RubricRating", collection: true)
21
21
  attribute :can_edit, resolve_type(nil)
22
+ attribute :assessed, resolve_type(nil)
22
23
 
23
24
  end
24
25
  end
@@ -41,6 +41,7 @@ module Pandarus
41
41
  attribute :quiz_extensions_url, resolve_type("String")
42
42
  attribute :permissions, resolve_type("QuizPermissions")
43
43
  attribute :all_dates, resolve_type("AssignmentDate")
44
+ attribute :version_number, resolve_type("Integer")
44
45
 
45
46
  end
46
47
  end
@@ -19,6 +19,8 @@ module Pandarus
19
19
  attribute :override_sis_stickiness, resolve_type(nil)
20
20
  attribute :add_sis_stickiness, resolve_type(nil)
21
21
  attribute :clear_sis_stickiness, resolve_type(nil)
22
+ attribute :diffing_data_set_identifier, resolve_type("String")
23
+ attribute :diffed_against_import_id, resolve_type("Integer")
22
24
 
23
25
  end
24
26
  end
@@ -9,6 +9,7 @@ module Pandarus
9
9
  @query_params = query_params
10
10
 
11
11
  @pagination_links = []
12
+ @next_page_cache = {}
12
13
  end
13
14
 
14
15
  def to_a
@@ -37,15 +38,18 @@ module Pandarus
37
38
  end
38
39
 
39
40
  def first_page
40
- response = @http_client.get do |request|
41
+ @pagination_links = []
42
+ @first_response ||= @http_client.get do |request|
41
43
  request.path = join_paths(base_path, @path)
42
44
  request.params = request.params.merge(@query_params) unless @query_params.empty?
43
45
  end
44
- handle_response(response)
46
+ handle_response(@first_response)
45
47
  end
46
48
 
47
49
  def next_page
48
- handle_response @http_client.get(@pagination_links.last.next)
50
+ key = @pagination_links.last.next
51
+ @next_page_cache[key] ||= @http_client.get(key)
52
+ handle_response @next_page_cache[key]
49
53
  end
50
54
 
51
55
  private
@@ -482,9 +482,9 @@ module Pandarus
482
482
  end
483
483
 
484
484
  # Status of a Report
485
- def status_of_report(account_id,report,id,report_id,opts={})
485
+ def status_of_report(account_id,report,id,opts={})
486
486
  query_param_keys = [
487
- :report_id
487
+
488
488
  ]
489
489
 
490
490
  form_param_keys = [
@@ -495,13 +495,11 @@ module Pandarus
495
495
  raise "account_id is required" if account_id.nil?
496
496
  raise "report is required" if report.nil?
497
497
  raise "id is required" if id.nil?
498
- raise "report_id is required" if report_id.nil?
499
498
  # set default values and merge with input
500
499
  options = underscored_merge_opts(opts,
501
500
  :account_id => account_id,
502
501
  :report => report,
503
- :id => id,
504
- :report_id => report_id
502
+ :id => id
505
503
  )
506
504
 
507
505
  # resource path
@@ -556,7 +554,7 @@ module Pandarus
556
554
  # List accounts
557
555
  def list_accounts(opts={})
558
556
  query_param_keys = [
559
-
557
+ :include
560
558
  ]
561
559
 
562
560
  form_param_keys = [
@@ -1322,7 +1320,8 @@ module Pandarus
1322
1320
  def list_assignment_groups(course_id,opts={})
1323
1321
  query_param_keys = [
1324
1322
  :include,
1325
- :override_assignment_dates
1323
+ :override_assignment_dates,
1324
+ :grading_period_id
1326
1325
  ]
1327
1326
 
1328
1327
  form_param_keys = [
@@ -1516,7 +1515,8 @@ module Pandarus
1516
1515
  :include,
1517
1516
  :search_term,
1518
1517
  :override_assignment_dates,
1519
- :needs_grading_count_by_section
1518
+ :needs_grading_count_by_section,
1519
+ :bucket
1520
1520
  ]
1521
1521
 
1522
1522
  form_param_keys = [
@@ -4817,6 +4817,8 @@ module Pandarus
4817
4817
  :hide_final_grades,
4818
4818
  :hide_distribution_graphs,
4819
4819
  :lock_all_announcements,
4820
+ :restrict_student_past_view,
4821
+ :restrict_student_future_view,
4820
4822
 
4821
4823
  ]
4822
4824
 
@@ -4901,13 +4903,13 @@ module Pandarus
4901
4903
  end
4902
4904
 
4903
4905
  # Update a course
4904
- def update_course(id,account_id,opts={})
4906
+ def update_course(id,course__account_id__,opts={})
4905
4907
  query_param_keys = [
4906
4908
 
4907
4909
  ]
4908
4910
 
4909
4911
  form_param_keys = [
4910
- :account_id,
4912
+ :course__account_id__,
4911
4913
  :course__name__,
4912
4914
  :course__course_code__,
4913
4915
  :course__start_at__,
@@ -4936,11 +4938,11 @@ module Pandarus
4936
4938
 
4937
4939
  # verify existence of params
4938
4940
  raise "id is required" if id.nil?
4939
- raise "account_id is required" if account_id.nil?
4941
+ raise "course__account_id__ is required" if course__account_id__.nil?
4940
4942
  # set default values and merge with input
4941
4943
  options = underscored_merge_opts(opts,
4942
4944
  :id => id,
4943
- :account_id => account_id
4945
+ :course__account_id__ => course__account_id__
4944
4946
  )
4945
4947
 
4946
4948
  # resource path
@@ -8504,6 +8506,7 @@ module Pandarus
8504
8506
  form_param_keys = [
8505
8507
  :name,
8506
8508
  :parent_folder_id,
8509
+ :on_duplicate,
8507
8510
  :lock_at,
8508
8511
  :unlock_at,
8509
8512
  :locked,
@@ -8587,6 +8590,90 @@ module Pandarus
8587
8590
 
8588
8591
  end
8589
8592
 
8593
+ # List all folders
8594
+ def list_all_folders_courses(course_id,opts={})
8595
+ query_param_keys = [
8596
+
8597
+ ]
8598
+
8599
+ form_param_keys = [
8600
+
8601
+ ]
8602
+
8603
+ # verify existence of params
8604
+ raise "course_id is required" if course_id.nil?
8605
+ # set default values and merge with input
8606
+ options = underscored_merge_opts(opts,
8607
+ :course_id => course_id
8608
+ )
8609
+
8610
+ # resource path
8611
+ path = path_replace("/v1/courses/{course_id}/folders",
8612
+ :course_id => course_id)
8613
+ headers = nil
8614
+ form_params = select_params(options, form_param_keys)
8615
+ query_params = select_query_params(options, query_param_keys)
8616
+
8617
+ RemoteCollection.new(connection, Folder, path, query_params)
8618
+
8619
+ end
8620
+
8621
+ # List all folders
8622
+ def list_all_folders_users(user_id,opts={})
8623
+ query_param_keys = [
8624
+
8625
+ ]
8626
+
8627
+ form_param_keys = [
8628
+
8629
+ ]
8630
+
8631
+ # verify existence of params
8632
+ raise "user_id is required" if user_id.nil?
8633
+ # set default values and merge with input
8634
+ options = underscored_merge_opts(opts,
8635
+ :user_id => user_id
8636
+ )
8637
+
8638
+ # resource path
8639
+ path = path_replace("/v1/users/{user_id}/folders",
8640
+ :user_id => user_id)
8641
+ headers = nil
8642
+ form_params = select_params(options, form_param_keys)
8643
+ query_params = select_query_params(options, query_param_keys)
8644
+
8645
+ RemoteCollection.new(connection, Folder, path, query_params)
8646
+
8647
+ end
8648
+
8649
+ # List all folders
8650
+ def list_all_folders_groups(group_id,opts={})
8651
+ query_param_keys = [
8652
+
8653
+ ]
8654
+
8655
+ form_param_keys = [
8656
+
8657
+ ]
8658
+
8659
+ # verify existence of params
8660
+ raise "group_id is required" if group_id.nil?
8661
+ # set default values and merge with input
8662
+ options = underscored_merge_opts(opts,
8663
+ :group_id => group_id
8664
+ )
8665
+
8666
+ # resource path
8667
+ path = path_replace("/v1/groups/{group_id}/folders",
8668
+ :group_id => group_id)
8669
+ headers = nil
8670
+ form_params = select_params(options, form_param_keys)
8671
+ query_params = select_query_params(options, query_param_keys)
8672
+
8673
+ RemoteCollection.new(connection, Folder, path, query_params)
8674
+
8675
+ end
8676
+
8590
8677
  # Resolve path
8591
8678
  def resolve_path_courses_full_path(course_id,opts={})
8592
8679
  query_param_keys = [
@@ -9130,6 +9217,71 @@ module Pandarus
9130
9217
 
9131
9218
  end
9132
9219
 
9220
+ # Copy a file
9221
+ def copy_file(dest_folder_id,source_file_id,opts={})
9222
+ query_param_keys = [
9223
+
9224
+ ]
9225
+
9226
+ form_param_keys = [
9227
+ :source_file_id,
9228
+ :on_duplicate,
9229
+
9230
+ ]
9231
+
9232
+ # verify existence of params
9233
+ raise "dest_folder_id is required" if dest_folder_id.nil?
9234
+ raise "source_file_id is required" if source_file_id.nil?
9235
+ # set default values and merge with input
9236
+ options = underscored_merge_opts(opts,
9237
+ :dest_folder_id => dest_folder_id,
9238
+ :source_file_id => source_file_id
9239
+ )
9240
+
9241
+ # resource path
9242
+ path = path_replace("/v1/folders/{dest_folder_id}/copy_file",
9243
+ :dest_folder_id => dest_folder_id)
9244
+ headers = nil
9245
+ form_params = select_params(options, form_param_keys)
9246
+ query_params = select_query_params(options, query_param_keys)
9247
+
9248
+ response = mixed_request(:post, path, query_params, form_params, headers)
9249
+ File.new(response)
9250
+
9251
+ end
9252
+
9253
+ # Copy a folder
9254
+ def copy_folder(dest_folder_id,source_folder_id,opts={})
9255
+ query_param_keys = [
9256
+
9257
+ ]
9258
+
9259
+ form_param_keys = [
9260
+ :source_folder_id,
9261
+
9262
+ ]
9263
+
9264
+ # verify existence of params
9265
+ raise "dest_folder_id is required" if dest_folder_id.nil?
9266
+ raise "source_folder_id is required" if source_folder_id.nil?
9267
+ # set default values and merge with input
9268
+ options = underscored_merge_opts(opts,
9269
+ :dest_folder_id => dest_folder_id,
9270
+ :source_folder_id => source_folder_id
9271
+ )
9272
+
9273
+ # resource path
9274
+ path = path_replace("/v1/folders/{dest_folder_id}/copy_folder",
9275
+ :dest_folder_id => dest_folder_id)
9276
+ headers = nil
9277
+ form_params = select_params(options, form_param_keys)
9278
+ query_params = select_query_params(options, query_param_keys)
9279
+
9280
+ response = mixed_request(:post, path, query_params, form_params, headers)
9281
+ Folder.new(response)
9282
+
9283
+ end
9284
+
9133
9285
  # Set usage rights
9134
9286
  def set_usage_rights_courses(course_id,file_ids,usage_rights__use_justification__,opts={})
9135
9287
  query_param_keys = [
@@ -9792,27 +9944,25 @@ module Pandarus
9792
9944
  end
9793
9945
 
9794
9946
  # Create a single grading period
9795
- def create_single_grading_period_courses(course_id,grading_periods__weight__,grading_periods__start_date__,grading_periods__end_date__,opts={})
9947
+ def create_single_grading_period_courses(course_id,grading_periods__start_date__,grading_periods__end_date__,opts={})
9796
9948
  query_param_keys = [
9797
9949
 
9798
9950
  ]
9799
9951
 
9800
9952
  form_param_keys = [
9801
- :grading_periods__weight__,
9802
9953
  :grading_periods__start_date__,
9803
9954
  :grading_periods__end_date__,
9955
+ :grading_periods__weight__,
9804
9956
 
9805
9957
  ]
9806
9958
 
9807
9959
  # verify existence of params
9808
9960
  raise "course_id is required" if course_id.nil?
9809
- raise "grading_periods__weight__ is required" if grading_periods__weight__.nil?
9810
9961
  raise "grading_periods__start_date__ is required" if grading_periods__start_date__.nil?
9811
9962
  raise "grading_periods__end_date__ is required" if grading_periods__end_date__.nil?
9812
9963
  # set default values and merge with input
9813
9964
  options = underscored_merge_opts(opts,
9814
9965
  :course_id => course_id,
9815
- :grading_periods__weight__ => grading_periods__weight__,
9816
9966
  :grading_periods__start_date__ => grading_periods__start_date__,
9817
9967
  :grading_periods__end_date__ => grading_periods__end_date__
9818
9968
  )
@@ -9830,27 +9980,25 @@ module Pandarus
9830
9980
  end
9831
9981
 
9832
9982
  # Create a single grading period
9833
- def create_single_grading_period_accounts(account_id,grading_periods__weight__,grading_periods__start_date__,grading_periods__end_date__,opts={})
9983
+ def create_single_grading_period_accounts(account_id,grading_periods__start_date__,grading_periods__end_date__,opts={})
9834
9984
  query_param_keys = [
9835
9985
 
9836
9986
  ]
9837
9987
 
9838
9988
  form_param_keys = [
9839
- :grading_periods__weight__,
9840
9989
  :grading_periods__start_date__,
9841
9990
  :grading_periods__end_date__,
9991
+ :grading_periods__weight__,
9842
9992
 
9843
9993
  ]
9844
9994
 
9845
9995
  # verify existence of params
9846
9996
  raise "account_id is required" if account_id.nil?
9847
- raise "grading_periods__weight__ is required" if grading_periods__weight__.nil?
9848
9997
  raise "grading_periods__start_date__ is required" if grading_periods__start_date__.nil?
9849
9998
  raise "grading_periods__end_date__ is required" if grading_periods__end_date__.nil?
9850
9999
  # set default values and merge with input
9851
10000
  options = underscored_merge_opts(opts,
9852
10001
  :account_id => account_id,
9853
- :grading_periods__weight__ => grading_periods__weight__,
9854
10002
  :grading_periods__start_date__ => grading_periods__start_date__,
9855
10003
  :grading_periods__end_date__ => grading_periods__end_date__
9856
10004
  )
@@ -9868,29 +10016,27 @@ module Pandarus
9868
10016
  end
9869
10017
 
9870
10018
  # Update a single grading period
9871
- def update_single_grading_period_courses(course_id,id,grading_periods__weight__,grading_periods__start_date__,grading_periods__end_date__,opts={})
10019
+ def update_single_grading_period_courses(course_id,id,grading_periods__start_date__,grading_periods__end_date__,opts={})
9872
10020
  query_param_keys = [
9873
10021
 
9874
10022
  ]
9875
10023
 
9876
10024
  form_param_keys = [
9877
- :grading_periods__weight__,
9878
10025
  :grading_periods__start_date__,
9879
10026
  :grading_periods__end_date__,
10027
+ :grading_periods__weight__,
9880
10028
 
9881
10029
  ]
9882
10030
 
9883
10031
  # verify existence of params
9884
10032
  raise "course_id is required" if course_id.nil?
9885
10033
  raise "id is required" if id.nil?
9886
- raise "grading_periods__weight__ is required" if grading_periods__weight__.nil?
9887
10034
  raise "grading_periods__start_date__ is required" if grading_periods__start_date__.nil?
9888
10035
  raise "grading_periods__end_date__ is required" if grading_periods__end_date__.nil?
9889
10036
  # set default values and merge with input
9890
10037
  options = underscored_merge_opts(opts,
9891
10038
  :course_id => course_id,
9892
10039
  :id => id,
9893
- :grading_periods__weight__ => grading_periods__weight__,
9894
10040
  :grading_periods__start_date__ => grading_periods__start_date__,
9895
10041
  :grading_periods__end_date__ => grading_periods__end_date__
9896
10042
  )
@@ -9909,29 +10055,27 @@ module Pandarus
9909
10055
  end
9910
10056
 
9911
10057
  # Update a single grading period
9912
- def update_single_grading_period_accounts(account_id,id,grading_periods__weight__,grading_periods__start_date__,grading_periods__end_date__,opts={})
10058
+ def update_single_grading_period_accounts(account_id,id,grading_periods__start_date__,grading_periods__end_date__,opts={})
9913
10059
  query_param_keys = [
9914
10060
 
9915
10061
  ]
9916
10062
 
9917
10063
  form_param_keys = [
9918
- :grading_periods__weight__,
9919
10064
  :grading_periods__start_date__,
9920
10065
  :grading_periods__end_date__,
10066
+ :grading_periods__weight__,
9921
10067
 
9922
10068
  ]
9923
10069
 
9924
10070
  # verify existence of params
9925
10071
  raise "account_id is required" if account_id.nil?
9926
10072
  raise "id is required" if id.nil?
9927
- raise "grading_periods__weight__ is required" if grading_periods__weight__.nil?
9928
10073
  raise "grading_periods__start_date__ is required" if grading_periods__start_date__.nil?
9929
10074
  raise "grading_periods__end_date__ is required" if grading_periods__end_date__.nil?
9930
10075
  # set default values and merge with input
9931
10076
  options = underscored_merge_opts(opts,
9932
10077
  :account_id => account_id,
9933
10078
  :id => id,
9934
- :grading_periods__weight__ => grading_periods__weight__,
9935
10079
  :grading_periods__start_date__ => grading_periods__start_date__,
9936
10080
  :grading_periods__end_date__ => grading_periods__end_date__
9937
10081
  )
@@ -10429,7 +10573,7 @@ module Pandarus
10429
10573
  # List the groups available in a context.
10430
10574
  def list_groups_available_in_context_accounts(account_id,opts={})
10431
10575
  query_param_keys = [
10432
-
10576
+ :only_own_groups
10433
10577
  ]
10434
10578
 
10435
10579
  form_param_keys = [
@@ -10457,7 +10601,7 @@ module Pandarus
10457
10601
  # List the groups available in a context.
10458
10602
  def list_groups_available_in_context_courses(course_id,opts={})
10459
10603
  query_param_keys = [
10460
-
10604
+ :only_own_groups
10461
10605
  ]
10462
10606
 
10463
10607
  form_param_keys = [
@@ -11466,6 +11610,38 @@ module Pandarus
11466
11610
 
11467
11611
  end
11468
11612
 
11613
+ # Re-lock module progressions
11614
+ def re_lock_module_progressions(course_id,id,opts={})
11615
+ query_param_keys = [
11616
+
11617
+ ]
11618
+
11619
+ form_param_keys = [
11620
+
11621
+ ]
11622
+
11623
+ # verify existence of params
11624
+ raise "course_id is required" if course_id.nil?
11625
+ raise "id is required" if id.nil?
11626
+ # set default values and merge with input
11627
+ options = underscored_merge_opts(opts,
11628
+ :course_id => course_id,
11629
+ :id => id
11630
+ )
11631
+
11632
+ # resource path
11633
+ path = path_replace("/v1/courses/{course_id}/modules/{id}/relock",
11634
+ :course_id => course_id,
11635
+ :id => id)
11636
+ headers = nil
11637
+ form_params = select_params(options, form_param_keys)
11638
+ query_params = select_query_params(options, query_param_keys)
11639
+
11640
+ response = mixed_request(:put, path, query_params, form_params, headers)
11641
+ Module.new(response)
11642
+
11643
+ end
11644
+
11469
11645
  # List module items
11470
11646
  def list_module_items(course_id,module_id,opts={})
11471
11647
  query_param_keys = [
@@ -16119,7 +16295,8 @@ module Pandarus
16119
16295
  # List roles
16120
16296
  def list_roles(account_id,opts={})
16121
16297
  query_param_keys = [
16122
- :state
16298
+ :state,
16299
+ :show_inherited
16123
16300
  ]
16124
16301
 
16125
16302
  form_param_keys = [
@@ -16365,6 +16542,8 @@ module Pandarus
16365
16542
  :override_sis_stickiness,
16366
16543
  :add_sis_stickiness,
16367
16544
  :clear_sis_stickiness,
16545
+ :diffing_data_set_identifier,
16546
+ :diffing_remaster_data_set,
16368
16547
 
16369
16548
  ]
16370
16549
 
@@ -17286,8 +17465,44 @@ module Pandarus
17286
17465
 
17287
17466
  end
17288
17467
 
17289
- # Grade or comment on multiple submissions for an assignment
17290
- def grade_or_comment_on_multiple_submissions_for_assignment_courses(course_id,assignment_id,opts={})
17468
+ # Grade or comment on multiple submissions
17469
+ def grade_or_comment_on_multiple_submissions_courses_submissions(course_id,opts={})
17470
+ query_param_keys = [
17471
+
17472
+ ]
17473
+
17474
+ form_param_keys = [
17475
+ :grade_data___student_id_____posted_grade__,
17476
+ :grade_data___student_id_____rubric_assessment__,
17477
+ :grade_data___student_id_____text_comment__,
17478
+ :grade_data___student_id_____group_comment__,
17479
+ :grade_data___student_id_____media_comment_id__,
17480
+ :grade_data___student_id_____media_comment_type__,
17481
+ :grade_data___student_id_____file_ids__,
17482
+
17483
+ ]
17484
+
17485
+ # verify existence of params
17486
+ raise "course_id is required" if course_id.nil?
17487
+ # set default values and merge with input
17488
+ options = underscored_merge_opts(opts,
17489
+ :course_id => course_id
17490
+ )
17491
+
17492
+ # resource path
17493
+ path = path_replace("/v1/courses/{course_id}/submissions/update_grades",
17494
+ :course_id => course_id)
17495
+ headers = nil
17496
+ form_params = select_params(options, form_param_keys)
17497
+ query_params = select_query_params(options, query_param_keys)
17498
+
17499
+ response = mixed_request(:post, path, query_params, form_params, headers)
17500
+ Progress.new(response)
17501
+
17502
+ end
17503
+
17504
+ # Grade or comment on multiple submissions
17505
+ def grade_or_comment_on_multiple_submissions_courses_assignments(course_id,assignment_id,opts={})
17291
17506
  query_param_keys = [
17292
17507
 
17293
17508
  ]
@@ -17325,8 +17540,44 @@ module Pandarus
17325
17540
 
17326
17541
  end
17327
17542
 
17328
- # Grade or comment on multiple submissions for an assignment
17329
- def grade_or_comment_on_multiple_submissions_for_assignment_sections(section_id,assignment_id,opts={})
17543
+ # Grade or comment on multiple submissions
17544
+ def grade_or_comment_on_multiple_submissions_sections_submissions(section_id,opts={})
17545
+ query_param_keys = [
17546
+
17547
+ ]
17548
+
17549
+ form_param_keys = [
17550
+ :grade_data___student_id_____posted_grade__,
17551
+ :grade_data___student_id_____rubric_assessment__,
17552
+ :grade_data___student_id_____text_comment__,
17553
+ :grade_data___student_id_____group_comment__,
17554
+ :grade_data___student_id_____media_comment_id__,
17555
+ :grade_data___student_id_____media_comment_type__,
17556
+ :grade_data___student_id_____file_ids__,
17557
+
17558
+ ]
17559
+
17560
+ # verify existence of params
17561
+ raise "section_id is required" if section_id.nil?
17562
+ # set default values and merge with input
17563
+ options = underscored_merge_opts(opts,
17564
+ :section_id => section_id
17565
+ )
17566
+
17567
+ # resource path
17568
+ path = path_replace("/v1/sections/{section_id}/submissions/update_grades",
17569
+ :section_id => section_id)
17570
+ headers = nil
17571
+ form_params = select_params(options, form_param_keys)
17572
+ query_params = select_query_params(options, query_param_keys)
17573
+
17574
+ response = mixed_request(:post, path, query_params, form_params, headers)
17575
+ Progress.new(response)
17576
+
17577
+ end
17578
+
17579
+ # Grade or comment on multiple submissions
17580
+ def grade_or_comment_on_multiple_submissions_sections_assignments(section_id,assignment_id,opts={})
17330
17581
  query_param_keys = [
17331
17582
 
17332
17583
  ]
@@ -18009,6 +18260,35 @@ module Pandarus
18009
18260
 
18010
18261
  end
18011
18262
 
18263
+ # Show user details
18264
+ def show_user_details(id,opts={})
18265
+ query_param_keys = [
18266
+
18267
+ ]
18268
+
18269
+ form_param_keys = [
18270
+
18271
+ ]
18272
+
18273
+ # verify existence of params
18274
+ raise "id is required" if id.nil?
18275
+ # set default values and merge with input
18276
+ options = underscored_merge_opts(opts,
18277
+ :id => id
18278
+ )
18279
+
18280
+ # resource path
18281
+ path = path_replace("/v1/users/{id}",
18282
+ :id => id)
18283
+ headers = nil
18284
+ form_params = select_params(options, form_param_keys)
18285
+ query_params = select_query_params(options, query_param_keys)
18286
+
18287
+ response = mixed_request(:get, path, query_params, form_params, headers)
18288
+ User.new(response)
18289
+
18290
+ end
18291
+
18012
18292
  # Create a user
18013
18293
  def create_user(account_id,pseudonym__unique_id__,opts={})
18014
18294
  query_param_keys = [
@@ -18031,6 +18311,7 @@ module Pandarus
18031
18311
  :communication_channel__address__,
18032
18312
  :communication_channel__confirmation_url__,
18033
18313
  :communication_channel__skip_confirmation__,
18314
+ :force_validations,
18034
18315
 
18035
18316
  ]
18036
18317
 
@@ -1,3 +1,3 @@
1
1
  module Pandarus
2
- VERSION = '0.6.5' unless defined?(Pandarus::VERSION)
2
+ VERSION = '0.6.6' unless defined?(Pandarus::VERSION)
3
3
  end
@@ -65,6 +65,28 @@ module Pandarus
65
65
  expect(array.size).to eq 21
66
66
  end
67
67
  end
68
+
69
+ it 'must create similar arrays on multiple calls' do
70
+ result_arrays = []
71
+ (1..10).each do
72
+ VCR.use_cassette('remote_collection_all_pages') do
73
+ result_arrays << collection.to_a
74
+ expect(result_arrays.last.size).to eq 21
75
+ end
76
+ end
77
+
78
+ (0..9).each do |i|
79
+ expect(result_arrays[i].size).to eq result_arrays.first.size
80
+ end
81
+ end
82
+
83
+ it 'must not repeatedly retrieve from the remote source' do
84
+ VCR.use_cassette('remote_collection_all_pages') do
85
+ expect(collection.to_a.size).to eq 21
86
+ end
87
+
88
+ expect(collection.to_a.size).to eq 21
89
+ end
68
90
  end
69
91
  end
70
92
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pandarus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Duane Johnson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-26 00:00:00.000000000 Z
11
+ date: 2015-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake