Skip to content

Commit 11cf42c

Browse files
authored
Modernize dependencies (#21)
1 parent bba3be7 commit 11cf42c

File tree

12 files changed

+84
-79
lines changed

12 files changed

+84
-79
lines changed

.circleci/config.yml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ version: 2.1
22
jobs:
33
lint:
44
docker:
5-
- image: salsify/ruby_ci:2.7.2
5+
- image: salsify/ruby_ci:2.7.7
66
working_directory: ~/postgres-vacuum-monitor
77
steps:
88
- checkout
99
- restore_cache:
1010
keys:
11-
- v1-gems-ruby-2.7.2-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "Gemfile" }}
12-
- v1-gems-ruby-2.7.2-
11+
- v1-gems-ruby-2.7.7-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "Gemfile" }}
12+
- v1-gems-ruby-2.7.7-
1313
- run:
1414
name: Install Gems
1515
command: |
@@ -18,7 +18,7 @@ jobs:
1818
bundle clean
1919
fi
2020
- save_cache:
21-
key: v1-gems-ruby-2.7.2-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "Gemfile" }}
21+
key: v1-gems-ruby-2.7.7-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "Gemfile" }}
2222
paths:
2323
- "vendor/bundle"
2424
- "gemfiles/vendor/bundle"
@@ -33,17 +33,15 @@ jobs:
3333
type: string
3434
docker:
3535
- image: salsify/ruby_ci:<< parameters.ruby_version >>
36+
- image: circleci/postgres:12.9
3637
environment:
37-
TEST_DATABASE_URL: postgresql://circleci@localhost/circle_test
38-
- image: circleci/postgres:9.6
39-
environment:
40-
POSTGRES_USER: "ubuntu"
41-
POSTGRES_DB: "postgres_vacuum_monitor_test"
38+
POSTGRES_USER: "circleci"
39+
POSTGRES_DB: "circle_test"
4240
POSTGRES_HOST_AUTH_METHOD: "trust"
4341
environment:
42+
DB_USER: "circleci"
43+
ADMIN_DB_NAME: "circle_test"
4444
RACK_ENV: "test"
45-
DB_HOST: 'localhost'
46-
DB_USER: 'ubuntu'
4745
RAILS_ENV: "test"
4846
CIRCLE_TEST_REPORTS: "test-results"
4947
BUNDLE_GEMFILE: << parameters.gemfile >>
@@ -71,7 +69,7 @@ jobs:
7169
command: dockerize -wait tcp://localhost:5432 -timeout 60s
7270
- run:
7371
name: Wait for Database User
74-
command: t=30; for i in `seq $t`; do psql -h localhost -p 5432 -U ubuntu -d postgres_vacuum_monitor_test -c '\q' && break; [ $i -eq $t ] && return 2; sleep 1; done;
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;
7573
- run:
7674
name: Run Tests
7775
command: |
@@ -86,13 +84,11 @@ workflows:
8684
matrix:
8785
parameters:
8886
gemfile:
89-
- "gemfiles/activerecord_5_2.gemfile"
9087
- "gemfiles/activerecord_6_0.gemfile"
9188
- "gemfiles/activerecord_6_1.gemfile"
89+
- "gemfiles/activerecord_7_0.gemfile"
9290
ruby_version:
93-
- "2.6.6"
94-
- "2.7.2"
95-
- "3.0.0"
96-
exclude:
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"

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ inherit_gem:
22
salsify_rubocop: conf/rubocop_rails.yml
33

44
AllCops:
5-
TargetRubyVersion: 2.6
5+
TargetRubyVersion: 2.7
66
Exclude:
77
- 'vendor/**/*'
88
- 'gemfiles/**/*'

Appraisals

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# frozen_string_literal: true
22

3-
appraise 'activerecord_5_2' do
4-
gem 'activerecord', '~> 5.2.0'
5-
end
6-
73
appraise 'activerecord_6_0' do
84
gem 'activerecord', '~> 6.0.0'
95
end
106

117
appraise 'activerecord_6_1' do
128
gem 'activerecord', '~> 6.1.0'
139
end
10+
11+
appraise 'activerecord_7_0' do
12+
gem 'activerecord', '~> 7.0.0'
13+
end

CHANGELOG.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
# postgres-vacuum-monitor
2-
## v.12.0
3-
- Add support for ruby 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
49
- Drop support for ruby < 2.6
510

6-
## v.11.0
11+
## v0.11.0
712
- Add support for rails 6.1
813

9-
## v.10.1
14+
## v0.10.1
1015
- Query bug fix.
1116

12-
## v.10.0
17+
## v0.10.0
1318
- Add events for connection idle time and state.
1419

1520
## v.0.9.0

gemfiles/activerecord_5_2.gemfile

Lines changed: 0 additions & 10 deletions
This file was deleted.

gemfiles/activerecord_6_0.gemfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
# frozen_string_literal: true
2-
31
# This file was generated by Appraisal
42

5-
source 'https://rubygems.org'
3+
source "https://rubygems.org"
64

7-
# ActiveRecord is used to connect to DBs
8-
gem 'activerecord', '~> 6.0.0'
5+
gem "activerecord", "~> 6.0.0"
96

10-
gemspec path: '../'
7+
gemspec path: "../"

gemfiles/activerecord_6_1.gemfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
# frozen_string_literal: true
2-
31
# This file was generated by Appraisal
42

5-
source 'https://rubygems.org'
3+
source "https://rubygems.org"
64

7-
# ActiveRecord is used to connect to DBs
8-
gem 'activerecord', '~> 6.1.0'
5+
gem "activerecord", "~> 6.1.0"
96

10-
gemspec path: '../'
7+
gemspec path: "../"

gemfiles/activerecord_7_0.gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# This file was generated by Appraisal
2+
3+
source "https://rubygems.org"
4+
5+
gem "activerecord", "~> 7.0.0"
6+
7+
gemspec path: "../"

lib/postgres/vacuum/monitor/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module Postgres
44
module Vacuum
55
module Monitor
6-
VERSION = '0.12.0'
6+
VERSION = '0.13.0'
77
end
88
end
99
end

postgres-vacuum-monitor.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
2929
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
3030
spec.require_paths = ['lib']
3131

32-
spec.required_ruby_version = '>= 2.6.0'
32+
spec.required_ruby_version = '>= 2.7'
3333

3434
spec.add_development_dependency 'appraisal'
3535
spec.add_development_dependency 'bundler'
@@ -38,8 +38,8 @@ Gem::Specification.new do |spec|
3838
spec.add_development_dependency 'rake'
3939
spec.add_development_dependency 'rspec', '~> 3.2'
4040
spec.add_development_dependency 'rspec_junit_formatter'
41-
spec.add_development_dependency 'salsify_rubocop'
41+
spec.add_development_dependency 'salsify_rubocop', '~> 1.42.1'
4242

43-
spec.add_dependency 'activerecord', '< 6.2.0'
43+
spec.add_dependency 'activerecord', '>= 6.0', '< 7.1'
4444
spec.add_dependency 'pg', '>= 0.18', '< 2.0'
4545
end

0 commit comments

Comments
 (0)