d2l_sdk 0.1.11 → 0.1.12

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: 8baf58bbb4cf4601e5bdc09002d4aa4ef7fcc817
4
- data.tar.gz: 03495e277c7f02dd515175c924f9aa7a4e784c33
3
+ metadata.gz: e8f1895dc266d8e2a87b5ca4f028f3261d7a1c63
4
+ data.tar.gz: 4f5be712a138c010bc639f8e8829f7a7b2fe35a5
5
5
  SHA512:
6
- metadata.gz: 5dca7539939e209ee06f9d87cf3475aa3158df7c20d68aefb7665fb64946073625f5e153d03ad25de1a4ea3f2aedc228f2bc2b2803a4f2ad374f3f28f13750fb
7
- data.tar.gz: 2d5c1653e2c2b66688862b5b257ef556706d59331d9a80638d023e64a415e51a8896803d96c2f253641d811513f06222e87de34d6d508bca952732612b93608f
6
+ metadata.gz: 92eccb70ce83dbbd05789e3ae105bf5ada733e00ee12a44b867ae2d6cc31748481f574e70c6ff0dc3cc2f59704419df859efaa32663932e9a2ef7cfcbf4febbd
7
+ data.tar.gz: 0a0bfed22a543acde3cb819d2691d4395e22f00ad1129695d3a7058c74d5906738b32d403f666e20287431f116a1804e6a8122603924270ac45428a7c3ecc561
data/Gemfile CHANGED
@@ -7,4 +7,3 @@ gem "rest-client"
7
7
  gem "colorize"
8
8
  gem "test-unit"
9
9
  gem "json-schema"
10
- gem 'zip'
@@ -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
 
@@ -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")
@@ -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/lp/#{$lp_ver}/#{org_unit_id}/classlist/"
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module D2lSdk
2
- VERSION = '0.1.11'.freeze
2
+ VERSION = '0.1.12'.freeze
3
3
  end
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.11
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-05-03 00:00:00.000000000 Z
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.10
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