bearcat 1.5.0.beta3 → 1.5.0

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: 830e59c042dbbc2af216f866ac9256836fddd0162a8fd007d3688251a640cfd9
4
- data.tar.gz: f7bb5edaae3618574f53e31c648e284e9b20259ab213bea0418a9b02fd91244c
3
+ metadata.gz: 95d41397fd44d6bc2a3a971dcba2dc2f6ebbefbcaabed91de23783f3591a4c5f
4
+ data.tar.gz: db17b58c3f6490313524567e1d7ecac6056f6bb82f032c277da87474d3fbaf11
5
5
  SHA512:
6
- metadata.gz: 3a8d5b6ccf14fbd6300f1779ea86910421ac0d9b3df38598327cd2b6a4fa3ac1e160f1f1324a7583f37e24de8a75deb74d14d480f1a8f89759ed6b2ce7c5dac7
7
- data.tar.gz: e8e7aecf6176f92745c32d5e2722176654298fd67593030245da304beb605eb3165d50b7d930e5983d226e8f4ddda93a8471919a768c32613fa3cd9e66c95b89
6
+ metadata.gz: 487654a7c9f0d9f5bd7cfcf9a49fe1b22889eb2ddc36774831b70fe5954c73188690ea4e115031f5af889784daec7507bff60939e4a3a0805e1f22dcefd5888f
7
+ data.tar.gz: 138e0d6b9c239aec547d372bd21d1ec6c85844998f892de8a314f0949d06997e3d72a0dfb71d05a55ada2ed547dcfd5f406029ece021e5a4a3f34b64be8e1240
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.5.0.beta3' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.5.0' unless defined?(Bearcat::VERSION)
3
3
  end
@@ -1,6 +1,6 @@
1
1
  module Catalogcat
2
2
  class Client < Footrest::Client
3
- module Courses
3
+ module Certificates
4
4
  def create_certificate(params = {})
5
5
  post('/api/v1/certificates', params)
6
6
  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.0.beta3
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-03-28 00:00:00.000000000 Z
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: 1.3.1
403
+ version: '0'
403
404
  requirements: []
404
405
  rubygems_version: 3.1.6
405
406
  signing_key: