pghero 2.4.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

@@ -1,6 +1,8 @@
1
1
  module PgHero
2
2
  module Methods
3
3
  module Users
4
+ # documented as unsafe to pass user input
5
+ # TODO quote in 3.0, but still not officially supported
4
6
  def create_user(user, password: nil, schema: "public", database: nil, readonly: false, tables: nil)
5
7
  password ||= random_password
6
8
  database ||= connection_model.connection_config[:database]
@@ -39,6 +41,8 @@ module PgHero
39
41
  {password: password}
40
42
  end
41
43
 
44
+ # documented as unsafe to pass user input
45
+ # TODO quote in 3.0, but still not officially supported
42
46
  def drop_user(user, schema: "public", database: nil)
43
47
  database ||= connection_model.connection_config[:database]
44
48
 
@@ -1,3 +1,3 @@
1
1
  module PgHero
2
- VERSION = "2.4.0"
2
+ VERSION = "2.6.0"
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: 2.4.0
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-11 00:00:00.000000000 Z
11
+ date: 2020-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -200,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
200
  - !ruby/object:Gem::Version
201
201
  version: '0'
202
202
  requirements: []
203
- rubygems_version: 3.0.3
203
+ rubygems_version: 3.1.2
204
204
  signing_key:
205
205
  specification_version: 4
206
206
  summary: A performance dashboard for Postgres