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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63488be445a29436ffa0451acef24bc12e517f31
4
- data.tar.gz: 31a1973c5f7324b119544ab9f54a34161238a0b4
3
+ metadata.gz: 1ff54cb7718c9fa71235f8cd8902d892b22fa846
4
+ data.tar.gz: 8063771e39db3713fcdc24b2e7ec9ad6d79b99fa
5
5
  SHA512:
6
- metadata.gz: a7233f1a2a560983a00086c76349493a4433870e9f29394dbff41bfb39991bf589458777bad9b212fac3f654d1ed245953b6b6f7c38c9eb8569c7fdb9d7d52b6
7
- data.tar.gz: 13c5da9a191fd4c2c7d3e450a07dea36e41f812c1abf67da1c04896dc495ba10675794f149da74627f05188008784a7b16f0dd615d8e2eab941d4038d1276453
6
+ metadata.gz: 5abef652a9cf1bf074cb3ebf13ca92a15985ceb9d398bc648865345ae24297f7a6034b59f32265390eb88f314ca8174e04669b2552120eb5f396ebf5db41d281
7
+ data.tar.gz: af7042728d2272c44a2a9986b5c61892aa20955eb6513655cf3d8c5b05237dfec7d2f6b2a2f61a8af5215b23d87a03c179351230796f8bbb6540a6f4c10d72c1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.2.4
2
+
3
+ - Fixed user methods
4
+
1
5
  ## 1.2.3
2
6
 
3
7
  - Added schema to queries
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
@@ -1,6 +1,6 @@
1
1
  module PgHero
2
2
  class Database
3
- attr_reader :id, :config, :connection_model
3
+ attr_reader :id, :config
4
4
 
5
5
  def initialize(id, config)
6
6
  @id = id
@@ -1,7 +1,7 @@
1
1
  module PgHero
2
2
  module Methods
3
3
  module SuggestedIndexes
4
- def suggested_indexes_enabled?
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
- end
219
+ end
220
220
 
221
221
  def index_covers?(indexed_columns, columns)
222
222
  indexed_columns.first(columns.size) == columns
@@ -1,3 +1,3 @@
1
1
  module PgHero
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.4"
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: 1.2.3
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-04-21 00:00:00.000000000 Z
11
+ date: 2016-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord