d2l_sdk 0.1.11 → 0.1.12
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 +4 -4
- data/Gemfile +0 -1
- data/lib/d2l_sdk/config_variables.rb +1 -1
- data/lib/d2l_sdk/course.rb +4 -4
- data/lib/d2l_sdk/enroll.rb +1 -1
- data/lib/d2l_sdk/grades.rb +1 -1
- data/lib/d2l_sdk/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e8f1895dc266d8e2a87b5ca4f028f3261d7a1c63
|
|
4
|
+
data.tar.gz: 4f5be712a138c010bc639f8e8829f7a7b2fe35a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 92eccb70ce83dbbd05789e3ae105bf5ada733e00ee12a44b867ae2d6cc31748481f574e70c6ff0dc3cc2f59704419df859efaa32663932e9a2ef7cfcbf4febbd
|
|
7
|
+
data.tar.gz: 0a0bfed22a543acde3cb819d2691d4395e22f00ad1129695d3a7058c74d5906738b32d403f666e20287431f116a1804e6a8122603924270ac45428a7c3ecc561
|
data/Gemfile
CHANGED
|
@@ -134,7 +134,7 @@ def restore_default_org_unit_config_var_resolution(variable_id); end
|
|
|
134
134
|
# NOTE: UNSTABLE!!!
|
|
135
135
|
# REVIEW: Retrieve the resolution strategy for an org unit configuration variable.
|
|
136
136
|
def get_config_var_resolver(variable_id)
|
|
137
|
-
path = "/d2l/api/lp/#{lp_ver}/configVariables/#{variable_id}/resolver"
|
|
137
|
+
path = "/d2l/api/lp/#{$lp_ver}/configVariables/#{variable_id}/resolver"
|
|
138
138
|
_get(path)
|
|
139
139
|
end
|
|
140
140
|
|
data/lib/d2l_sdk/course.rb
CHANGED
|
@@ -166,7 +166,7 @@ end
|
|
|
166
166
|
########################
|
|
167
167
|
|
|
168
168
|
def get_copy_job_request_status(org_unit_id, job_token)
|
|
169
|
-
path = "/d2l/api/le/#{le_ver}/import/#{org_unit_id}/copy/#{job_token}"
|
|
169
|
+
path = "/d2l/api/le/#{$le_ver}/import/#{org_unit_id}/copy/#{job_token}"
|
|
170
170
|
_get(path)
|
|
171
171
|
# returns GetCopyJobResponse JSON block
|
|
172
172
|
# GetImportJobResponse:
|
|
@@ -252,7 +252,7 @@ end
|
|
|
252
252
|
########################
|
|
253
253
|
|
|
254
254
|
def get_course_import_job_request_status(org_unit_id, job_token)
|
|
255
|
-
path = "/d2l/api/le/#{le_ver}/import/#{org_unit_id}/imports/#{job_token}"
|
|
255
|
+
path = "/d2l/api/le/#{$le_ver}/import/#{org_unit_id}/imports/#{job_token}"
|
|
256
256
|
_get(path)
|
|
257
257
|
# returns GetImportJobResponse JSON block
|
|
258
258
|
# example:
|
|
@@ -261,7 +261,7 @@ def get_course_import_job_request_status(org_unit_id, job_token)
|
|
|
261
261
|
end
|
|
262
262
|
|
|
263
263
|
def get_course_import_job_request_logs(org_unit_id, job_token, bookmark = '')
|
|
264
|
-
path = "/d2l/api/le/#{le_ver}/import/#{org_unit_id}/imports/#{job_token}/logs"
|
|
264
|
+
path = "/d2l/api/le/#{$le_ver}/import/#{org_unit_id}/imports/#{job_token}/logs"
|
|
265
265
|
path += "?bookmark=#{bookmark}" if bookmark != ''
|
|
266
266
|
_get(path)
|
|
267
267
|
# returns PAGED RESULT of ImportCourseLog JSON blocks following bookmark param
|
|
@@ -270,7 +270,7 @@ end
|
|
|
270
270
|
# REVIEW: Create a new course import job request.
|
|
271
271
|
# INPUT: simple file upload process -- using "course package" as the uploaded file
|
|
272
272
|
def create_course_import_request(org_unit_id, file_path, callback_url = '')
|
|
273
|
-
path = "/d2l/le/#{le_ver}/import/#{org_unit_id}/imports/"
|
|
273
|
+
path = "/d2l/le/#{$le_ver}/import/#{org_unit_id}/imports/"
|
|
274
274
|
path += "?callbackUrl=#{callback_url}" if callback_url != ''
|
|
275
275
|
# TODO: (SCHEMA) Find out WTH a 'course package' entails as far as standards.
|
|
276
276
|
_course_package_upload(path, file_path, "POST")
|
data/lib/d2l_sdk/enroll.rb
CHANGED
|
@@ -23,7 +23,7 @@ end
|
|
|
23
23
|
|
|
24
24
|
# Retrieve the enrolled users in the classlist for an org unit
|
|
25
25
|
def get_enrolled_users_in_classlist(org_unit_id)
|
|
26
|
-
path = "/d2l/api/
|
|
26
|
+
path = "/d2l/api/le/#{$lp_ver}/#{org_unit_id}/classlist/"
|
|
27
27
|
_get(path)
|
|
28
28
|
# Returns: JSON array of ClasslistUser data blocks.
|
|
29
29
|
end
|
data/lib/d2l_sdk/grades.rb
CHANGED
|
@@ -280,7 +280,7 @@ end
|
|
|
280
280
|
# Return: This action returns a GradeValue JSON block containing the final
|
|
281
281
|
# calculated grade value for the provided user.
|
|
282
282
|
def get_user_final_grade(org_unit_id, user_id, grade_type = '')
|
|
283
|
-
path = "/d2l/api/le/#{le_ver}/#{org_unit_id}/grades/final/values/#{user_id}"
|
|
283
|
+
path = "/d2l/api/le/#{$le_ver}/#{org_unit_id}/grades/final/values/#{user_id}"
|
|
284
284
|
path += "?gradeType=#{grade_type}" if grade_type != ''
|
|
285
285
|
_get(path)
|
|
286
286
|
# Return: This action returns a GradeValue JSON block containing the final
|
data/lib/d2l_sdk/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: d2l_sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Kulpa
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-08-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -234,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
234
234
|
version: '0'
|
|
235
235
|
requirements: []
|
|
236
236
|
rubyforge_project:
|
|
237
|
-
rubygems_version: 2.6.
|
|
237
|
+
rubygems_version: 2.6.11
|
|
238
238
|
signing_key:
|
|
239
239
|
specification_version: 4
|
|
240
240
|
summary: Simple Ruby Gem to utilize the Valence/D2L API
|