prick 0.21.1 → 0.21.2

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: 45486f141eabdfa21f47abbe77a587a30602edb1bb5b2bb99d1dc1e263f7fe9e
4
+ data.tar.gz: e6b9f2bf98cc0f316108f56bf608f65b1247cb7e8ca4e1d40b15f0d0de69df01
5
5
  SHA512:
6
- metadata.gz: ce3215c329264d1e9948aba65c2e15085b17b868270abb4e8539d4a14c82ff353a0e3986e5b1b1bd3548b23188629a906008d735a759a47b70a883d2b289604c
7
- data.tar.gz: e75dd4f658cd3a7283d70e1e0bdff064063f062cdd0c7560dae682aa1c9c0679a5dd3be69fbabc67f396041e811fd9620cfc6c4a7b3d32c527dfb64300c7c25f
6
+ metadata.gz: 9e809ccc697d019e259d73b0700f0c79555fc6d47699c12f96285bf62c236b03531d52f1fbb48c973b9bcac00cc382ad8d415f96e54790a69cc4e7e9198e13b6
7
+ data.tar.gz: 6292aec4350d08659e2333c9ed9a0e23876b9c85b74aaebea730ab4628ea10985bb38136d881481cc27935b79bba7ddcf2fbe3026bac0ad5fab8431ba433db80
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.2"
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.2
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