prick 0.20.5 → 0.20.6

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: 546c5ddee2590544bc4d77eeac96db85cbe2bcf1f752a310ead0623bd02af69c
4
- data.tar.gz: fe5ea7a76834b33d4e50664fa379d617b7820b89b82907613fa9d7e4be9d81b4
3
+ metadata.gz: 9ab5f6fc19173d14d2e5e39dd510eceafa346e402dbab8c0e04b48be623b4fae
4
+ data.tar.gz: 19a7d2c7fc9e19041c75cee34fdc91267c74f7573a93361bfa90aeafcb2fbe6f
5
5
  SHA512:
6
- metadata.gz: f7c3c32abf035d32c787df578b7ba9a6b9f87cac4b76afb37f3293621a4dc3c7b098bf102e64fe0c9959cca75559d0b8f5273833067b76101b82f3439598bad9
7
- data.tar.gz: b7628d68390952963b185e68bdcb8431fa86a1bc7e847ba546eaed57525ac748dedc951f6619c202dc192fe5bd03e841699d75f4e10746b013a86a44f4a79ed3
6
+ metadata.gz: a5ecd95bed34a3cbfc5e0a246cfb29171063f433d5d9d1edd9c05fe2df5758518575ebb182996c4ae3e97faab46c4adce120eea4538ee83ebacbd829a21561c5
7
+ data.tar.gz: 5edb4eb6faaa5cc15480aa18dfe11d425edb1051408d61aea44e957691da98a51d89d5bee41106dd9f5c8a31ed073820e048ff558a69027f764a036acbe5fe9b
data/lib/prick/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Prick
4
- VERSION = "0.20.5"
4
+ VERSION = "0.20.6"
5
5
  end
@@ -4,18 +4,18 @@ require 'builder/builder.rb'
4
4
 
5
5
  module Prick::SubCommand
6
6
  def self.drop_users(database)
7
- PgConn.new(postgres) { |conn|
7
+ PgConn.new("postgres") { |conn|
8
8
  users = conn.role.list(database: database)
9
9
  conn.role.drop(users, cascade: true)
10
10
  }
11
11
  end
12
12
 
13
13
  def self.drop_database(database)
14
- PgConn.new(postgres) { |conn| conn.rdbms.drop database }
14
+ PgConn.new("postgres") { |conn| conn.rdbms.drop database }
15
15
  end
16
16
 
17
17
  def self.drop_all(database)
18
- PgConn.new(postgres) { |conn|
18
+ PgConn.new("postgres") { |conn|
19
19
  users = conn.role.list(database: database)
20
20
  PgConn.new(database) { |db| db.role.drop(users, cascade: true) }
21
21
  conn.rdbms.drop database
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.5
4
+ version: 0.20.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen