pghero 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pghero might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 924297f7d5d7f5ae69f7105d22752011a809c6e3
4
- data.tar.gz: 8fcd272469562fd914aa9ad490a6cb1ba022ad56
3
+ metadata.gz: 445cd3bca08cacab61c7fbf4d6f910905cb28677
4
+ data.tar.gz: 22a7465af2781805eeafb47cd8208283a82f460f
5
5
  SHA512:
6
- metadata.gz: b83d39c5c5939966dfffbe4c0f6013a1f0830e8cf12821d9c46460a0ab8e55b82a0ba1273159a0c3c309d0259ae50060cb4538de4dddd0cf69918d1f8586f881
7
- data.tar.gz: 2932ffba7ddd3545085858e3ec26a08a1d5c119a80fd8ee297ef947335128e0210ee5450b6d0345c23861d97978c6ec2408536629e19e4d4e82398f74b8e28fa
6
+ metadata.gz: e107fd5f5edab6f689ae6cf7643820ef36d57364f06e9af6926a99d2c41db0f4cdcafaa38cbaf7492b724f5c966bffc8b9052f0e4ae93c5e998e597b85af1782
7
+ data.tar.gz: 2716c641985e431380c0162127d66be3cb473d7089678735482ebe188132a22de0d308a084cdbacea61290dbdad876ea02b6196b6dea0931e3c6a8ad640dbd73
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.2
2
+
3
+ - Fixed `query_stats_available?` method
4
+
1
5
  ## 0.1.1
2
6
 
3
7
  - Added explain
data/README.md CHANGED
@@ -69,7 +69,6 @@ end
69
69
  ## TODO
70
70
 
71
71
  - show exactly which indexes to add
72
- - use `pg_stat_statements` extension for more detailed insights
73
72
  - more detailed explanations on dashboard
74
73
 
75
74
  Know a bit about PostgreSQL? [Suggestions](https://github.com/ankane/pghero/issues) are greatly appreciated.
@@ -33,12 +33,12 @@ module PgHero
33
33
  end
34
34
 
35
35
  def queries
36
- @title = "Queries"
36
+ @title = "Live Queries"
37
37
  @running_queries = PgHero.running_queries
38
38
  end
39
39
 
40
40
  def query_stats
41
- @title = "Query Stats"
41
+ @title = "Queries"
42
42
  @query_stats = PgHero.query_stats
43
43
  end
44
44
 
@@ -72,7 +72,7 @@
72
72
 
73
73
  textarea {
74
74
  width: 100%;
75
- height: 80px;
75
+ height: 100px;
76
76
  border: solid 1px #ccc;
77
77
  padding: 10px;
78
78
  }
data/lib/pghero.rb CHANGED
@@ -236,7 +236,7 @@ module PgHero
236
236
  end
237
237
 
238
238
  def query_stats_available?
239
- select_all("SELECT COUNT(*) AS count FROM pg_available_extensions WHERE name = 'pg_stat_statements'").first["count"].to_i > 0
239
+ select_all("SELECT COUNT(*) AS count FROM pg_available_extensions WHERE name = 'pg_stat_statements' AND installed_version IS NOT NULL").first["count"].to_i > 0
240
240
  end
241
241
 
242
242
  def query_stats_enabled?
@@ -1,3 +1,3 @@
1
1
  module PgHero
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pghero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane