bearcat 1.5.30 → 1.5.32

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: c8f8b63caed1ff5f931ed35d4d7612cc95b1a55ef320b2ea62d6c37cd58d7961
4
- data.tar.gz: e4d46c06cc72391ca389cd8e988aea15daab9d849d34b43f8da836cea7baa0d0
3
+ metadata.gz: 4e3ef3764b8ecc32d384cee21aeb95017b060ceaa0cb2bd4975d51be8ce58a96
4
+ data.tar.gz: 72711af874a71e4f326fef590ccded2d10bbc85f088bed94047bab806c5b808c
5
5
  SHA512:
6
- metadata.gz: 4692fb709e0bda0e0e7090bc58173be51a7583f540b1da2d725215f0254733fd62fdc376790cbc09fdcbec4d47765cdd3a83e4ad1e67bc5ad63193acf8fa330a
7
- data.tar.gz: 6898bcfbb4f30848164b1ea84588821f4a3736378df6e50fd20037f36e3d8e008d9ebb43e75cc67728df84f5230ca59c985246a806a03f4b5676dc0f5adab12b
6
+ metadata.gz: 1a0da1e0ad1daa07cd70a918490e774ea6de3755bff1c2c497877af7dea38b4bcc1b11776cf1bd36f3e9cd8215384bf36719ce39c76032d54bf34dff50b4cd3b
7
+ data.tar.gz: f6baf52e50c7e688b5178c42f79bc2f5bd425cd8bc55cd173da447813a445e7c66b087c5dc666698f5ad35efe12f2ecc9ac089ff0b3e1ec64177556a4478c5cc
@@ -65,7 +65,7 @@ module Badgrcat
65
65
  prefix "/v2/assertions" do
66
66
  post :revoke_assertions, "/revoke"
67
67
 
68
- prefix "/v2/assertions/:assertion" do
68
+ prefix "/:assertion" do
69
69
  get :assertion
70
70
  put :update_assertion
71
71
  delete :delete_assertion
@@ -14,7 +14,7 @@ module Badgrcat
14
14
  def request(method, &block)
15
15
  response = begin
16
16
  connection.send(method, &block)
17
- rescue Footrest::HttpError::NotFound => e
17
+ rescue Footrest::HttpError::BadRequest, Footrest::HttpError::NotFound => e
18
18
  raise e unless connection.headers[:authorization].nil?
19
19
 
20
20
  # Reauthenticate and retry if authorization header is nil
@@ -37,6 +37,11 @@ module Badgrcat
37
37
  end
38
38
  end
39
39
 
40
+ # Modify delete request to send params in body instead of query params
41
+ def delete(path, options = {})
42
+ request_with_params_in_body(:delete, path, options)
43
+ end
44
+
40
45
  def authenticate!
41
46
  connection.headers[:authorization] = nil
42
47
 
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bearcat
4
+ class Client < Footrest::Client
5
+ module AccountNotifications
6
+ extend ClientModule
7
+
8
+ prefix "/api/v1/accounts/:account_id/account_notifications/" do
9
+ get :global_notifications_for_user
10
+ post :create_global_notification
11
+ prefix ":id/" do
12
+ get :global_notification
13
+ put :update_global_notification
14
+ delete :close_global_notification_for_user
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.5.30' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.5.32' unless defined?(Bearcat::VERSION)
3
3
  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.30
4
+ version: 1.5.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure CustomDev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-23 00:00:00.000000000 Z
11
+ date: 2024-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -172,6 +172,7 @@ files:
172
172
  - lib/bearcat.rb
173
173
  - lib/bearcat/api_array.rb
174
174
  - lib/bearcat/client.rb
175
+ - lib/bearcat/client/account_notifications.rb
175
176
  - lib/bearcat/client/account_reports.rb
176
177
  - lib/bearcat/client/accounts.rb
177
178
  - lib/bearcat/client/analytics.rb
@@ -445,7 +446,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
445
446
  - !ruby/object:Gem::Version
446
447
  version: '0'
447
448
  requirements: []
448
- rubygems_version: 3.5.4
449
+ rubygems_version: 3.4.10
449
450
  signing_key:
450
451
  specification_version: 4
451
452
  summary: Canvas API