rails-pg-extras 0.6.2 → 0.7.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: e6bf1a361201f905d6a8804603f85181fa00c827d6715096b85d57505ccb50f9
4
- data.tar.gz: c6a8650c9cbf4491caafa0757baf3f2fbcf76b4cb456cd3ee6a161d97e24d87e
3
+ metadata.gz: 506d95562fb9dcf353e233962941de468492a429cf1f4c32aedbc12c8ad61ad8
4
+ data.tar.gz: a26cdce454bf3a379e2cefd6219cecb3bf12aae7b9d6014b717eec9685cc98af
5
5
  SHA512:
6
- metadata.gz: abc03cff86719c133ac2ea252e26a4fa6055d9b4708401c93d4b547fb7e1416f27c5b9d209e011a876a0fe51aa6b9e15773e48b30f87171ccc20a3cd65d49b2a
7
- data.tar.gz: 8ef5055694620cf45a133cf45878cebffaddaaf07de9e6b420415d5349816d89fb74952cb4834b8e367e705c0a6df386ab28d74a0e056528ac7bd0b800b0cfd2
6
+ metadata.gz: a660057f6a220a65acf624754273fa62fe16459092b81ee5ba61c1b4a2a38f47c8204b233faf91f4a5ff9ab2bda48efdb784cc1d027f792497caba1c9c994727
7
+ data.tar.gz: d2bd6dd7bae2885b36f779063e1b59ab3c402caa630f86e5d6dca83c45454c5194e3f421a532c307b06594edba4270f86c92510ee531515b053a8682427811a0
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright © Paweł Urbanek 2019
3
+ Copyright © Paweł Urbanek 2020
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining
6
6
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # Rails PG Extras [![Gem Version](https://badge.fury.io/rb/rails-pg-extras.svg)](https://badge.fury.io/rb/rails-pg-extras) [![CircleCI](https://circleci.com/gh/pawurb/rails-pg-extras.svg?style=svg)](https://circleci.com/gh/pawurb/rails-pg-extras)
2
2
 
3
- Rails port of [Heroku PG Extras](https://github.com/heroku/heroku-pg-extras). The goal of this project is to provide a powerful insights into PostgreSQL database for Ruby on Rails apps that are not using the default Heroku PostgreSQL plugin.
3
+ Rails port of [Heroku PG Extras](https://github.com/heroku/heroku-pg-extras). The goal of this project is to provide powerful insights into the PostgreSQL database for Ruby on Rails apps that are not using the Heroku PostgreSQL plugin.
4
4
 
5
5
  Included rake tasks and Ruby methods can be used to obtain information about a Postgres instance, that may be useful when analyzing performance issues. This includes information about locks, index usage, buffer cache hit ratios and vacuum statistics. Ruby API enables developers to easily integrate the tool into e.g. automatic monitoring tasks.
6
6
 
7
- Not using Rails? Check out the [pure Ruby version](https://github.com/pawurb/ruby-pg-extras).
7
+ Not using Rails? Check out the core dependency [pure Ruby version](https://github.com/pawurb/ruby-pg-extras).
8
8
 
9
9
  ### Installation
10
10
 
@@ -88,14 +88,15 @@ This command provides information on the efficiency of indexes, represented as w
88
88
 
89
89
  ```
90
90
  $ rake pg_extras:locks
91
- procpid | relname | transactionid | granted | query_snippet | age
92
- ---------+---------+---------------+---------+-----------------------+-----------------
93
- 31776 | | | t | <IDLE> in transaction | 00:19:29.837898
94
- 31776 | | 1294 | t | <IDLE> in transaction | 00:19:29.837898
95
- 31912 | | | t | select * from hello; | 00:19:17.94259
96
- 3443 | | | t | +| 00:00:00
97
- | | | | select +|
98
- | | | | pg_stat_activi |
91
+
92
+ procpid | relname | transactionid | granted | query_snippet | mode | age
93
+ ---------+---------+---------------+---------+-----------------------+-------------------------------------
94
+ 31776 | | | t | <IDLE> in transaction | ExclusiveLock | 00:19:29.837898
95
+ 31776 | | 1294 | t | <IDLE> in transaction | RowExclusiveLock | 00:19:29.837898
96
+ 31912 | | | t | select * from hello; | ExclusiveLock | 00:19:17.94259
97
+ 3443 | | | t | +| ExclusiveLock | 00:00:00
98
+ | | | | select +| |
99
+ | | | | pg_stat_activi | |
99
100
  (4 rows)
100
101
  ```
101
102
 
@@ -0,0 +1,12 @@
1
+ version: '3'
2
+
3
+ services:
4
+ postgres:
5
+ image: postgres:11.5-alpine
6
+ environment:
7
+ POSTGRES_USER: postgres
8
+ POSTGRES_DB: rails-pg-extras-test
9
+ POSTGRES_PASSWORD: secret
10
+ ports:
11
+ - '5432:5432'
12
+
@@ -1,3 +1,3 @@
1
1
  module RailsPGExtras
2
- VERSION = "0.6.2"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-pg-extras
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - pawurb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-09 00:00:00.000000000 Z
11
+ date: 2020-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-pg-extras
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.6.2
19
+ version: 0.7.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.6.2
26
+ version: 0.7.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activerecord
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -81,6 +81,7 @@ files:
81
81
  - LICENSE.txt
82
82
  - README.md
83
83
  - Rakefile
84
+ - docker-compose.yml.sample
84
85
  - lib/rails-pg-extras.rb
85
86
  - lib/rails-pg-extras/railtie.rb
86
87
  - lib/rails-pg-extras/tasks/all.rake