postgres-vacuum-monitor 0.3.2 → 0.4.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: d73b82c8aa8fbc2cf16b5685a23b67069b5ff8b41ff37d8b7db91aa69fac3b28
4
- data.tar.gz: 2ea1469236728dc0c60637739c59b2de265c86bc7116e33185cba0972d1fe06f
3
+ metadata.gz: 3185d7bfa19acb621c7c7f67c3239fa51f2dc1cc0e654ff71f2c708f6b082923
4
+ data.tar.gz: b78ffb48ba844d46d6dce24d2cf0fdb55f83805e17bdc7e5b6ede159666dfa1b
5
5
  SHA512:
6
- metadata.gz: e8d61553c2c18274abbae680870b814a9f87093ae06e8fd55cd9201b86264abd44bd82f05ddb320ce64b2edae7d30a14a879b56bd4f856825bbb6ac9a497398a
7
- data.tar.gz: 77d63951bded8bf220ae133a518ebf1d862e84a83253eaa37462f6998b599896de255514391ef0e67ae4baf5c04f7b9af6104d658383a054b11e54bd5bce3301
6
+ metadata.gz: dd4e24cbb07c4b38f91fd16a0e0f9026ced4d6584d93ee25c6d8ab9a5249948ed0f75301b42568bb0c8d441ba356aa33fad372ed4def3e586255eee5e82fa035
7
+ data.tar.gz: 8c154e6ad4867024f2676caa1aa467fceeba3c715c817264fac63c810ad1535aaf006733af304e395c96ea4cf6d7bc4bc2f88b6d81cdc67f45cc50663da36ebc
data/.gitignore CHANGED
@@ -10,3 +10,4 @@
10
10
  .idea/
11
11
  Gemfile.lock
12
12
  log/*.log
13
+ gemfiles/*.gemfile.lock
@@ -1,12 +1,13 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.4
4
- - 2.5
3
+ - 2.5.6
4
+ - 2.6.3
5
+ gemfile:
6
+ - gemfiles/activerecord_5.gemfile
7
+ - gemfiles/activerecord_6.gemfile
5
8
  services:
6
- - postgresql
7
-
9
+ - postgresql
8
10
  before_script:
9
- - psql -c 'create database postgres_vacuum_monitor_test;' -U postgres
10
-
11
+ - psql -c 'create database postgres_vacuum_monitor_test;' -U postgres
11
12
  addons:
12
13
  postgresql: '9.6'
data/Appraisals CHANGED
@@ -1,3 +1,7 @@
1
1
  appraise 'activerecord-5' do
2
- gem 'activerecord', '>= 5.0.0', '< 6.0.0'
2
+ gem 'activerecord', '< 6.0.0'
3
+ end
4
+
5
+ appraise 'activerecord-6' do
6
+ gem 'activerecord', '< 6.1'
3
7
  end
@@ -1,4 +1,7 @@
1
1
  # postgres-vacuum-monitor
2
+ ## v.0.4.0
3
+ - Add rails 6 support.
4
+
2
5
  ## v.0.3.2
3
6
  - Monitor non-ActiveRecord::Base database connections
4
7
 
data/README.md CHANGED
@@ -67,6 +67,10 @@ For auto vacuum the attributes are the following:
67
67
  }
68
68
  ```
69
69
 
70
+ ## Testing
71
+
72
+ To run the rspec tests, you need to create a DB called `postgres_vacuum_monitor_test`.
73
+
70
74
  ## New relic queries
71
75
 
72
76
  I use [New relic](https://rpm.newrelic.com) and use the following NRQL to create dashboards:
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "< 6.0.0"
6
+
7
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "< 6.1"
6
+
7
+ gemspec path: "../"
@@ -1,7 +1,7 @@
1
1
  module Postgres
2
2
  module Vacuum
3
3
  module Monitor
4
- VERSION = '0.3.2'.freeze
4
+ VERSION = '0.4.0'.freeze
5
5
  end
6
6
  end
7
7
  end
@@ -30,6 +30,6 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency 'rspec', '~> 3.2'
31
31
  spec.add_development_dependency 'salsify_rubocop'
32
32
 
33
- spec.add_dependency 'activerecord', '>= 5', '< 5.3'
33
+ spec.add_dependency 'activerecord', '>= 5', '< 6.1'
34
34
  spec.add_dependency 'pg', '>= 0.18', '< 2.0'
35
35
  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.3.2
4
+ version: 0.4.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: 2019-09-23 00:00:00.000000000 Z
11
+ date: 2019-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appraisal
@@ -117,7 +117,7 @@ dependencies:
117
117
  version: '5'
118
118
  - - "<"
119
119
  - !ruby/object:Gem::Version
120
- version: '5.3'
120
+ version: '6.1'
121
121
  type: :runtime
122
122
  prerelease: false
123
123
  version_requirements: !ruby/object:Gem::Requirement
@@ -127,7 +127,7 @@ dependencies:
127
127
  version: '5'
128
128
  - - "<"
129
129
  - !ruby/object:Gem::Version
130
- version: '5.3'
130
+ version: '6.1'
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: pg
133
133
  requirement: !ruby/object:Gem::Requirement
@@ -169,6 +169,8 @@ files:
169
169
  - Rakefile
170
170
  - bin/console
171
171
  - bin/setup
172
+ - gemfiles/activerecord_5.gemfile
173
+ - gemfiles/activerecord_6.gemfile
172
174
  - lib/postgres/vacuum/configuration.rb
173
175
  - lib/postgres/vacuum/jobs/monitor_job.rb
174
176
  - lib/postgres/vacuum/monitor.rb