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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 546c5ddee2590544bc4d77eeac96db85cbe2bcf1f752a310ead0623bd02af69c
4
- data.tar.gz: fe5ea7a76834b33d4e50664fa379d617b7820b89b82907613fa9d7e4be9d81b4
3
+ metadata.gz: e4c6cd44559e92012eca99ec848b8bb609f43f1b2223f164b769aa4ab53b8874
4
+ data.tar.gz: 2e8ada4e832b460b653009378a52e4719953226513209b7cba1b2e1ed6a960cf
5
5
  SHA512:
6
- metadata.gz: f7c3c32abf035d32c787df578b7ba9a6b9f87cac4b76afb37f3293621a4dc3c7b098bf102e64fe0c9959cca75559d0b8f5273833067b76101b82f3439598bad9
7
- data.tar.gz: b7628d68390952963b185e68bdcb8431fa86a1bc7e847ba546eaed57525ac748dedc951f6619c202dc192fe5bd03e841699d75f4e10746b013a86a44f4a79ed3
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
- Bootsnap.instrumentation = ->(event, path) { puts "#{event} #{path}" }
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
@@ -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.8"
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,14 +1,14 @@
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.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-24 00:00:00.000000000 Z
11
+ date: 2022-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: semantic