prick 0.20.5 → 0.20.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/prick +2 -2
- data/lib/prick/version.rb +1 -1
- data/lib/subcommand/prick-drop.rb +3 -3
- 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: e4c6cd44559e92012eca99ec848b8bb609f43f1b2223f164b769aa4ab53b8874
|
4
|
+
data.tar.gz: 2e8ada4e832b460b653009378a52e4719953226513209b7cba1b2e1ed6a960cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13ad69185e17e2e4a4992bbeb4b20cd8df72be284f4fe4830e63c7152ebb4395f8e263b62a249fe1cc3c5bd025a6589ed6dda4ccd96bd16fc3f64786ff82e3c6
|
7
|
+
data.tar.gz: d824501f05b36ec7ee8f8495ea334f86e33a3672f49d8f77e631591394ddd4f222a44e42be50211dfb8e323dd8ecb1b5f51e08d3ed3e291ca513fa64f4fd745d
|
data/exe/prick
CHANGED
@@ -12,7 +12,7 @@ begin
|
|
12
12
|
compile_cache_iseq: true, # Compile Ruby code into ISeq cache, breaks coverage reporting.
|
13
13
|
compile_cache_yaml: true # Compile YAML into a cache
|
14
14
|
)
|
15
|
-
|
15
|
+
# Bootsnap.instrumentation = ->(event, path) { puts "#{event} #{path}" }
|
16
16
|
end
|
17
17
|
|
18
18
|
require 'prick.rb'
|
@@ -229,7 +229,7 @@ begin
|
|
229
229
|
raise Prick::Fail, "Internal error: Unhandled command - #{opts.subcommand.inspect}"
|
230
230
|
end
|
231
231
|
|
232
|
-
rescue ShellOpts::Failure, Prick::Fail, Prick::Build::PostgresError => ex
|
232
|
+
rescue RuntimeError, IOError, ShellOpts::Failure, Prick::Fail, Prick::Build::PostgresError => ex
|
233
233
|
ShellOpts.failure(ex.message)
|
234
234
|
|
235
235
|
rescue ShellOpts::Error, Prick::Error => ex
|
data/lib/prick/version.rb
CHANGED
@@ -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,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prick
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.20.
|
4
|
+
version: 0.20.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Claus Rasmussen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: semantic
|