bridge_api 0.1.15 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -6
- data/lib/bridge_api/client/sub_account.rb +8 -0
- data/lib/bridge_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d27ee9cce1ed1d476be500728c9d1429a2b672a0
|
4
|
+
data.tar.gz: eb76aa1ffdd7ce8aeb88e41461c0d7f57f333b1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52a9d6f7c026674dcb94679aa0a73d7ae67ed0126aa72f289349b1c15bdb4fd172efbf527f7a6c7ddb781e403d506b2484a3dbc843bc558fcdd3573050c07c69
|
7
|
+
data.tar.gz: c73d0158fbd320e6370f928b555f1b93efcb1ab8edc06d2ada243013f93e053cdffd19787c0c39c520a0524af6eb65b3b435e5f0b912c8191a5dfe1b3435748f
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
bridge_api (0.1.
|
4
|
+
bridge_api (0.1.16)
|
5
5
|
faraday (~> 0.9.0)
|
6
6
|
faraday_middleware (~> 0.9.0)
|
7
7
|
footrest (>= 0.5.1)
|
@@ -9,7 +9,7 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
activesupport (5.1.
|
12
|
+
activesupport (5.1.4)
|
13
13
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
14
14
|
i18n (~> 0.7)
|
15
15
|
minitest (~> 5.1)
|
@@ -31,10 +31,11 @@ GEM
|
|
31
31
|
faraday (~> 0.9.0)
|
32
32
|
link_header (>= 0.0.7)
|
33
33
|
hashdiff (0.3.2)
|
34
|
-
i18n (0.
|
34
|
+
i18n (0.9.1)
|
35
|
+
concurrent-ruby (~> 1.0)
|
35
36
|
link_header (0.0.8)
|
36
37
|
method_source (0.8.2)
|
37
|
-
minitest (5.
|
38
|
+
minitest (5.11.1)
|
38
39
|
multipart-post (2.0.0)
|
39
40
|
pry (0.10.4)
|
40
41
|
coderay (~> 1.1.0)
|
@@ -61,7 +62,7 @@ GEM
|
|
61
62
|
slop (3.6.0)
|
62
63
|
thread_safe (0.3.6)
|
63
64
|
tilt (1.4.1)
|
64
|
-
tzinfo (1.2.
|
65
|
+
tzinfo (1.2.4)
|
65
66
|
thread_safe (~> 0.1)
|
66
67
|
webmock (1.22.6)
|
67
68
|
addressable (>= 2.3.6)
|
@@ -83,4 +84,4 @@ DEPENDENCIES
|
|
83
84
|
webmock (~> 1.22.6)
|
84
85
|
|
85
86
|
BUNDLED WITH
|
86
|
-
1.
|
87
|
+
1.16.1
|
@@ -4,6 +4,14 @@ module BridgeAPI
|
|
4
4
|
def get_sub_accounts(params = {})
|
5
5
|
get("#{API_PATH}#{ADMIN_PATH}#{SUB_ACCOUNT_PATH}", params)
|
6
6
|
end
|
7
|
+
|
8
|
+
def share_course_with_subaccount(course_template_id, params = {})
|
9
|
+
put("#{API_PATH}#{AUTHOR_PATH}#{COURSE_TEMPLATE_PATH}/#{course_template_id}/#{SUB_ACCOUNT_PATH}/share", params)
|
10
|
+
end
|
11
|
+
|
12
|
+
def revoke_course_from_subaccount(course_template_id, params = {})
|
13
|
+
put("#{API_PATH}#{AUTHOR_PATH}#{COURSE_TEMPLATE_PATH}/#{course_template_id}/#{SUB_ACCOUNT_PATH}/revoke", params)
|
14
|
+
end
|
7
15
|
end
|
8
16
|
end
|
9
17
|
end
|
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.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jay Shaffer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|