bridge_api 0.3.4 → 0.3.6

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
  SHA256:
3
- metadata.gz: 4162b5cdc4ae4af9f0c51f4bcdeb7d078a0094f297d91bf11d325119642922f9
4
- data.tar.gz: 4af7c5d96b3e95df14ca20c1f2d60c678e5b3a90ad33c2fe86c9daa8eaadc758
3
+ metadata.gz: 7ff17240829dec1ef6a0b5ab15cfc5949e178c5e89780ce1870a7d90b53cb2ad
4
+ data.tar.gz: c4cefacbb8baf4481f7f51727e83371f7b25ba8babc59407fe9372a99064dc8e
5
5
  SHA512:
6
- metadata.gz: 1ba2625d2ef598d6e6a6ecd33ee4f2e69b13e896ed7588f520da817af9ccc543905d4f51d4c91b6598f7c0ac1023ca51c3b8827edc5b2c306ed6f91d8af05ce4
7
- data.tar.gz: 2e70fc5fa2905cc3872b071f94306b628f52b0c8becbddf8085564ed5ec5efc1b70b199962cd7841101ebcff4818df85209f5efb03a004c9766385590f0dd27c
6
+ metadata.gz: aeaeb370332fd1042f46a27648868d691f22fc60f0a2437742ee8893c87e1687b35567fc457658ab1d0b9ab57a8966c0a1f4c65a4279bfdb05028723dbac1c03
7
+ data.tar.gz: 57beaeaf46c4ea551ef62aebf8ddb7c055394db171d3d1555124fb65ccf06ecf9d136e2eb9f1081de4aebe5d9b88de3bf7329fe8440ef8311ac205cd7b9550a4
@@ -35,6 +35,10 @@ module BridgeAPI
35
35
  put("#{API_PATH}#{AUTHOR_PATH}#{COURSE_TEMPLATE_PATH}/#{course_template_id}/#{SUB_ACCOUNT_PATH}/share", params)
36
36
  end
37
37
 
38
+ def async_share_course_with_subaccount(course_template_id, params = {})
39
+ put("#{API_PATH}#{AUTHOR_PATH}#{COURSE_TEMPLATE_PATH}/#{course_template_id}/#{SUB_ACCOUNT_PATH}/share_async", params)
40
+ end
41
+
38
42
  def revoke_course_from_subaccount(course_template_id, params = {})
39
43
  put("#{API_PATH}#{AUTHOR_PATH}#{COURSE_TEMPLATE_PATH}/#{course_template_id}/#{SUB_ACCOUNT_PATH}/revoke", params)
40
44
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BridgeAPI
4
- VERSION = '0.3.4' unless defined?(BridgeAPI::VERSION)
4
+ VERSION = '0.3.6' unless defined?(BridgeAPI::VERSION)
5
5
  end
metadata CHANGED
@@ -1,35 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridge_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay Shaffer
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-14 00:00:00.000000000 Z
11
+ date: 2025-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.0'
20
17
  - - ">="
21
18
  - !ruby/object:Gem::Version
22
19
  version: 1.0.0
20
+ - - "~>"
21
+ - !ruby/object:Gem::Version
22
+ version: '1.0'
23
23
  type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '1.0'
30
27
  - - ">="
31
28
  - !ruby/object:Gem::Version
32
29
  version: 1.0.0
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '1.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: byebug
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -104,22 +104,22 @@ dependencies:
104
104
  name: tilt
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- version: 1.3.4
110
107
  - - "~>"
111
108
  - !ruby/object:Gem::Version
112
109
  version: '1.3'
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: 1.3.4
113
113
  type: :development
114
114
  prerelease: false
115
115
  version_requirements: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - ">="
118
- - !ruby/object:Gem::Version
119
- version: 1.3.4
120
117
  - - "~>"
121
118
  - !ruby/object:Gem::Version
122
119
  version: '1.3'
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 1.3.4
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: webmock
125
125
  requirement: !ruby/object:Gem::Requirement
@@ -303,7 +303,7 @@ homepage: https://getbridge.com
303
303
  licenses:
304
304
  - MIT
305
305
  metadata: {}
306
- post_install_message:
306
+ post_install_message:
307
307
  rdoc_options: []
308
308
  require_paths:
309
309
  - lib
@@ -318,60 +318,60 @@ required_rubygems_version: !ruby/object:Gem::Requirement
318
318
  - !ruby/object:Gem::Version
319
319
  version: '0'
320
320
  requirements: []
321
- rubygems_version: 3.4.10
322
- signing_key:
321
+ rubygems_version: 3.0.3.1
322
+ signing_key:
323
323
  specification_version: 4
324
324
  summary: Bridge API
325
325
  test_files:
326
+ - spec/bridge_api/client_spec.rb
327
+ - spec/bridge_api/client/enrollment_spec.rb
328
+ - spec/bridge_api/client/custom_field_spec.rb
326
329
  - spec/bridge_api/client/account_spec.rb
327
- - spec/bridge_api/client/affiliations_spec.rb
330
+ - spec/bridge_api/client/data_dump_spec.rb
331
+ - spec/bridge_api/client/live_course_spec.rb
328
332
  - spec/bridge_api/client/clone_object_spec.rb
329
333
  - spec/bridge_api/client/course_template_spec.rb
330
- - spec/bridge_api/client/custom_field_spec.rb
331
- - spec/bridge_api/client/data_dump_spec.rb
332
- - spec/bridge_api/client/enrollment_spec.rb
334
+ - spec/bridge_api/client/affiliations_spec.rb
335
+ - spec/bridge_api/client/sub_account_spec.rb
333
336
  - spec/bridge_api/client/group_spec.rb
334
- - spec/bridge_api/client/learner_items_spec.rb
335
- - spec/bridge_api/client/live_course_enrollments_spec.rb
336
337
  - spec/bridge_api/client/live_course_session_spec.rb
337
- - spec/bridge_api/client/live_course_spec.rb
338
- - spec/bridge_api/client/manager_spec.rb
339
338
  - spec/bridge_api/client/program_enrollment_spec.rb
340
- - spec/bridge_api/client/role_spec.rb
341
- - spec/bridge_api/client/sub_account_spec.rb
342
339
  - spec/bridge_api/client/user_spec.rb
343
- - spec/bridge_api/client_spec.rb
344
- - spec/fixtures/accounts.json
345
- - spec/fixtures/affiliations.json
346
- - spec/fixtures/clone_objects.json
340
+ - spec/bridge_api/client/role_spec.rb
341
+ - spec/bridge_api/client/manager_spec.rb
342
+ - spec/bridge_api/client/live_course_enrollments_spec.rb
343
+ - spec/bridge_api/client/learner_items_spec.rb
344
+ - spec/support/fake_bridge.rb
345
+ - spec/fixtures/roles.json
346
+ - spec/fixtures/live_course.json
347
+ - spec/fixtures/managers.json
348
+ - spec/fixtures/temporary_users.json
349
+ - spec/fixtures/program_enrollments.json
350
+ - spec/fixtures/enrollment.json
351
+ - spec/fixtures/sub_accounts.json
352
+ - spec/fixtures/user_roles_add.json
347
353
  - spec/fixtures/course.json
348
- - spec/fixtures/courses.json
349
- - spec/fixtures/custom_attribute_values.json
350
- - spec/fixtures/custom_fields.json
351
- - spec/fixtures/data_dump.json
354
+ - spec/fixtures/live_course_sessions.json
352
355
  - spec/fixtures/data_dumps.json
353
- - spec/fixtures/default_web_conference.json
356
+ - spec/fixtures/users.json
354
357
  - spec/fixtures/direct_reports.json
355
- - spec/fixtures/enrollment.json
356
- - spec/fixtures/enrollments.json
357
- - spec/fixtures/group.json
358
358
  - spec/fixtures/learner_enrollments.json
359
- - spec/fixtures/learner_items.json
360
- - spec/fixtures/live_course.json
361
- - spec/fixtures/live_course_enrollments.json
362
- - spec/fixtures/live_course_sessions.json
363
- - spec/fixtures/live_courses.json
364
- - spec/fixtures/managers.json
365
- - spec/fixtures/program_enrollments.json
366
- - spec/fixtures/programs.json
367
- - spec/fixtures/roles.json
368
359
  - spec/fixtures/sub_account_lti_config.json
360
+ - spec/fixtures/user.json
361
+ - spec/fixtures/custom_attribute_values.json
362
+ - spec/fixtures/courses.json
369
363
  - spec/fixtures/sub_account_lti_config_update.json
364
+ - spec/fixtures/default_web_conference.json
365
+ - spec/fixtures/programs.json
366
+ - spec/fixtures/learner_items.json
370
367
  - spec/fixtures/sub_account_new_lti_config.json
371
- - spec/fixtures/sub_accounts.json
372
- - spec/fixtures/temporary_users.json
373
- - spec/fixtures/user.json
374
- - spec/fixtures/user_roles_add.json
375
- - spec/fixtures/users.json
376
- - spec/support/fake_bridge.rb
368
+ - spec/fixtures/enrollments.json
369
+ - spec/fixtures/group.json
370
+ - spec/fixtures/affiliations.json
371
+ - spec/fixtures/accounts.json
372
+ - spec/fixtures/live_courses.json
373
+ - spec/fixtures/clone_objects.json
374
+ - spec/fixtures/data_dump.json
375
+ - spec/fixtures/live_course_enrollments.json
376
+ - spec/fixtures/custom_fields.json
377
377
  - spec/test_helper.rb