rails-pg-extras 5.3.0 → 5.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails-pg-extras.rb +6 -4
- data/lib/rails_pg_extras/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '079597706cc133935560397f2e136950867c90b6e2b41aca6ccbc6b48fd1ad4f'
|
4
|
+
data.tar.gz: 4d71766d6c5bc5bf0c7ce1e3ad2668ee9e9164594139eaf791d29c5d545b2056
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d2940121490100a88fb546e16af06505dc838902f96f3b7dea62cdc980e00b17bf9410c44859f2c7534792b812dee0c3a1283a0a724034556852c5bede3d5ae
|
7
|
+
data.tar.gz: f5708d15b6a767bbbaa2c2b744e84c42c7b84720d4e292c6e0b53c8a335d40f8bf35536adfbbc643b6cc9399ed53fdbc33ac5754884202bc59efe764d874834f
|
data/lib/rails-pg-extras.rb
CHANGED
@@ -26,10 +26,12 @@ module RailsPgExtras
|
|
26
26
|
|
27
27
|
def self.run_query(query_name:, in_format:, args: {})
|
28
28
|
if %i(calls outliers).include?(query_name)
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
29
|
+
pg_stat_statements_version_sql = "SELECT installed_version
|
30
|
+
FROM pg_available_extensions
|
31
|
+
WHERE name = 'pg_stat_statements'"
|
32
|
+
if (version = RailsPgExtras.connection.execute(pg_stat_statements_version_sql)
|
33
|
+
.to_a[0].fetch("installed_version", nil))
|
34
|
+
if Gem::Version.new(version) < Gem::Version.new(NEW_PG_STAT_STATEMENTS)
|
33
35
|
query_name = "#{query_name}_legacy".to_sym
|
34
36
|
end
|
35
37
|
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: 5.3.
|
4
|
+
version: 5.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pawurb
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-14 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: 5.3.
|
19
|
+
version: 5.3.1
|
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: 5.3.
|
26
|
+
version: 5.3.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -117,7 +117,7 @@ licenses:
|
|
117
117
|
- MIT
|
118
118
|
metadata:
|
119
119
|
rubygems_mfa_required: 'true'
|
120
|
-
post_install_message:
|
120
|
+
post_install_message:
|
121
121
|
rdoc_options: []
|
122
122
|
require_paths:
|
123
123
|
- lib
|
@@ -132,8 +132,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
132
|
- !ruby/object:Gem::Version
|
133
133
|
version: '0'
|
134
134
|
requirements: []
|
135
|
-
rubygems_version: 3.
|
136
|
-
signing_key:
|
135
|
+
rubygems_version: 3.3.7
|
136
|
+
signing_key:
|
137
137
|
specification_version: 4
|
138
138
|
summary: Rails PostgreSQL performance database insights
|
139
139
|
test_files:
|