prick 0.21.2 → 0.22.0

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: 45486f141eabdfa21f47abbe77a587a30602edb1bb5b2bb99d1dc1e263f7fe9e
4
- data.tar.gz: e6b9f2bf98cc0f316108f56bf608f65b1247cb7e8ca4e1d40b15f0d0de69df01
3
+ metadata.gz: 0abcf31dce923144b50de361488a1735e88a835a1ee35b6a01d3e45ea170f15a
4
+ data.tar.gz: 9917c1a6d630b034849cc1e1a10bebc2d871ea29c61867b61246b4b714f508bb
5
5
  SHA512:
6
- metadata.gz: 9e809ccc697d019e259d73b0700f0c79555fc6d47699c12f96285bf62c236b03531d52f1fbb48c973b9bcac00cc382ad8d415f96e54790a69cc4e7e9198e13b6
7
- data.tar.gz: 6292aec4350d08659e2333c9ed9a0e23876b9c85b74aaebea730ab4628ea10985bb38136d881481cc27935b79bba7ddcf2fbe3026bac0ad5fab8431ba433db80
6
+ metadata.gz: e9c68ea9d1894decd7d65a15002246b2c460b757c0987062e0ec419befab12fa334e3e7c089fa09e54a18337a53855fd735ef366353e726ff0d4dad1f343b9f1
7
+ data.tar.gz: 95ac406592fb8e32c22469d9937adbfd3cd1b8dd713cbe37f8522135b03bb5287a9cfd8eb8acbe7c910624b0dc443038cc3afcda03ae36bdf8db1e51fb191511
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
 
@@ -46,7 +46,7 @@ module Prick
46
46
  unit = make_build_unit(parent, path)
47
47
  entries = YAML.load(File.read(path)) || []
48
48
  entries.each { |entry|
49
- if entry.is_a?(Hash)
49
+ if entry.is_a?(Hash) && (entry.size != 1 || entry.first.first != "sql")
50
50
  entry.each { |key, value|
51
51
  if key == "schema"
52
52
  unit.schema = value
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.2"
4
+ VERSION = "0.22.0"
5
5
  end
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.2
4
+ version: 0.22.0
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-10 00:00:00.000000000 Z
11
+ date: 2022-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: semantic