pg_conn 0.13.4 → 0.13.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pg_conn/role_methods.rb +2 -3
- data/lib/pg_conn/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e52454dd0c67763cbc1ea40cf63f17f7dfbf81eaf7b90aecf60f3874ac12ffd1
|
4
|
+
data.tar.gz: bf895b59d9d6ed78f407b2260e5156e700c6dba66bde36c68e470e8311c20593
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69d9cc2e6a70fec98890b53381c294a51d6476c5e888f2d7eb4ed7b73268d216fa89423830c255a9b8ce9677a1bf3553eec1a793395801150d464863d3fe5d7b
|
7
|
+
data.tar.gz: 6939ecd7182397e23fcf2eb901627dc479a97c5aa6a80f0a90eacc6a3665763407236da8ae54f747c8ad3060f815796ca3588fdcc128bce448c0ceabc3fb805b
|
data/lib/pg_conn/role_methods.rb
CHANGED
@@ -79,10 +79,9 @@ module PgConn
|
|
79
79
|
# end
|
80
80
|
end
|
81
81
|
|
82
|
-
# List users. TODO Use RE
|
83
|
-
# FIXME: Depends on the <database>__<username> convention
|
82
|
+
# List users. TODO Use RE. Also doc this shit
|
84
83
|
def list(database: nil, owner: false, superuser: nil, can_login: nil)
|
85
|
-
database_clause = database && "rolname like '#{database}
|
84
|
+
database_clause = database && "rolname like '#{database}\\_\\_%'"
|
86
85
|
database_clause = database && "(#{database_clause} or rolname = '#{database}')" if owner
|
87
86
|
superuser_clause = superuser.nil? ? nil : "rolsuper = #{superuser}"
|
88
87
|
can_login_clause = can_login.nil? ? nil : "rolcanlogin = #{can_login}"
|
data/lib/pg_conn/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pg_conn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Claus Rasmussen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|