pghero 1.2.3 → 1.2.4
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/pghero.rb +2 -0
- data/lib/pghero/database.rb +1 -1
- data/lib/pghero/methods/suggested_indexes.rb +2 -2
- data/lib/pghero/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ff54cb7718c9fa71235f8cd8902d892b22fa846
|
4
|
+
data.tar.gz: 8063771e39db3713fcdc24b2e7ec9ad6d79b99fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5abef652a9cf1bf074cb3ebf13ca92a15985ceb9d398bc648865345ae24297f7a6034b59f32265390eb88f314ca8174e04669b2552120eb5f396ebf5db41d281
|
7
|
+
data.tar.gz: af7042728d2272c44a2a9986b5c61892aa20955eb6513655cf3d8c5b05237dfec7d2f6b2a2f61a8af5215b23d87a03c179351230796f8bbb6540a6f4c10d72c1
|
data/CHANGELOG.md
CHANGED
data/lib/pghero.rb
CHANGED
@@ -22,6 +22,7 @@ require "pghero/methods/space"
|
|
22
22
|
require "pghero/methods/suggested_indexes"
|
23
23
|
require "pghero/methods/system"
|
24
24
|
require "pghero/methods/tables"
|
25
|
+
require "pghero/methods/users"
|
25
26
|
|
26
27
|
module PgHero
|
27
28
|
# settings
|
@@ -50,4 +51,5 @@ module PgHero
|
|
50
51
|
extend Methods::SuggestedIndexes
|
51
52
|
extend Methods::System
|
52
53
|
extend Methods::Tables
|
54
|
+
extend Methods::Users
|
53
55
|
end
|
data/lib/pghero/database.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module PgHero
|
2
2
|
module Methods
|
3
3
|
module SuggestedIndexes
|
4
|
-
|
4
|
+
def suggested_indexes_enabled?
|
5
5
|
defined?(PgQuery) && query_stats_enabled?
|
6
6
|
end
|
7
7
|
|
@@ -216,7 +216,7 @@ module PgHero
|
|
216
216
|
sort = (select["sortClause"] ? parse_sort(select["sortClause"]) : []) rescue []
|
217
217
|
|
218
218
|
{table: table, where: where, sort: sort}
|
219
|
-
|
219
|
+
end
|
220
220
|
|
221
221
|
def index_covers?(indexed_columns, columns)
|
222
222
|
indexed_columns.first(columns.size) == columns
|
data/lib/pghero/version.rb
CHANGED
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: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|