panda_pal 5.19.0 → 5.19.1

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: d04030accc6fd45997f3e37c3c91f9bdfe77f7cf7f4898cf54e4dae47f45886e
4
- data.tar.gz: db21a419ad8d77e68b670b292cd22bbe3432c097bd6b0663fbe8e012790ad1cf
3
+ metadata.gz: a7dff1a7542d726c3ca1930ccdf04062084ffcfd00a710e4399a7fb9cc6b2d3a
4
+ data.tar.gz: 5f0a45728662e6bfc3260a57d6ee575d3f8218f5602812105288a42e6f6c3ac3
5
5
  SHA512:
6
- metadata.gz: '02434851f52dc132ceab53754675b8e3ef54bc5dc0ee6b3e74e2d24aa7d3bd023bad5bd798aa87387365d37b2fe18d66ab89525c9121c1c495433e036e7c0796'
7
- data.tar.gz: 1d102580d5599677921de881a487ada5880e278e46e2563fd4c77bea69c96ad7fb4395411d58a8be1047af29715c9ced56895b7ddbac7c995a285f3a7f3df68f
6
+ metadata.gz: a1ca2a80c8218f9a3b99b86f20fff77247f9a0e017098627e6ac858df443511bf1b42c39911a8c0fb83d722ee99ad12534a0d56e3b2860ab71bc6207f8447f7b
7
+ data.tar.gz: ea8e3c9f196c55e4d66a7c3d18dc3be77ef305e74f27f2205b05051d815fe1f66ec34c42e8440ceab61aa0f2b0601ea7e4d46b8dd6416f84dedacea8d5f095d3
@@ -437,3 +437,20 @@ if defined?(Delayed)
437
437
 
438
438
  Delayed::Worker.plugins << PandaPal::Plugins::ApartmentDelayedJobsPlugin
439
439
  end
440
+
441
+ if defined?(Apartment::Sidekiq::Middleware::Client)
442
+ module PandaPal::Plugins
443
+ module ApartmentSidekiqClientConnectionRelease
444
+ def call(*args, &block)
445
+ pool = ActiveRecord::Base.connection_pool
446
+ if pool.method(:with_connection).parameters.any? { |_, name| name == :prevent_permanent_checkout }
447
+ pool.with_connection(prevent_permanent_checkout: true) { super }
448
+ else
449
+ pool.with_connection { super }
450
+ end
451
+ end
452
+ end
453
+ end
454
+
455
+ Apartment::Sidekiq::Middleware::Client.prepend(PandaPal::Plugins::ApartmentSidekiqClientConnectionRelease)
456
+ end
@@ -1,3 +1,3 @@
1
1
  module PandaPal
2
- VERSION = '5.19.0'
2
+ VERSION = '5.19.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panda_pal
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.19.0
4
+ version: 5.19.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure CustomDev