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 +4 -4
- data/.circleci/config.yml +2 -6
- data/Appraisals +6 -6
- data/CHANGELOG.md +3 -0
- data/gemfiles/activerecord_6_1.gemfile +1 -1
- data/gemfiles/activerecord_7_0.gemfile +1 -1
- data/gemfiles/{activerecord_6_0.gemfile → activerecord_7_1.gemfile} +1 -1
- data/lib/postgres/vacuum/jobs/monitor_job.rb +1 -5
- data/lib/postgres/vacuum/monitor/version.rb +1 -1
- data/lib/postgres/vacuum/monitor.rb +0 -1
- data/postgres-vacuum-monitor.gemspec +1 -1
- metadata +5 -6
- data/lib/postgres/vacuum/compatibility.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7adf2bf1e4f074e47452b50e4e2d15361a863855982fcde8bec82d765f0cb0ed
|
4
|
+
data.tar.gz: b647585c53690c45b4cd02906781ad19cf74f1fd0b8557cccc683e3b788fac1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
4
|
+
gem 'activerecord', '~> 6.1.7.6'
|
9
5
|
end
|
10
6
|
|
11
7
|
appraise 'activerecord_7_0' do
|
12
|
-
gem 'activerecord', '~> 7.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
@@ -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 =
|
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
|
@@ -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.
|
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.
|
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-
|
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.
|
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.
|
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
|
-
-
|
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
|