pghero 3.3.1 → 3.3.2

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: f26e73390b749930f287536790ab7951268d105c074211c3273c595105558b4e
4
- data.tar.gz: 8d6e752dde349c152e5569f93f282035c35357f4eb54edf682ddd5c2e3a23986
3
+ metadata.gz: 2fa38fa0cc98e7f066698e558c6a6bc59cdc60ed5fd2ecbafe43f9f46918c8a2
4
+ data.tar.gz: 41510ad944cbd565c62aa02d6996af86ce4764e10cfbd09d1109ee12b2534fae
5
5
  SHA512:
6
- metadata.gz: 9f2be7dd596e50df9319cc794e2098226833445f4b6a1fefb2f57aca21eb38e3f2676c78bc14d620bcc36da413e6825709e053020646b00ae428b33860534406
7
- data.tar.gz: b852564d036d3c2e427e4f4ccccdfc9cb00c13507a64cf742d0fadf3c6ec35cfc6eddbe5c6a8e29f2d71692fe6a3a663f91ee0bd8807fa946a537938908456c6
6
+ metadata.gz: dfeb7118ad7d5b2b0170b6e82ef03595725085de2e93e4c6a05eb16a3d7288b4475fe33dc0e86bbbd6f17d4e5bf50df391ce8772a57c0aec77656e822244b264
7
+ data.tar.gz: 24f21e42883c5148bff431dda7dba11701e109347fc2ee173288cb3378ccf41354c3111074fba46a556b2a280d476caca9b20ba48b3b4b8bae1dee884f738c62
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 3.3.2 (2023-04-12)
2
+
3
+ - Fixed error with suggested indexes and empty statements
4
+
1
5
  ## 3.3.1 (2023-03-15)
2
6
 
3
7
  - Fixed error with Uglifier
@@ -194,6 +194,7 @@ module PgHero
194
194
  end
195
195
 
196
196
  def best_index_structure(statement)
197
+ return {error: "Empty statement"} if statement.to_s.empty?
197
198
  return {error: "Too large"} if statement.to_s.length > 10000
198
199
 
199
200
  begin
@@ -1,3 +1,3 @@
1
1
  module PgHero
2
- VERSION = "3.3.1"
2
+ VERSION = "3.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pghero
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.1
4
+ version: 3.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-16 00:00:00.000000000 Z
11
+ date: 2023-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubygems_version: 3.4.6
127
+ rubygems_version: 3.4.10
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: A performance dashboard for Postgres