bearcat 1.5.0.beta4 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bearcat/version.rb +1 -1
- data/lib/catalogcat/client/enrollments.rb +25 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95d41397fd44d6bc2a3a971dcba2dc2f6ebbefbcaabed91de23783f3591a4c5f
|
4
|
+
data.tar.gz: db17b58c3f6490313524567e1d7ecac6056f6bb82f032c277da87474d3fbaf11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 487654a7c9f0d9f5bd7cfcf9a49fe1b22889eb2ddc36774831b70fe5954c73188690ea4e115031f5af889784daec7507bff60939e4a3a0805e1f22dcefd5888f
|
7
|
+
data.tar.gz: 138e0d6b9c239aec547d372bd21d1ec6c85844998f892de8a314f0949d06997e3d72a0dfb71d05a55ada2ed547dcfd5f406029ece021e5a4a3f34b64be8e1240
|
data/lib/bearcat/version.rb
CHANGED
@@ -0,0 +1,25 @@
|
|
1
|
+
module Catalogcat
|
2
|
+
class Client < Footrest::Client
|
3
|
+
module Enrollments
|
4
|
+
def list_enrollments(page = 1, params = {})
|
5
|
+
get("/api/v1/enrollments?page=#{page}&per_page=100", params)
|
6
|
+
end
|
7
|
+
|
8
|
+
def create_enrollment(params = {})
|
9
|
+
post('api/v1/enrollments', params)
|
10
|
+
end
|
11
|
+
|
12
|
+
def update_enrollment(id, params = {})
|
13
|
+
put("/api/v1/enrollments/#{id}", params)
|
14
|
+
end
|
15
|
+
|
16
|
+
def get_enrollment(id, params = {})
|
17
|
+
get("/api/v1/enrollments/#{id}", params)
|
18
|
+
end
|
19
|
+
|
20
|
+
def delete_enrollment(enrollment)
|
21
|
+
delete("/api/v1/enrollments/#{enrollment}")
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bearcat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.0
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Mills, Jake Sorce
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -191,6 +191,7 @@ files:
|
|
191
191
|
- lib/catalogcat/client/catalogs.rb
|
192
192
|
- lib/catalogcat/client/certificates.rb
|
193
193
|
- lib/catalogcat/client/courses.rb
|
194
|
+
- lib/catalogcat/client/enrollments.rb
|
194
195
|
- lib/catalogcat/client/orders.rb
|
195
196
|
- lib/catalogcat/version.rb
|
196
197
|
- spec/bearcat/api_array_spec.rb
|
@@ -397,9 +398,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
397
398
|
version: '0'
|
398
399
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
399
400
|
requirements:
|
400
|
-
- - "
|
401
|
+
- - ">="
|
401
402
|
- !ruby/object:Gem::Version
|
402
|
-
version:
|
403
|
+
version: '0'
|
403
404
|
requirements: []
|
404
405
|
rubygems_version: 3.1.6
|
405
406
|
signing_key:
|