companion_cube 0.2.3 → 0.2.4
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 +4 -4
- data/CHANGELOG.md +10 -3
- data/LICENSE +2 -20
- data/bin/console +1 -0
- data/lib/companion_cube/client.rb +9 -4
- data/lib/companion_cube/version.rb +1 -1
- metadata +19 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: edbd6ae29911b71103267e8cb01f33c6e42cd68d645ebc3eb96de8c34205a7dd
|
4
|
+
data.tar.gz: d440c700aac2104cc7493c0d9c459b0da8a577d73b116610189a39bf07bafedc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 668d0cc97aada29e7ed752b82371640da46cf5c226605dc2f0ecdcb327fc6d5b4703b09a136c3544edbf9f530214dfd05a5866503ead9a8f63de8d619763b184
|
7
|
+
data.tar.gz: c60c2536e82b22b8603afc8cca00d47da961a90709403801ae3403a8a0bba7470ff941ffb07d3ecf6c4fac0eabeb952876ac4b5808b30b7a8f6984b44aeb155c
|
data/CHANGELOG.md
CHANGED
@@ -4,9 +4,14 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
6
6
|
|
7
|
-
## [0.2.
|
7
|
+
## [0.2.4][] - 2020-09-18
|
8
8
|
### Added
|
9
|
-
-
|
9
|
+
- Support for `/enrollments/{course_id}`
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
- Updated Dockerfile to Ruby 2.5
|
13
|
+
- Updated rubocop file
|
14
|
+
- Updated travis repo pointer
|
10
15
|
|
11
16
|
## [0.2.0][] - 2017-05-11
|
12
17
|
### Added
|
@@ -38,6 +43,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
38
43
|
### Added
|
39
44
|
- Implement all APIs
|
40
45
|
|
41
|
-
[Unreleased]: https://github.ibm.com/bdu/companion-cube-ruby/compare/0.
|
46
|
+
[Unreleased]: https://github.ibm.com/bdu/companion-cube-ruby/compare/0.2.4...HEAD
|
47
|
+
[0.2.4]: https://github.ibm.com/bdu/companion-cube-ruby/compare/0.2.0...0.2.4
|
48
|
+
[0.2.0]: https://github.ibm.com/bdu/companion-cube-ruby/compare/0.1.2...0.2.0
|
42
49
|
[0.1.2]: https://github.ibm.com/bdu/companion-cube-ruby/compare/0.1.1...0.1.2
|
43
50
|
[0.1.1]: https://github.ibm.com/bdu/companion-cube-ruby/compare/0.1.0...0.1.1
|
data/LICENSE
CHANGED
@@ -1,21 +1,3 @@
|
|
1
|
-
|
1
|
+
Copyright (C) 2017 IBM Corporation
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
13
|
-
copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
-
SOFTWARE.
|
3
|
+
All rights reserved - Do Not Redistribute
|
data/bin/console
CHANGED
@@ -25,16 +25,21 @@ module CompanionCube
|
|
25
25
|
send_request(:post, "/courses", body: params)
|
26
26
|
end
|
27
27
|
|
28
|
-
def delete_course(id)
|
29
|
-
send_request(:delete, "/courses/#{id}")
|
30
|
-
end
|
31
|
-
|
32
28
|
def course(id)
|
33
29
|
raise "Missing required parameter 'id'" if id.nil?
|
34
30
|
|
35
31
|
JSON.parse(send_request(:get, "/courses/#{id}"))
|
36
32
|
end
|
37
33
|
|
34
|
+
def enroll_user(id, email)
|
35
|
+
raise "Missing required parameter 'id'" if id.nil?
|
36
|
+
raise "Missing required parameter 'email'" if email.nil?
|
37
|
+
params = Hash.new
|
38
|
+
params[:id] = id
|
39
|
+
params[:email] = email
|
40
|
+
send_request(:put, "/enrollments/#{id}", body: params)
|
41
|
+
end
|
42
|
+
|
38
43
|
def update_course(id, params)
|
39
44
|
params[:multipart] = true
|
40
45
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: companion_cube
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Partner Ecosystem Team, IBM Digital Business Group
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.1.4
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.1.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0.48'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop-rails
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: bundler-audit
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -137,7 +151,7 @@ files:
|
|
137
151
|
- lib/companion_cube.rb
|
138
152
|
- lib/companion_cube/client.rb
|
139
153
|
- lib/companion_cube/version.rb
|
140
|
-
homepage: https://github.com/
|
154
|
+
homepage: https://github.ibm.com/bdu/companion-cube-ruby
|
141
155
|
licenses:
|
142
156
|
- All rights reserved.
|
143
157
|
metadata: {}
|