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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b65d13da46887feb4613989005880cccc3f364409196d3e243e2fa741c778f0
4
- data.tar.gz: 32af66da2e162cc33886c843cd5a9eccf73927557db042de874d4069aa4245a2
3
+ metadata.gz: '079597706cc133935560397f2e136950867c90b6e2b41aca6ccbc6b48fd1ad4f'
4
+ data.tar.gz: 4d71766d6c5bc5bf0c7ce1e3ad2668ee9e9164594139eaf791d29c5d545b2056
5
5
  SHA512:
6
- metadata.gz: a38495774e883472f92b4c0782de90c2475247fbdc061f4d8c5e3fd10b034429832ac6de09cb214f8af375c70286e83f94eb15af4487319779b8599628122d7f
7
- data.tar.gz: a6e32c538a51e26647a4373759015dd635c0659e28ad603a4ee1bb80619a450ab8f78b60d54707c487a147767d7d4811cd09808f7aec8e136ce37277a13284ca
6
+ metadata.gz: 9d2940121490100a88fb546e16af06505dc838902f96f3b7dea62cdc980e00b17bf9410c44859f2c7534792b812dee0c3a1283a0a724034556852c5bede3d5ae
7
+ data.tar.gz: f5708d15b6a767bbbaa2c2b744e84c42c7b84720d4e292c6e0b53c8a335d40f8bf35536adfbbc643b6cc9399ed53fdbc33ac5754884202bc59efe764d874834f
@@ -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
- pg_stat_statements_ver = RailsPgExtras.connection.execute("select installed_version from pg_available_extensions where name='pg_stat_statements'")
30
- .to_a[0].fetch("installed_version", nil)
31
- if pg_stat_statements_ver != nil
32
- if Gem::Version.new(pg_stat_statements_ver) < Gem::Version.new(NEW_PG_STAT_STATEMENTS)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsPgExtras
4
- VERSION = "5.3.0"
4
+ VERSION = "5.3.1"
5
5
  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.0
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-08-25 00:00:00.000000000 Z
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.0
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.0
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.1.6
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: