bridge_api 0.1.41 → 0.1.42
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 +5 -5
- data/lib/bridge_api/client.rb +1 -0
- data/lib/bridge_api/client/program.rb +13 -0
- data/lib/bridge_api/client/user.rb +4 -0
- data/lib/bridge_api/version.rb +1 -1
- metadata +36 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ecba13d1825d712f24c744cc327d3db7739593e643b62a15c6fd750890d11f18
|
4
|
+
data.tar.gz: 823057ac30986719d49b609576b55e7cb65d16c6b97b1a6956537f9951276744
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46d3a3e3cc16ab0c48a37814fa8d9933c6bed94b8861bfdc72e0cba2c88af19377efd9f2c29142f0adff1ceb97682da60671ac2b13de47c2a6c5f9a7c162fa2d
|
7
|
+
data.tar.gz: 9bc7973eb7aa7061c04a9be88566dcdcea275f67f49185013d3a64859f65b72375dce80e13807ab48da03d720d16aedef0ea445e54c97c74f66340a7e2787f32
|
data/lib/bridge_api/client.rb
CHANGED
@@ -38,6 +38,7 @@ module BridgeAPI
|
|
38
38
|
SESSIONS_PATH = '/sessions'.freeze
|
39
39
|
PUBLISH_PATH = '/publish'.freeze
|
40
40
|
WEB_CONFERENCE_PATH = '/web_conference'.freeze
|
41
|
+
RESTORE_PATH = '/restore'.freeze
|
41
42
|
RESULT_MAPPING = {}
|
42
43
|
|
43
44
|
Dir[File.dirname(__FILE__) + '/client/*.rb'].each do |file|
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module BridgeAPI
|
2
|
+
class Client
|
3
|
+
module Program
|
4
|
+
def get_all_programs(params = {})
|
5
|
+
get("#{API_PATH}#{AUTHOR_PATH}#{PROGRAM_PATH}", params)
|
6
|
+
end
|
7
|
+
|
8
|
+
def get_program(program_id, params = {})
|
9
|
+
get("#{API_PATH}#{AUTHOR_PATH}#{PROGRAM_PATH}/#{program_id}", params)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -17,6 +17,10 @@ module BridgeAPI
|
|
17
17
|
put("#{API_PATH}#{AUTHOR_PATH}#{USER_PATH}/#{user_id}", params)
|
18
18
|
end
|
19
19
|
|
20
|
+
def restore_deleted_user(user_id, params = {})
|
21
|
+
post("#{API_PATH}#{AUTHOR_PATH}#{USER_PATH}/#{user_id}#{RESTORE_PATH}", params)
|
22
|
+
end
|
23
|
+
|
20
24
|
# Used for easier handling of updating custom params. This method will handle the lookup
|
21
25
|
# of existing custom_field_value ids and insert them as needed.
|
22
26
|
# ++user_id++ Bridge user ID
|
data/lib/bridge_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridge_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.42
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jay Shaffer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -220,6 +220,7 @@ files:
|
|
220
220
|
- lib/bridge_api/client/live_course_enrollment.rb
|
221
221
|
- lib/bridge_api/client/live_course_session.rb
|
222
222
|
- lib/bridge_api/client/manager.rb
|
223
|
+
- lib/bridge_api/client/program.rb
|
223
224
|
- lib/bridge_api/client/program_enrollment.rb
|
224
225
|
- lib/bridge_api/client/role.rb
|
225
226
|
- lib/bridge_api/client/sub_account.rb
|
@@ -291,54 +292,54 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
291
292
|
version: '0'
|
292
293
|
requirements: []
|
293
294
|
rubyforge_project:
|
294
|
-
rubygems_version: 2.
|
295
|
+
rubygems_version: 2.7.6
|
295
296
|
signing_key:
|
296
297
|
specification_version: 4
|
297
298
|
summary: Bridge API
|
298
299
|
test_files:
|
299
|
-
- spec/bridge_api/client_spec.rb
|
300
|
-
- spec/bridge_api/client/enrollment_spec.rb
|
301
|
-
- spec/bridge_api/client/custom_field_spec.rb
|
302
300
|
- spec/bridge_api/client/account_spec.rb
|
303
|
-
- spec/bridge_api/client/
|
304
|
-
- spec/bridge_api/client/live_course_spec.rb
|
301
|
+
- spec/bridge_api/client/affiliations.rb
|
305
302
|
- spec/bridge_api/client/clone_object_spec.rb
|
306
303
|
- spec/bridge_api/client/course_template_spec.rb
|
307
|
-
- spec/bridge_api/client/
|
304
|
+
- spec/bridge_api/client/custom_field_spec.rb
|
305
|
+
- spec/bridge_api/client/data_dump_spec.rb
|
306
|
+
- spec/bridge_api/client/enrollment_spec.rb
|
308
307
|
- spec/bridge_api/client/group_spec.rb
|
309
|
-
- spec/bridge_api/client/
|
308
|
+
- spec/bridge_api/client/live_course_enrollments_spec.rb
|
310
309
|
- spec/bridge_api/client/live_course_session_spec.rb
|
310
|
+
- spec/bridge_api/client/live_course_spec.rb
|
311
|
+
- spec/bridge_api/client/manager_spec.rb
|
311
312
|
- spec/bridge_api/client/program_enrollment_spec.rb
|
312
|
-
- spec/bridge_api/client/user_spec.rb
|
313
313
|
- spec/bridge_api/client/role_spec.rb
|
314
|
-
- spec/bridge_api/client/
|
315
|
-
- spec/bridge_api/client/
|
316
|
-
- spec/
|
317
|
-
- spec/fixtures/
|
318
|
-
- spec/fixtures/
|
319
|
-
- spec/fixtures/
|
320
|
-
- spec/fixtures/enrollment.json
|
321
|
-
- spec/fixtures/sub_accounts.json
|
322
|
-
- spec/fixtures/user_roles_add.json
|
314
|
+
- spec/bridge_api/client/sub_account_spec.rb
|
315
|
+
- spec/bridge_api/client/user_spec.rb
|
316
|
+
- spec/bridge_api/client_spec.rb
|
317
|
+
- spec/fixtures/accounts.json
|
318
|
+
- spec/fixtures/affiliations.json
|
319
|
+
- spec/fixtures/clone_objects.json
|
323
320
|
- spec/fixtures/course.json
|
324
|
-
- spec/fixtures/live_course_sessions.json
|
325
|
-
- spec/fixtures/data_dumps.json
|
326
|
-
- spec/fixtures/users.json
|
327
|
-
- spec/fixtures/direct_reports.json
|
328
|
-
- spec/fixtures/sub_account_lti_config.json
|
329
|
-
- spec/fixtures/user.json
|
330
321
|
- spec/fixtures/courses.json
|
331
|
-
- spec/fixtures/
|
322
|
+
- spec/fixtures/custom_fields.json
|
323
|
+
- spec/fixtures/data_dump.json
|
324
|
+
- spec/fixtures/data_dumps.json
|
332
325
|
- spec/fixtures/default_web_conference.json
|
333
|
-
- spec/fixtures/
|
334
|
-
- spec/fixtures/
|
326
|
+
- spec/fixtures/direct_reports.json
|
327
|
+
- spec/fixtures/enrollment.json
|
335
328
|
- spec/fixtures/enrollments.json
|
336
329
|
- spec/fixtures/group.json
|
337
|
-
- spec/fixtures/affiliations.json
|
338
|
-
- spec/fixtures/accounts.json
|
339
|
-
- spec/fixtures/live_courses.json
|
340
|
-
- spec/fixtures/clone_objects.json
|
341
|
-
- spec/fixtures/data_dump.json
|
342
330
|
- spec/fixtures/live_course_enrollments.json
|
343
|
-
- spec/fixtures/
|
331
|
+
- spec/fixtures/live_course_sessions.json
|
332
|
+
- spec/fixtures/live_courses.json
|
333
|
+
- spec/fixtures/managers.json
|
334
|
+
- spec/fixtures/program_enrollments.json
|
335
|
+
- spec/fixtures/programs.json
|
336
|
+
- spec/fixtures/roles.json
|
337
|
+
- spec/fixtures/sub_account_lti_config.json
|
338
|
+
- spec/fixtures/sub_account_lti_config_update.json
|
339
|
+
- spec/fixtures/sub_account_new_lti_config.json
|
340
|
+
- spec/fixtures/sub_accounts.json
|
341
|
+
- spec/fixtures/user.json
|
342
|
+
- spec/fixtures/user_roles_add.json
|
343
|
+
- spec/fixtures/users.json
|
344
|
+
- spec/support/fake_bridge.rb
|
344
345
|
- spec/test_helper.rb
|