bridge_api 0.1.62 → 0.1.63
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f7d6ea6a260943cb99e83ffdd26cf7c0e68d0d383ca31e7cd96a16065261903a
|
4
|
+
data.tar.gz: a8e36b9a696de1d2245dcb8bea4844a21fac2b6da185032b07101d424e66143c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9fb10e6dc27d66c2ba3273ebfd7b0770245590256d1782be1cf9398b3a61c4ef36e2af7677da48322cabc35d0ca932a2ab3828f650b523e0ba85f71e6b3db14
|
7
|
+
data.tar.gz: a828d6bef4d11150bd2b4968fdeb81908c06e44de3ab8fb044fff5bc09c61b586d15c466b12ca41496bb5e3d1d5990ab12464691d6b6876327b7094451fd58e8
|
@@ -11,6 +11,10 @@ module BridgeAPI
|
|
11
11
|
post("#{API_PATH}#{AUTHOR_PATH}#{PROGRAM_PATH}/#{program_id}#{PROGRAM_ENROLLMENT_PATH}", params)
|
12
12
|
end
|
13
13
|
|
14
|
+
def update_program_enrollment(program_id, program_enrollment_id, params = {})
|
15
|
+
put("#{API_PATH}#{AUTHOR_PATH}#{PROGRAM_PATH}/#{program_id}#{PROGRAM_ENROLLMENT_PATH}/#{program_enrollment_id}", params)
|
16
|
+
end
|
17
|
+
|
14
18
|
def delete_program_enrollment(program_id, enrollment_id, params = {})
|
15
19
|
delete("#{API_PATH}#{AUTHOR_PATH}#{PROGRAM_PATH}/#{program_id}#{PROGRAM_ENROLLMENT_PATH}/#{enrollment_id}", params)
|
16
20
|
end
|
data/lib/bridge_api/version.rb
CHANGED
@@ -12,6 +12,11 @@ describe BridgeAPI::Client::ProgramEnrollment do
|
|
12
12
|
expect(response.status).to(eq(204))
|
13
13
|
end
|
14
14
|
|
15
|
+
it 'should udpate a program enrollment' do
|
16
|
+
response = @client.update_program_enrollment(1, 1)
|
17
|
+
expect(response.status).to(eq(200))
|
18
|
+
end
|
19
|
+
|
15
20
|
it 'should delete a program enrollment' do
|
16
21
|
response = @client.delete_program_enrollment(1, 2)
|
17
22
|
expect(response.status).to(eq(204))
|
data/spec/support/fake_bridge.rb
CHANGED
@@ -52,6 +52,10 @@ class FakeBridge < Sinatra::Base
|
|
52
52
|
get_json_data 200, 'program_enrollments.json'
|
53
53
|
end
|
54
54
|
|
55
|
+
put %r{/api/author/programs/\d+/learners/\d+} do
|
56
|
+
get_json_data 200, 'program_enrollments.json'
|
57
|
+
end
|
58
|
+
|
55
59
|
post %r{/api/author/programs/\d+/learners} do
|
56
60
|
get_json_data 204, nil
|
57
61
|
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.1.
|
4
|
+
version: 0.1.63
|
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:
|
11
|
+
date: 2020-10-19 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
|
@@ -282,7 +282,7 @@ homepage: https://getbridge.com
|
|
282
282
|
licenses:
|
283
283
|
- MIT
|
284
284
|
metadata: {}
|
285
|
-
post_install_message:
|
285
|
+
post_install_message:
|
286
286
|
rdoc_options: []
|
287
287
|
require_paths:
|
288
288
|
- lib
|
@@ -297,9 +297,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
297
297
|
- !ruby/object:Gem::Version
|
298
298
|
version: '0'
|
299
299
|
requirements: []
|
300
|
-
|
301
|
-
|
302
|
-
signing_key:
|
300
|
+
rubygems_version: 3.0.3
|
301
|
+
signing_key:
|
303
302
|
specification_version: 4
|
304
303
|
summary: Bridge API
|
305
304
|
test_files:
|