bearcat 1.5.0 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95d41397fd44d6bc2a3a971dcba2dc2f6ebbefbcaabed91de23783f3591a4c5f
4
- data.tar.gz: db17b58c3f6490313524567e1d7ecac6056f6bb82f032c277da87474d3fbaf11
3
+ metadata.gz: 6fe8ce50483b5b09f5602a507e60004001e4640e4b47dac406c5775d469ebc28
4
+ data.tar.gz: 134a4bd1039116aba1b50deab1ee9e5af8d352f5e9633a1ce4c51d63c6668ea9
5
5
  SHA512:
6
- metadata.gz: 487654a7c9f0d9f5bd7cfcf9a49fe1b22889eb2ddc36774831b70fe5954c73188690ea4e115031f5af889784daec7507bff60939e4a3a0805e1f22dcefd5888f
7
- data.tar.gz: 138e0d6b9c239aec547d372bd21d1ec6c85844998f892de8a314f0949d06997e3d72a0dfb71d05a55ada2ed547dcfd5f406029ece021e5a4a3f34b64be8e1240
6
+ metadata.gz: 5b6cec7edf9eb8678a28529e803fda45af2fe4cb0f7be1444701301a2e7014c26a07a66a0468369917460be210fb68177ad269bba1209f954723a2666a2434b1
7
+ data.tar.gz: 777749586a7efa350a34dfc4f4046fddefce73bb04bbf46645dd1aec34d13c7dd96ceb785b33a091d83e4bffadb2c6d3ec84c9813381d3757324df613a986805
data/bearcat.gemspec CHANGED
@@ -11,8 +11,8 @@ rescue LoadError
11
11
  end
12
12
 
13
13
  Gem::Specification.new do |gem|
14
- gem.authors = ["Nathan Mills, Jake Sorce"]
15
- gem.email = ["nathanm@instructure.com, jake@instructure.com"]
14
+ gem.authors = ["Instructure CustomDev"]
15
+ gem.email = ["pseng@instructure.com"]
16
16
  gem.description = %q{Ruby interface for interacting with the canvas API}
17
17
  gem.summary = %q{Canvas API}
18
18
 
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.5.0' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.5.3' 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
@@ -1,6 +1,10 @@
1
1
  module Catalogcat
2
2
  class Client < Footrest::Client
3
3
  module Orders
4
+ def list_orders(params = {})
5
+ get("api/v1/orders", params)
6
+ end
7
+
4
8
  def get_order(id, params = {})
5
9
  get("api/v1/orders/#{id}", params)
6
10
  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.3
5
5
  platform: ruby
6
6
  authors:
7
- - Nathan Mills, Jake Sorce
7
+ - Instructure CustomDev
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-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -124,7 +124,7 @@ dependencies:
124
124
  version: 0.2.2
125
125
  description: Ruby interface for interacting with the canvas API
126
126
  email:
127
- - nathanm@instructure.com, jake@instructure.com
127
+ - pseng@instructure.com
128
128
  executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
@@ -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