bearcat 1.5.0.beta4 → 1.5.2
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd7f00328deb0fa54d4b5ed788aba128b83ca02abe62a33737ca70a4ef42a6fc
|
4
|
+
data.tar.gz: 40f404c58a48bd6a73ed580b67ccd2cc50de49f5fa0d8c3716df7aae1741fd91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c43d08d73ef132b9fee87a16cb8a3914150de65d389100f4bd23984e9774ccce868a9ed342171c4e21026144457fb73f546908ed9a93fc562e0176c89d9a5dd2
|
7
|
+
data.tar.gz: 91f2ad7876752a681709f5bd2e479c6d9e8605043d09455bd9445fa61667ac760c7560d6aaf1a91c2ab636e27b19ce2a3bca8300a18add725068ee1cd5d83cf5
|
data/lib/bearcat/version.rb
CHANGED
data/lib/catalogcat/api_array.rb
CHANGED
@@ -11,6 +11,8 @@ module Catalogcat
|
|
11
11
|
key = 'catalogs' if path =~ %r{.*/catalogs}
|
12
12
|
key = 'enrollments' if path =~ %r{.*/enrollments}
|
13
13
|
key = 'order' if path =~ %r{.*/order/[0-9]*}
|
14
|
+
key = 'completed_certificates' if path =~ %r{.*/completed_certificates}
|
15
|
+
key = 'user_registrations' if path =~ %r{.*/user_registrations}
|
14
16
|
end
|
15
17
|
key.present? ? key : super(response)
|
16
18
|
end
|
@@ -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.
|
4
|
+
version: 1.5.2
|
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-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -191,7 +191,9 @@ 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
|
196
|
+
- lib/catalogcat/client/user_registrations.rb
|
195
197
|
- lib/catalogcat/version.rb
|
196
198
|
- spec/bearcat/api_array_spec.rb
|
197
199
|
- spec/bearcat/client/accounts_spec.rb
|
@@ -397,9 +399,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
397
399
|
version: '0'
|
398
400
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
399
401
|
requirements:
|
400
|
-
- - "
|
402
|
+
- - ">="
|
401
403
|
- !ruby/object:Gem::Version
|
402
|
-
version:
|
404
|
+
version: '0'
|
403
405
|
requirements: []
|
404
406
|
rubygems_version: 3.1.6
|
405
407
|
signing_key:
|