ruby-pg-extras 4.6.0 → 4.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 250bb1e08a0937724fc2cf90c16d26670218a1c23884fd69f33f7379bb550a20
4
- data.tar.gz: 12e69c803e3bd48287445bd46451255b3a0074fb3c1d4a0d373bb2d64a98e900
3
+ metadata.gz: bb53ae7a7af7f4c3513c51b7f21c46d942d4f34fa1ef834209be64bcba41e06e
4
+ data.tar.gz: e05581ad23a80dc16b6dd9f3be4a9834176ee0c3f949c2e98b61d56e23efe464
5
5
  SHA512:
6
- metadata.gz: b68d9e6c988df34cb7e3236ce4c12a7dbfdef23139dbc61cfe6364e21f95b55f0ca11c6f2657e1d350cf16fbb641a72f91228a12569b785061ee4e0d65737e45
7
- data.tar.gz: d31f3679f3ffd66bc9a39e9868985a260807a32af5335e722ccba5f5df515c80d451b957544fcaa7e016e2bbbebe09992cd89a7046cb033639a48eb95bb43fbe
6
+ metadata.gz: c855f02ad15802331dbe8206c85d6dab62efd5a50ef7f3a86f4c55dc395cfd8ff3e4690b6f5465424497a04ead977dc43da34c07ce7af0d0aa8ff19918ef0dfd
7
+ data.tar.gz: ed55b2c48f1425c857eba1534e431535a9b1c22c8741525ad531b92bc4652e114749c480fdcb7d662d72ec6258469c97f0b80661d9f6759fd40845a496665288
data/.circleci/config.yml CHANGED
@@ -2,7 +2,7 @@ version: 2
2
2
  jobs:
3
3
  test:
4
4
  docker:
5
- - image: cimg/ruby:2.6
5
+ - image: cimg/ruby:2.7.6
6
6
  environment:
7
7
  DATABASE_URL: postgresql://postgres:secret@localhost:5432/ruby-pg-extras-test
8
8
  - image: cimg/postgres:11.15
@@ -38,10 +38,11 @@ jobs:
38
38
  - checkout
39
39
  - run: gem update --system
40
40
  - run: gem install bundler
41
- - run: bundle config set --local path 'vendor/bundle'
42
- - run: bundle install
43
41
  - run: sudo apt-get update --allow-releaseinfo-change
44
42
  - run: sudo apt install postgresql-client
43
+ - run: sudo apt install libpq-dev
44
+ - run: bundle config set --local path 'vendor/bundle'
45
+ - run: bundle install
45
46
  - run: dockerize -wait tcp://postgres11:5432 -timeout 1m
46
47
  - run:
47
48
  name: Run specs for PG 11
data/README.md CHANGED
@@ -255,14 +255,14 @@ This command provides information on the efficiency of indexes, represented as w
255
255
 
256
256
  RubyPgExtras.locks
257
257
 
258
- procpid | relname | transactionid | granted | query_snippet | mode | age
259
- ---------+---------+---------------+---------+-----------------------+-------------------------------------
260
- 31776 | | | t | <IDLE> in transaction | ExclusiveLock | 00:19:29.837898
261
- 31776 | | 1294 | t | <IDLE> in transaction | RowExclusiveLock | 00:19:29.837898
262
- 31912 | | | t | select * from hello; | ExclusiveLock | 00:19:17.94259
263
- 3443 | | | t | +| ExclusiveLock | 00:00:00
264
- | | | | select +| |
265
- | | | | pg_stat_activi | |
258
+ procpid | relname | transactionid | granted | query_snippet | mode | age | application |
259
+ ---------+---------+---------------+---------+-----------------------+------------------------------------------------------
260
+ 31776 | | | t | <IDLE> in transaction | ExclusiveLock | 00:19:29.837898 | bin/rails
261
+ 31776 | | 1294 | t | <IDLE> in transaction | RowExclusiveLock | 00:19:29.837898 | bin/rails
262
+ 31912 | | | t | select * from hello; | ExclusiveLock | 00:19:17.94259 | bin/rails
263
+ 3443 | | | t | +| ExclusiveLock | 00:00:00 | bin/sidekiq
264
+ | | | | select +| | |
265
+ | | | | pg_stat_activi | | |
266
266
  (4 rows)
267
267
  ```
268
268
 
@@ -7,7 +7,8 @@ SELECT
7
7
  pg_locks.granted,
8
8
  pg_locks.mode,
9
9
  pg_stat_activity.query AS query_snippet,
10
- age(now(),pg_stat_activity.query_start) AS "age"
10
+ age(now(),pg_stat_activity.query_start) AS "age",
11
+ pg_stat_activity.application_name AS application
11
12
  FROM pg_stat_activity,pg_locks left
12
13
  OUTER JOIN pg_class
13
14
  ON (pg_locks.relation = pg_class.oid)
@@ -7,7 +7,8 @@ SELECT
7
7
  pg_locks.granted,
8
8
  pg_locks.mode,
9
9
  pg_stat_activity.query AS query_snippet,
10
- age(now(),pg_stat_activity.query_start) AS "age"
10
+ age(now(),pg_stat_activity.query_start) AS "age",
11
+ pg_stat_activity.application_name AS application
11
12
  FROM pg_stat_activity,pg_locks left
12
13
  OUTER JOIN pg_class
13
14
  ON (pg_locks.relation = pg_class.oid)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyPgExtras
4
- VERSION = "4.6.0"
4
+ VERSION = "4.7.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-pg-extras
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.0
4
+ version: 4.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - pawurb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-12 00:00:00.000000000 Z
11
+ date: 2022-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg