que 2.4.0 → 2.4.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: 37c1d6014ec840c445c2142cdd46646409b21d1513bcd1a6d6cea125afe714fb
4
- data.tar.gz: bf5215a463ca64b5acee7a6a080296e9dcb39b9fea8399576ad758e63e424edd
3
+ metadata.gz: 2da020921a11786f68726666ad6323aed301b77654ec1f01f8f438918cb094ec
4
+ data.tar.gz: 0c9726c26529307b43e2d53e0bf67bfd5a44b868efbea179c2d0ecc2fd5c7e60
5
5
  SHA512:
6
- metadata.gz: 32845cf47073ed8bda56f7bd4594dbd65cceb48324460436437251049fda2548bda517db107034733c5dbbf15edba403111afaf41526ae6a09356aee5b9b93e9
7
- data.tar.gz: 791a05612735d7b7480557039001c9d11946b6bffca4f895d44b6a9d58e6c2b78eebb8e20b8440076832e4333e77196f2bb60849fb0f51861ba6572f202d4da7
6
+ metadata.gz: f8008cb10326d3a38c3fb2f071e75b7c80f1f49ec0e069e8fba748caf8027d65e0500a2ecc6ba814f731dd8ea929533544360c7fb9b1594ec5a8dc2b307864d6
7
+ data.tar.gz: 45bd885f097e4cd4c6c3d812be361bb82cba3f7d849874c9aede082066b0d4ea16e7f37b6055bbffabda7ba4ee0f5f358a189a0a95651a8a2ab87712b5c7cd53
@@ -8,17 +8,21 @@ jobs:
8
8
  strategy:
9
9
  matrix:
10
10
  ruby_version: ['2.7', '3.0', '3.1', '3.2']
11
- rails_gemfile: ['6.0', '6.1', '7.0', '7.1']
11
+ rails_gemfile: ['6.0', '6.1', '7.0', '7.1', '7.2']
12
12
  postgres_version: ['14']
13
13
  include:
14
14
  # Postgres versions
15
- - { ruby_version: '3.2', rails_gemfile: '7.1', postgres_version: '9' }
16
- - { ruby_version: '3.2', rails_gemfile: '7.1', postgres_version: '10' }
17
- - { ruby_version: '3.2', rails_gemfile: '7.1', postgres_version: '11' }
18
- - { ruby_version: '3.2', rails_gemfile: '7.1', postgres_version: '12' }
19
- - { ruby_version: '3.2', rails_gemfile: '7.1', postgres_version: '13' }
20
- - { ruby_version: '3.2', rails_gemfile: '7.1', postgres_version: '14' }
21
- exclude: []
15
+ - { ruby_version: '3.2', rails_gemfile: '7.2', postgres_version: '9' }
16
+ - { ruby_version: '3.2', rails_gemfile: '7.2', postgres_version: '10' }
17
+ - { ruby_version: '3.2', rails_gemfile: '7.2', postgres_version: '11' }
18
+ - { ruby_version: '3.2', rails_gemfile: '7.2', postgres_version: '12' }
19
+ - { ruby_version: '3.2', rails_gemfile: '7.2', postgres_version: '13' }
20
+ - { ruby_version: '3.2', rails_gemfile: '7.2', postgres_version: '14' }
21
+ exclude: # Rails 7.2 is not compatible with Ruby < 3.1
22
+ - ruby_version: '2.7'
23
+ rails_gemfile: '7.2'
24
+ - ruby_version: '3.0'
25
+ rails_gemfile: '7.2'
22
26
  name: "Test: Ruby ${{ matrix.ruby_version }}, Rails ${{ matrix.rails_gemfile }}, PostgreSQL ${{ matrix.postgres_version }}"
23
27
  services:
24
28
  db:
data/CHANGELOG.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  <!-- MarkdownTOC autolink=true -->
4
4
 
5
+ - [2.4.1 \(2024-10-28\)](#241-2024-10-28)
5
6
  - [2.4.0 \(2024-08-21\)](#240-2024-08-21)
6
7
  - [2.3.0 \(2023-10-16\)](#230-2023-10-16)
7
8
  - [2.2.1 \(2023-04-28\)](#221-2023-04-28)
@@ -59,6 +60,11 @@
59
60
 
60
61
  <!-- /MarkdownTOC -->
61
62
 
63
+ ## 2.4.1 (2024-10-28)
64
+
65
+ - **Fixed**:
66
+ + Fixed deprecated use of `ActiveRecord::Base.clear_active_connections!` method in [#423](https://github.com/que-rb/que/pull/423), to allow support for Rails 7.2
67
+
62
68
  ## 2.4.0 (2024-08-21)
63
69
 
64
70
  - **Fixed**:
@@ -42,7 +42,12 @@ module Que
42
42
  # feature to unknowingly leak connections to other databases. So,
43
43
  # take the additional step of telling ActiveRecord to check in all
44
44
  # of the current thread's connections after each job is run.
45
- ::ActiveRecord::Base.clear_active_connections! unless job.class.resolve_que_setting(:run_synchronously)
45
+ return if job.class.resolve_que_setting(:run_synchronously)
46
+ if ::ActiveRecord.version >= Gem::Version.new('7.1')
47
+ ::ActiveRecord::Base.connection_handler.clear_active_connections!(:all)
48
+ else
49
+ ::ActiveRecord::Base.clear_active_connections!
50
+ end
46
51
  end
47
52
  end
48
53
  end
data/lib/que/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Que
4
- VERSION = '2.4.0'
4
+ VERSION = '2.4.1'
5
5
 
6
6
  def self.job_schema_version
7
7
  2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: que
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Hanks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-20 00:00:00.000000000 Z
11
+ date: 2024-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  requirements: []
118
- rubygems_version: 3.5.7
118
+ rubygems_version: 3.4.10
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: A PostgreSQL-based Job Queue