prick 0.21.1 → 0.21.3

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: 851c4a7b6184883fd38a03f5a96af408640f76fcd424859947e0aa70a91b3f81
4
- data.tar.gz: 9c04deb3aadf390833b6bd3b3def242069b75b9cfad297e3287900067d33bbbe
3
+ metadata.gz: 0550a4891159d10478b94aa8837940a31aed031a9b3764e3e86cdceba095d833
4
+ data.tar.gz: bcff9473fede146266c9803c0ac37bd70c33bd3ce1b6c25d27847c28be4420a8
5
5
  SHA512:
6
- metadata.gz: ce3215c329264d1e9948aba65c2e15085b17b868270abb4e8539d4a14c82ff353a0e3986e5b1b1bd3548b23188629a906008d735a759a47b70a883d2b289604c
7
- data.tar.gz: e75dd4f658cd3a7283d70e1e0bdff064063f062cdd0c7560dae682aa1c9c0679a5dd3be69fbabc67f396041e811fd9620cfc6c4a7b3d32c527dfb64300c7c25f
6
+ metadata.gz: 2f583cff2b3754caa9dbc39e20cbc5dd23fcfe88c40f19838bbdb896d335df958a806aef98150676759fba8b98b0f524d76dfbf146a9d4f615423af2c6448ec7
7
+ data.tar.gz: 7bf6f685aec49b77cb630505c9f419f7ee69c0a5d164b52a5915a154e145a9229f070e100c4e240cbbdf065249d5c4e8c422e3cc88d30479bac1a4fbc30fc05f
data/exe/prick CHANGED
@@ -183,7 +183,7 @@ begin
183
183
  end
184
184
 
185
185
  when :build!
186
- dump = cmd.dump? ? cmd.dump("batches").to_sym : nil
186
+ dump = cmd.dump? ? cmd.dump("batches")&.to_sym || :batches : nil
187
187
  Prick::SubCommand.build(
188
188
  database, username, args.expect(0..1), force: cmd.force?, timer: cmd.time?, dump: dump)
189
189
 
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.21.1"
4
+ VERSION = "0.21.3"
5
5
  end
@@ -35,8 +35,10 @@ module Prick::SubCommand
35
35
  # database
36
36
  refresh_schemas = conn.schema.list
37
37
 
38
- # Find existing keep-schemas
39
- keep_schemas = builder.keep_schemas.select { |s| conn.schema.exist?(s) }
38
+ # Find existing keep-schemas (but exclude target schema)
39
+ keep_schemas = builder.keep_schemas.select { |s|
40
+ conn.schema.exist?(s) && (schema.nil? || schema != s)
41
+ }
40
42
 
41
43
  # Remove keep-schemas from list of schemas
42
44
  refresh_schemas -= keep_schemas
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.21.1
4
+ version: 0.21.3
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-11-03 00:00:00.000000000 Z
11
+ date: 2022-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: semantic