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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47d71f26ef9bedde82dfcaf9c196dfde4bf7e016d8865b195687b717972dc5c9
4
- data.tar.gz: aa0aa1f21ac0a15ae1094bab38ff03b7c9099e08bb5437ed3557a70bf7cc38f4
3
+ metadata.gz: e52454dd0c67763cbc1ea40cf63f17f7dfbf81eaf7b90aecf60f3874ac12ffd1
4
+ data.tar.gz: bf895b59d9d6ed78f407b2260e5156e700c6dba66bde36c68e470e8311c20593
5
5
  SHA512:
6
- metadata.gz: d9ca49b277657eb5e7ebd9f5a7896168db39ce12b22d7598eb04b39fd9ee8c183fde92adc2c1e2f506ca532a62fd0fda67ec42660843fd74cddd8f6ea2256f0c
7
- data.tar.gz: '0648150d407460aaf0c5f2f1cb2fdbd6313eed964e72073b2888e4f54cf82af2d96968dd3b7aaa11469620ed459509e948a8fd717ac54284067230702387f0df'
6
+ metadata.gz: 69d9cc2e6a70fec98890b53381c294a51d6476c5e888f2d7eb4ed7b73268d216fa89423830c255a9b8ce9677a1bf3553eec1a793395801150d464863d3fe5d7b
7
+ data.tar.gz: 6939ecd7182397e23fcf2eb901627dc479a97c5aa6a80f0a90eacc6a3665763407236da8ae54f747c8ad3060f815796ca3588fdcc128bce448c0ceabc3fb805b
@@ -79,10 +79,9 @@ module PgConn
79
79
  # end
80
80
  end
81
81
 
82
- # List users. TODO Use RE instead of database argument. Also doc this shit
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}"
@@ -1,3 +1,3 @@
1
1
  module PgConn
2
- VERSION = "0.13.4"
2
+ VERSION = "0.13.5"
3
3
  end
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
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-10 00:00:00.000000000 Z
11
+ date: 2024-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg