bearcat 1.5.0 → 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: 95d41397fd44d6bc2a3a971dcba2dc2f6ebbefbcaabed91de23783f3591a4c5f
4
- data.tar.gz: db17b58c3f6490313524567e1d7ecac6056f6bb82f032c277da87474d3fbaf11
3
+ metadata.gz: fd7f00328deb0fa54d4b5ed788aba128b83ca02abe62a33737ca70a4ef42a6fc
4
+ data.tar.gz: 40f404c58a48bd6a73ed580b67ccd2cc50de49f5fa0d8c3716df7aae1741fd91
5
5
  SHA512:
6
- metadata.gz: 487654a7c9f0d9f5bd7cfcf9a49fe1b22889eb2ddc36774831b70fe5954c73188690ea4e115031f5af889784daec7507bff60939e4a3a0805e1f22dcefd5888f
7
- data.tar.gz: 138e0d6b9c239aec547d372bd21d1ec6c85844998f892de8a314f0949d06997e3d72a0dfb71d05a55ada2ed547dcfd5f406029ece021e5a4a3f34b64be8e1240
6
+ metadata.gz: c43d08d73ef132b9fee87a16cb8a3914150de65d389100f4bd23984e9774ccce868a9ed342171c4e21026144457fb73f546908ed9a93fc562e0176c89d9a5dd2
7
+ data.tar.gz: 91f2ad7876752a681709f5bd2e479c6d9e8605043d09455bd9445fa61667ac760c7560d6aaf1a91c2ab636e27b19ce2a3bca8300a18add725068ee1cd5d83cf5
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.5.0' 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,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
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-04-06 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
@@ -193,6 +193,7 @@ files:
193
193
  - lib/catalogcat/client/courses.rb
194
194
  - lib/catalogcat/client/enrollments.rb
195
195
  - lib/catalogcat/client/orders.rb
196
+ - lib/catalogcat/client/user_registrations.rb
196
197
  - lib/catalogcat/version.rb
197
198
  - spec/bearcat/api_array_spec.rb
198
199
  - spec/bearcat/client/accounts_spec.rb