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: 5ce46eee834b48d1cdcf925b6d4894b3852a963542c6ba4f3675a2abce0b4e42
4
- data.tar.gz: a2f0cf50121f5fe2ae41a6ffcecff2ef69dbdebcf028250fc2300e2f60eb9e85
3
+ metadata.gz: fd7f00328deb0fa54d4b5ed788aba128b83ca02abe62a33737ca70a4ef42a6fc
4
+ data.tar.gz: 40f404c58a48bd6a73ed580b67ccd2cc50de49f5fa0d8c3716df7aae1741fd91
5
5
  SHA512:
6
- metadata.gz: 4070053e47e7b13cb78cebf9e33b6729d9702fa095dbcd02144b1383a705a8d8319c6cafda1bd20db23703a545569f54c5717fcbfa710bd353d971a186e91c4b
7
- data.tar.gz: 463cc154f6d8df0fccd3cfaf4e571f5110e5712572db3a1313455319b055076bd6fd93f558a21bc0bb0daa54956c095243fa4be2fdb73def7085b8704d879009
6
+ metadata.gz: c43d08d73ef132b9fee87a16cb8a3914150de65d389100f4bd23984e9774ccce868a9ed342171c4e21026144457fb73f546908ed9a93fc562e0176c89d9a5dd2
7
+ data.tar.gz: 91f2ad7876752a681709f5bd2e479c6d9e8605043d09455bd9445fa61667ac760c7560d6aaf1a91c2ab636e27b19ce2a3bca8300a18add725068ee1cd5d83cf5
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.5.0.beta4' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.5.2' unless defined?(Bearcat::VERSION)
3
3
  end
@@ -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
@@ -4,6 +4,10 @@ module Catalogcat
4
4
  def create_certificate(params = {})
5
5
  post('/api/v1/certificates', params)
6
6
  end
7
+
8
+ def list_completed_certificates(params = {})
9
+ get("/api/v1/completed_certificates", params)
10
+ end
7
11
  end
8
12
  end
9
13
  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
@@ -0,0 +1,9 @@
1
+ module Catalogcat
2
+ class Client < Footrest::Client
3
+ module UserRegistrations
4
+ def list_user_registrations(params = {})
5
+ get("/api/v1/user_registrations", params)
6
+ end
7
+ end
8
+ end
9
+ 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.beta4
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-03-30 00:00:00.000000000 Z
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: 1.3.1
404
+ version: '0'
403
405
  requirements: []
404
406
  rubygems_version: 3.1.6
405
407
  signing_key: