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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ce46eee834b48d1cdcf925b6d4894b3852a963542c6ba4f3675a2abce0b4e42
4
- data.tar.gz: a2f0cf50121f5fe2ae41a6ffcecff2ef69dbdebcf028250fc2300e2f60eb9e85
3
+ metadata.gz: 95d41397fd44d6bc2a3a971dcba2dc2f6ebbefbcaabed91de23783f3591a4c5f
4
+ data.tar.gz: db17b58c3f6490313524567e1d7ecac6056f6bb82f032c277da87474d3fbaf11
5
5
  SHA512:
6
- metadata.gz: 4070053e47e7b13cb78cebf9e33b6729d9702fa095dbcd02144b1383a705a8d8319c6cafda1bd20db23703a545569f54c5717fcbfa710bd353d971a186e91c4b
7
- data.tar.gz: 463cc154f6d8df0fccd3cfaf4e571f5110e5712572db3a1313455319b055076bd6fd93f558a21bc0bb0daa54956c095243fa4be2fdb73def7085b8704d879009
6
+ metadata.gz: 487654a7c9f0d9f5bd7cfcf9a49fe1b22889eb2ddc36774831b70fe5954c73188690ea4e115031f5af889784daec7507bff60939e4a3a0805e1f22dcefd5888f
7
+ data.tar.gz: 138e0d6b9c239aec547d372bd21d1ec6c85844998f892de8a314f0949d06997e3d72a0dfb71d05a55ada2ed547dcfd5f406029ece021e5a4a3f34b64be8e1240
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.5.0.beta4' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.5.0' unless defined?(Bearcat::VERSION)
3
3
  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.beta4
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-30 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: