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 +4 -4
- data/exe/prick +1 -1
- data/lib/prick/version.rb +1 -1
- data/lib/subcommand/prick-build.rb +4 -2
- 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: 0550a4891159d10478b94aa8837940a31aed031a9b3764e3e86cdceba095d833
|
4
|
+
data.tar.gz: bcff9473fede146266c9803c0ac37bd70c33bd3ce1b6c25d27847c28be4420a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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")
|
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
@@ -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|
|
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.
|
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-
|
11
|
+
date: 2022-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: semantic
|