postgres-vacuum-monitor 0.11.0 → 0.12.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: 6c398c3078e1b811e2f20aa747a7163089a18983b27a0f8717bbf0b31c3d6168
4
- data.tar.gz: b1fd3ddf77ae9486cf3ed321d47485a69d7f2d6cf219a9281edc33a4defbd3ce
3
+ metadata.gz: 051751c519eaf2a606c61100ba6916430f0d6a92d3384cbad4cbfe8613102dfb
4
+ data.tar.gz: db7156a7e59e39301473d9484a10a2d8a36ec91e3e137335c33eb5ed60677a72
5
5
  SHA512:
6
- metadata.gz: 6c622be7d73d1ffe0232b98e05268aec917681b39e703f5fc82d1fab39faf2117669654e982bf6a04ac12849e2f6b18d33a8d6e98256f4bcaf7afa2d2244471f
7
- data.tar.gz: cc422931d00b068cd17354f8fb74dafea4e31bd1fb0a1db94f5c769f505ad8fa14a8a94b681ddb14521336ea2b21b4a10c20cd9e1c1060861e803a1a6a20093e
6
+ metadata.gz: 7fca74a9c6b9a9a25548cd9d4b88c1488af26fb497cb2e9abed173f237fe96842334f35fb9b94d00f8cefc7e774a4b8affa0cdc2f4232247c55d3b88bb624acc
7
+ data.tar.gz: 0fc2ee2b4a0698d77cbc502d4f0c33b59e8c01755d0d64bd59b6f5e2693cbf3b9a25fac41f403db53398e72297b4a679918671c221e3bb52f775b4254c577c75
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.5.8
5
+ - image: salsify/ruby_ci:2.7.2
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.5.8-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "Gemfile" }}
12
- - v1-gems-ruby-2.5.8-
11
+ - v1-gems-ruby-2.7.2-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "Gemfile" }}
12
+ - v1-gems-ruby-2.7.2-
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.5.8-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "Gemfile" }}
21
+ key: v1-gems-ruby-2.7.2-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "Gemfile" }}
22
22
  paths:
23
23
  - "vendor/bundle"
24
24
  - "gemfiles/vendor/bundle"
@@ -29,8 +29,10 @@ jobs:
29
29
  parameters:
30
30
  gemfile:
31
31
  type: string
32
+ ruby_version:
33
+ type: string
32
34
  docker:
33
- - image: salsify/ruby_ci:2.5.8
35
+ - image: salsify/ruby_ci:<< parameters.ruby_version >>
34
36
  environment:
35
37
  TEST_DATABASE_URL: postgresql://circleci@localhost/circle_test
36
38
  - image: circleci/postgres:9.6
@@ -50,8 +52,8 @@ jobs:
50
52
  - checkout
51
53
  - restore_cache:
52
54
  keys:
53
- - v1-gems-ruby-2.5.8-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "<< parameters.gemfile >>" }}
54
- - v1-gems-ruby-2.5.8-
55
+ - v1-gems-ruby-<< parameters.ruby_version >>-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "<< parameters.gemfile >>" }}
56
+ - v1-gems-ruby-<< parameters.ruby_version >>-
55
57
  - run:
56
58
  name: Install Gems
57
59
  command: |
@@ -60,10 +62,16 @@ jobs:
60
62
  bundle clean
61
63
  fi
62
64
  - save_cache:
63
- key: v1-gems-ruby-2.5.8-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "<< parameters.gemfile >>" }}
65
+ key: v1-gems-ruby-<< parameters.ruby_version >>-{{ checksum "postgres-vacuum-monitor.gemspec" }}-{{ checksum "<< parameters.gemfile >>" }}
64
66
  paths:
65
67
  - "vendor/bundle"
66
68
  - "gemfiles/vendor/bundle"
69
+ - run:
70
+ name: Wait for Database
71
+ command: dockerize -wait tcp://localhost:5432 -timeout 60s
72
+ - run:
73
+ 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;
67
75
  - run:
68
76
  name: Run Tests
69
77
  command: |
@@ -81,3 +89,10 @@ workflows:
81
89
  - "gemfiles/activerecord_5_2.gemfile"
82
90
  - "gemfiles/activerecord_6_0.gemfile"
83
91
  - "gemfiles/activerecord_6_1.gemfile"
92
+ 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"
data/.rubocop.yml CHANGED
@@ -2,7 +2,7 @@ inherit_gem:
2
2
  salsify_rubocop: conf/rubocop_rails.yml
3
3
 
4
4
  AllCops:
5
- TargetRubyVersion: 2.4
5
+ TargetRubyVersion: 2.6
6
6
  Exclude:
7
7
  - 'vendor/**/*'
8
8
  - 'gemfiles/**/*'
data/CHANGELOG.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # postgres-vacuum-monitor
2
+ ## v.12.0
3
+ - Add support for ruby 3
4
+ - Drop support for ruby < 2.6
2
5
 
3
6
  ## v.11.0
4
7
  - Add support for rails 6.1
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](https://circleci.com/gh/salsify/postgres-vacuum-monitor.svg?style=svg)][circleci]
1
+ [![Build Status](https://circleci.com/gh/salsify/postgres-vacuum-monitor.svg?style=svg)](https://circleci.com/gh/salsify/postgres-vacuum-monitor)
2
2
  [![Maintainability](https://api.codeclimate.com/v1/badges/9ced178ca8fee231a935/maintainability)](https://codeclimate.com/github/salsify/postgres-vacuum-monitor/maintainability)
3
3
  [![Coverage Status](https://coveralls.io/repos/github/salsify/postgres-vacuum-monitor/badge.svg?branch=master)](https://coveralls.io/github/salsify/postgres-vacuum-monitor?branch=master)
4
4
 
@@ -3,7 +3,7 @@
3
3
  module Postgres
4
4
  module Vacuum
5
5
  module Monitor
6
- VERSION = '0.11.0'
6
+ VERSION = '0.12.0'
7
7
  end
8
8
  end
9
9
  end
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
22
  spec.require_paths = ['lib']
23
23
 
24
- spec.required_ruby_version = '>= 2.4.0'
24
+ spec.required_ruby_version = '>= 2.6.0'
25
25
 
26
26
  spec.add_development_dependency 'appraisal'
27
27
  spec.add_development_dependency 'bundler'
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.11.0
4
+ version: 0.12.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: 2020-12-17 00:00:00.000000000 Z
11
+ date: 2021-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appraisal
@@ -198,14 +198,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - ">="
200
200
  - !ruby/object:Gem::Version
201
- version: 2.4.0
201
+ version: 2.6.0
202
202
  required_rubygems_version: !ruby/object:Gem::Requirement
203
203
  requirements:
204
204
  - - ">="
205
205
  - !ruby/object:Gem::Version
206
206
  version: '0'
207
207
  requirements: []
208
- rubygems_version: 3.1.2
208
+ rubygems_version: 3.1.4
209
209
  signing_key:
210
210
  specification_version: 4
211
211
  summary: Simple stats collector for postgres auto vacuumer.