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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: abfc687839f0adc703d282a7f9b8b079de360f12
4
- data.tar.gz: 7cba8884fe6500153c69e1090a19c5f5a2815ee9
3
+ metadata.gz: d27ee9cce1ed1d476be500728c9d1429a2b672a0
4
+ data.tar.gz: eb76aa1ffdd7ce8aeb88e41461c0d7f57f333b1f
5
5
  SHA512:
6
- metadata.gz: c2afb3a1c7d64b8fdabfc1706cf617817040aac1909f854758692681e2d22c2e81658d2807cb72ac1bb1f9f193b21921c1523ad511149a7572da03b1437dca50
7
- data.tar.gz: 5811fea00009061b064e8a1ea3b7b48be15c89c7774779ff4aa0cdf7b0df76901a33667202028cd9a5f6a9a655d502b0b439b9e782a919f0eea307d40eedc0bc
6
+ metadata.gz: 52a9d6f7c026674dcb94679aa0a73d7ae67ed0126aa72f289349b1c15bdb4fd172efbf527f7a6c7ddb781e403d506b2484a3dbc843bc558fcdd3573050c07c69
7
+ data.tar.gz: c73d0158fbd320e6370f928b555f1b93efcb1ab8edc06d2ada243013f93e053cdffd19787c0c39c520a0524af6eb65b3b435e5f0b912c8191a5dfe1b3435748f
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bridge_api (0.1.15)
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.2)
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.8.6)
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.10.2)
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.3)
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.14.6
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
@@ -1,3 +1,3 @@
1
1
  module BridgeAPI
2
- VERSION = '0.1.15' unless defined?(BridgeAPI::VERSION)
2
+ VERSION = '0.1.16' unless defined?(BridgeAPI::VERSION)
3
3
  end
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.15
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: 2017-07-28 00:00:00.000000000 Z
11
+ date: 2018-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake