postgres-vacuum-monitor 0.12.0 → 0.13.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 +15 -19
- data/.github/CODEOWNERS +1 -0
- data/.rubocop.yml +1 -1
- data/Appraisals +4 -4
- data/CHANGELOG.md +10 -5
- data/gemfiles/activerecord_6_0.gemfile +3 -6
- data/gemfiles/activerecord_6_1.gemfile +3 -6
- data/gemfiles/activerecord_7_0.gemfile +7 -0
- data/lib/postgres/vacuum/monitor/version.rb +1 -1
- data/postgres-vacuum-monitor.gemspec +11 -3
- metadata +26 -16
- data/gemfiles/activerecord_5_2.gemfile +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecacd2083b9dce976f90581b45fafec47c1afb85a3eb90745214967b93e91283
|
4
|
+
data.tar.gz: 528c6c23d08af83294307b0e4a1348ebdf34c39ad0dad71a9b4e4bd1264bad8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53623252efd07a01b6b2516f2409f7cf78d5fac48e911276098dfbe8f7d304b9e2ff8ad8221b6f246c9574850061200838272aaca6916915831729d5540162db
|
7
|
+
data.tar.gz: 10dfced23c37359a58dad1b89065cbe84c24bb25f6ce7ef44f5255225123d2a696f080010817cadac6a35201e1ab9b4bceb8546663793750e2750bc2045a1611
|
data/.circleci/config.yml
CHANGED
@@ -2,14 +2,14 @@ version: 2.1
|
|
2
2
|
jobs:
|
3
3
|
lint:
|
4
4
|
docker:
|
5
|
-
- image: salsify/ruby_ci:2.7.
|
5
|
+
- image: salsify/ruby_ci:2.7.7
|
6
6
|
working_directory: ~/postgres-vacuum-monitor
|
7
7
|
steps:
|
8
8
|
- checkout
|
9
9
|
- restore_cache:
|
10
10
|
keys:
|
11
|
-
- v1-gems-ruby-2.7.
|
12
|
-
- v1-gems-ruby-2.7.
|
11
|
+
- v1-gems-ruby-2.7.7-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "Gemfile" }}
|
12
|
+
- v1-gems-ruby-2.7.7-
|
13
13
|
- run:
|
14
14
|
name: Install Gems
|
15
15
|
command: |
|
@@ -18,7 +18,7 @@ jobs:
|
|
18
18
|
bundle clean
|
19
19
|
fi
|
20
20
|
- save_cache:
|
21
|
-
key: v1-gems-ruby-2.7.
|
21
|
+
key: v1-gems-ruby-2.7.7-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "Gemfile" }}
|
22
22
|
paths:
|
23
23
|
- "vendor/bundle"
|
24
24
|
- "gemfiles/vendor/bundle"
|
@@ -33,17 +33,15 @@ jobs:
|
|
33
33
|
type: string
|
34
34
|
docker:
|
35
35
|
- image: salsify/ruby_ci:<< parameters.ruby_version >>
|
36
|
+
- image: circleci/postgres:12.9
|
36
37
|
environment:
|
37
|
-
|
38
|
-
|
39
|
-
environment:
|
40
|
-
POSTGRES_USER: "ubuntu"
|
41
|
-
POSTGRES_DB: "postgres_vacuum_monitor_test"
|
38
|
+
POSTGRES_USER: "circleci"
|
39
|
+
POSTGRES_DB: "circle_test"
|
42
40
|
POSTGRES_HOST_AUTH_METHOD: "trust"
|
43
41
|
environment:
|
42
|
+
DB_USER: "circleci"
|
43
|
+
ADMIN_DB_NAME: "circle_test"
|
44
44
|
RACK_ENV: "test"
|
45
|
-
DB_HOST: 'localhost'
|
46
|
-
DB_USER: 'ubuntu'
|
47
45
|
RAILS_ENV: "test"
|
48
46
|
CIRCLE_TEST_REPORTS: "test-results"
|
49
47
|
BUNDLE_GEMFILE: << parameters.gemfile >>
|
@@ -71,7 +69,7 @@ jobs:
|
|
71
69
|
command: dockerize -wait tcp://localhost:5432 -timeout 60s
|
72
70
|
- run:
|
73
71
|
name: Wait for Database User
|
74
|
-
command: t=30; for i in `seq $t`; do psql -h localhost -p 5432 -U
|
72
|
+
command: t=30; for i in `seq $t`; do psql -h localhost -p 5432 -U circleci -d circle_test -c '\q' && break; [ $i -eq $t ] && return 2; sleep 1; done;
|
75
73
|
- run:
|
76
74
|
name: Run Tests
|
77
75
|
command: |
|
@@ -86,13 +84,11 @@ workflows:
|
|
86
84
|
matrix:
|
87
85
|
parameters:
|
88
86
|
gemfile:
|
89
|
-
- "gemfiles/activerecord_5_2.gemfile"
|
90
87
|
- "gemfiles/activerecord_6_0.gemfile"
|
91
88
|
- "gemfiles/activerecord_6_1.gemfile"
|
89
|
+
- "gemfiles/activerecord_7_0.gemfile"
|
92
90
|
ruby_version:
|
93
|
-
- "2.
|
94
|
-
- "
|
95
|
-
- "3.
|
96
|
-
|
97
|
-
- gemfile: "gemfiles/activerecord_5_2.gemfile"
|
98
|
-
ruby_version: "3.0.0"
|
91
|
+
- "2.7.7"
|
92
|
+
- "3.0.5"
|
93
|
+
- "3.1.3"
|
94
|
+
- "3.2.0"
|
data/.github/CODEOWNERS
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
* @fgarces @will89
|
data/.rubocop.yml
CHANGED
data/Appraisals
CHANGED
@@ -1,9 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
appraise 'activerecord_5_2' do
|
4
|
-
gem 'activerecord', '~> 5.2.0'
|
5
|
-
end
|
6
|
-
|
7
3
|
appraise 'activerecord_6_0' do
|
8
4
|
gem 'activerecord', '~> 6.0.0'
|
9
5
|
end
|
@@ -11,3 +7,7 @@ end
|
|
11
7
|
appraise 'activerecord_6_1' do
|
12
8
|
gem 'activerecord', '~> 6.1.0'
|
13
9
|
end
|
10
|
+
|
11
|
+
appraise 'activerecord_7_0' do
|
12
|
+
gem 'activerecord', '~> 7.0.0'
|
13
|
+
end
|
data/CHANGELOG.md
CHANGED
@@ -1,15 +1,20 @@
|
|
1
1
|
# postgres-vacuum-monitor
|
2
|
-
|
3
|
-
|
2
|
+
|
3
|
+
## v0.13.0
|
4
|
+
- Add support for ruby 3.2 and Rails 7.0
|
5
|
+
- Drop support for ruby < 2.7 and Rails < 6.0.
|
6
|
+
|
7
|
+
## v0.12.0
|
8
|
+
- Add support for ruby 3.0
|
4
9
|
- Drop support for ruby < 2.6
|
5
10
|
|
6
|
-
##
|
11
|
+
## v0.11.0
|
7
12
|
- Add support for rails 6.1
|
8
13
|
|
9
|
-
##
|
14
|
+
## v0.10.1
|
10
15
|
- Query bug fix.
|
11
16
|
|
12
|
-
##
|
17
|
+
## v0.10.0
|
13
18
|
- Add events for connection idle time and state.
|
14
19
|
|
15
20
|
## v.0.9.0
|
@@ -1,10 +1,7 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
# This file was generated by Appraisal
|
4
2
|
|
5
|
-
source
|
3
|
+
source "https://rubygems.org"
|
6
4
|
|
7
|
-
|
8
|
-
gem 'activerecord', '~> 6.0.0'
|
5
|
+
gem "activerecord", "~> 6.0.0"
|
9
6
|
|
10
|
-
gemspec path:
|
7
|
+
gemspec path: "../"
|
@@ -1,10 +1,7 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
# This file was generated by Appraisal
|
4
2
|
|
5
|
-
source
|
3
|
+
source "https://rubygems.org"
|
6
4
|
|
7
|
-
|
8
|
-
gem 'activerecord', '~> 6.1.0'
|
5
|
+
gem "activerecord", "~> 6.1.0"
|
9
6
|
|
10
|
-
gemspec path:
|
7
|
+
gemspec path: "../"
|
@@ -13,6 +13,14 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.summary = 'Simple stats collector for postgres auto vacuumer.'
|
14
14
|
spec.description = 'Queries ActiveRecord DBs for info regarding auto vacuum processes and long running queries.'
|
15
15
|
spec.homepage = 'https://github.com/salsify/postgres-vacuum-monitor'
|
16
|
+
spec.license = 'MIT'
|
17
|
+
|
18
|
+
if spec.respond_to?(:metadata)
|
19
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
20
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
21
|
+
else
|
22
|
+
raise 'RubyGems 2.0 or newer is required to set allowed_push_host.'
|
23
|
+
end
|
16
24
|
|
17
25
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
26
|
f.match(%r{^(test|spec|features)/})
|
@@ -21,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
21
29
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
30
|
spec.require_paths = ['lib']
|
23
31
|
|
24
|
-
spec.required_ruby_version = '>= 2.
|
32
|
+
spec.required_ruby_version = '>= 2.7'
|
25
33
|
|
26
34
|
spec.add_development_dependency 'appraisal'
|
27
35
|
spec.add_development_dependency 'bundler'
|
@@ -30,8 +38,8 @@ Gem::Specification.new do |spec|
|
|
30
38
|
spec.add_development_dependency 'rake'
|
31
39
|
spec.add_development_dependency 'rspec', '~> 3.2'
|
32
40
|
spec.add_development_dependency 'rspec_junit_formatter'
|
33
|
-
spec.add_development_dependency 'salsify_rubocop'
|
41
|
+
spec.add_development_dependency 'salsify_rubocop', '~> 1.42.1'
|
34
42
|
|
35
|
-
spec.add_dependency 'activerecord', '
|
43
|
+
spec.add_dependency 'activerecord', '>= 6.0', '< 7.1'
|
36
44
|
spec.add_dependency 'pg', '>= 0.18', '< 2.0'
|
37
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.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fernando Garces
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appraisal
|
@@ -112,30 +112,36 @@ dependencies:
|
|
112
112
|
name: salsify_rubocop
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 1.42.1
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 1.42.1
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: activerecord
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '6.0'
|
129
132
|
- - "<"
|
130
133
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
134
|
+
version: '7.1'
|
132
135
|
type: :runtime
|
133
136
|
prerelease: false
|
134
137
|
version_requirements: !ruby/object:Gem::Requirement
|
135
138
|
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '6.0'
|
136
142
|
- - "<"
|
137
143
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
144
|
+
version: '7.1'
|
139
145
|
- !ruby/object:Gem::Dependency
|
140
146
|
name: pg
|
141
147
|
requirement: !ruby/object:Gem::Requirement
|
@@ -165,6 +171,7 @@ extensions: []
|
|
165
171
|
extra_rdoc_files: []
|
166
172
|
files:
|
167
173
|
- ".circleci/config.yml"
|
174
|
+
- ".github/CODEOWNERS"
|
168
175
|
- ".gitignore"
|
169
176
|
- ".rspec"
|
170
177
|
- ".rubocop.yml"
|
@@ -177,9 +184,9 @@ files:
|
|
177
184
|
- Rakefile
|
178
185
|
- bin/console
|
179
186
|
- bin/setup
|
180
|
-
- gemfiles/activerecord_5_2.gemfile
|
181
187
|
- gemfiles/activerecord_6_0.gemfile
|
182
188
|
- gemfiles/activerecord_6_1.gemfile
|
189
|
+
- gemfiles/activerecord_7_0.gemfile
|
183
190
|
- lib/postgres/vacuum/compatibility.rb
|
184
191
|
- lib/postgres/vacuum/configuration.rb
|
185
192
|
- lib/postgres/vacuum/jobs/monitor_job.rb
|
@@ -188,9 +195,12 @@ files:
|
|
188
195
|
- lib/postgres/vacuum/monitor/version.rb
|
189
196
|
- postgres-vacuum-monitor.gemspec
|
190
197
|
homepage: https://github.com/salsify/postgres-vacuum-monitor
|
191
|
-
licenses:
|
192
|
-
|
193
|
-
|
198
|
+
licenses:
|
199
|
+
- MIT
|
200
|
+
metadata:
|
201
|
+
allowed_push_host: https://rubygems.org
|
202
|
+
rubygems_mfa_required: 'true'
|
203
|
+
post_install_message:
|
194
204
|
rdoc_options: []
|
195
205
|
require_paths:
|
196
206
|
- lib
|
@@ -198,15 +208,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
198
208
|
requirements:
|
199
209
|
- - ">="
|
200
210
|
- !ruby/object:Gem::Version
|
201
|
-
version: 2.
|
211
|
+
version: '2.7'
|
202
212
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
213
|
requirements:
|
204
214
|
- - ">="
|
205
215
|
- !ruby/object:Gem::Version
|
206
216
|
version: '0'
|
207
217
|
requirements: []
|
208
|
-
rubygems_version: 3.
|
209
|
-
signing_key:
|
218
|
+
rubygems_version: 3.3.26
|
219
|
+
signing_key:
|
210
220
|
specification_version: 4
|
211
221
|
summary: Simple stats collector for postgres auto vacuumer.
|
212
222
|
test_files: []
|