postgres-vacuum-monitor 0.14.1 → 0.15.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: 69b9ab0ab38b8ec69526528cb1893179203086c9e5e1859c261fc54fafb19c34
4
- data.tar.gz: 386c009018d2c6490c500f1d440c09d95dd0c4547eccb7b4710b6769a43c192b
3
+ metadata.gz: 7adf2bf1e4f074e47452b50e4e2d15361a863855982fcde8bec82d765f0cb0ed
4
+ data.tar.gz: b647585c53690c45b4cd02906781ad19cf74f1fd0b8557cccc683e3b788fac1f
5
5
  SHA512:
6
- metadata.gz: '035934d78adbfcc04a56390b2ec94deccdc1a53c4bdaf6b6f138cb951e595f10e388bb7084bff3590943698e8d6c026cc2c2d22926adea3d4edf8df2a326c2c7'
7
- data.tar.gz: 2d9864aecd3b5d70c2c00a47bc16eb054edc408e6e5a19402886584347545eedc4322b2165eb628f460f93baf1519c42279af970628cd591422e8d87095f265f
6
+ metadata.gz: 17e2c7f1d81da24a710c4ee4343b3bb9310ee4c1faa686d725d69ed5cc10ac6046bc0f362f3f4a4e6ce462f624b93822af16f7bdc55c38a563ae5904470fccb8
7
+ data.tar.gz: 3122e2a4088eeb66571a043da2caa1f89fa0f3f41aaa6387cb99dfc7ee64e34287674518ffcdb1b51816baae3c74638ae6cc7f01ae69d6aa8d17694c19849df9
data/.circleci/config.yml CHANGED
@@ -38,12 +38,10 @@ jobs:
38
38
  type: string
39
39
  ruby_version:
40
40
  type: string
41
- postgres_version:
42
- type: string
43
41
  docker:
44
42
  - image: $SALSIFY_ECR_REPO/ruby_ci:<< parameters.ruby_version >>
45
43
  <<: *aws-auth
46
- - image: cimg/postgres:<< parameters.postgres_version >>
44
+ - image: cimg/postgres:14.7
47
45
  environment:
48
46
  POSTGRES_USER: "circleci"
49
47
  POSTGRES_DB: "circle_test"
@@ -98,10 +96,8 @@ workflows:
98
96
  gemfile:
99
97
  - "gemfiles/activerecord_6_1.gemfile"
100
98
  - "gemfiles/activerecord_7_0.gemfile"
99
+ - "gemfiles/activerecord_7_1.gemfile"
101
100
  ruby_version:
102
101
  - "3.0.6"
103
102
  - "3.1.4"
104
103
  - "3.2.2"
105
- postgres_version:
106
- - "12.9"
107
- - "14.7"
data/Appraisals CHANGED
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise 'activerecord_6_0' do
4
- gem 'activerecord', '~> 6.0.0'
5
- end
6
-
7
3
  appraise 'activerecord_6_1' do
8
- gem 'activerecord', '~> 6.1.0'
4
+ gem 'activerecord', '~> 6.1.7.6'
9
5
  end
10
6
 
11
7
  appraise 'activerecord_7_0' do
12
- gem 'activerecord', '~> 7.0.0'
8
+ gem 'activerecord', '~> 7.0.8'
9
+ end
10
+
11
+ appraise 'activerecord_7_1' do
12
+ gem 'activerecord', '~> 7.1.1'
13
13
  end
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # postgres-vacuum-monitor
2
2
 
3
+ ## v0.15.0
4
+ - Add support for Rails 7.1
5
+
3
6
  ## v0.14.1
4
7
  - Requires activerecord >= 6.1
5
8
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activerecord", "~> 6.1.0"
5
+ gem "activerecord", "~> 6.1.7.6"
6
6
 
7
7
  gemspec path: "../"
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activerecord", "~> 7.0.0"
5
+ gem "activerecord", "~> 7.0.8"
6
6
 
7
7
  gemspec path: "../"
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "activerecord", "~> 6.0.0"
5
+ gem "activerecord", "~> 7.1.1"
6
6
 
7
7
  gemspec path: "../"
@@ -89,11 +89,7 @@ module Postgres
89
89
  def with_each_db_name_and_connection
90
90
  databases = Set.new
91
91
  ActiveRecord::Base.connection_handler.connection_pools.map do |connection_pool|
92
- db_name = if Postgres::Vacuum::Compatibility.pre_rails_6_1?
93
- connection_pool.spec.config[:database]
94
- else
95
- connection_pool.db_config.configuration_hash[:database]
96
- end
92
+ db_name = connection_pool.db_config.configuration_hash[:database]
97
93
 
98
94
  # activerecord allocates a connection pool per call to establish_connection
99
95
  # multiple pools might interact with the same database so we use the
@@ -3,7 +3,7 @@
3
3
  module Postgres
4
4
  module Vacuum
5
5
  module Monitor
6
- VERSION = '0.14.1'
6
+ VERSION = '0.15.0'
7
7
  end
8
8
  end
9
9
  end
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'active_record'
4
- require 'postgres/vacuum/compatibility'
5
4
  require 'postgres/vacuum/configuration'
6
5
  require 'postgres/vacuum/monitor/version'
7
6
  require 'postgres/vacuum/monitor/query'
@@ -40,6 +40,6 @@ Gem::Specification.new do |spec|
40
40
  spec.add_development_dependency 'rspec_junit_formatter'
41
41
  spec.add_development_dependency 'salsify_rubocop', '~> 1.42.1'
42
42
 
43
- spec.add_dependency 'activerecord', '>= 6.1', '< 7.1'
43
+ spec.add_dependency 'activerecord', '>= 6.1', '< 7.2'
44
44
  spec.add_dependency 'pg', '>= 0.18', '< 2.0'
45
45
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postgres-vacuum-monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Garces
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-28 00:00:00.000000000 Z
11
+ date: 2023-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appraisal
@@ -131,7 +131,7 @@ dependencies:
131
131
  version: '6.1'
132
132
  - - "<"
133
133
  - !ruby/object:Gem::Version
134
- version: '7.1'
134
+ version: '7.2'
135
135
  type: :runtime
136
136
  prerelease: false
137
137
  version_requirements: !ruby/object:Gem::Requirement
@@ -141,7 +141,7 @@ dependencies:
141
141
  version: '6.1'
142
142
  - - "<"
143
143
  - !ruby/object:Gem::Version
144
- version: '7.1'
144
+ version: '7.2'
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: pg
147
147
  requirement: !ruby/object:Gem::Requirement
@@ -184,10 +184,9 @@ files:
184
184
  - Rakefile
185
185
  - bin/console
186
186
  - bin/setup
187
- - gemfiles/activerecord_6_0.gemfile
188
187
  - gemfiles/activerecord_6_1.gemfile
189
188
  - gemfiles/activerecord_7_0.gemfile
190
- - lib/postgres/vacuum/compatibility.rb
189
+ - gemfiles/activerecord_7_1.gemfile
191
190
  - lib/postgres/vacuum/configuration.rb
192
191
  - lib/postgres/vacuum/jobs/monitor_job.rb
193
192
  - lib/postgres/vacuum/monitor.rb
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Postgres
4
- module Vacuum
5
- class Compatibility
6
- ACTIVE_RECORD_VERSION = ::Gem::Version.new(::ActiveRecord::VERSION::STRING).release
7
- PRE_RAILS_6_1 = ACTIVE_RECORD_VERSION < ::Gem::Version.new('6.1.0')
8
-
9
- def self.pre_rails_6_1?
10
- PRE_RAILS_6_1
11
- end
12
-
13
- end
14
- end
15
- end