prick 0.20.26 → 0.20.27

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: ef9683d44f849bd5a028f6b450a167fb2433b659b672f9a66568a59629c49fe7
4
- data.tar.gz: 242a6d11790d04054d0e70f6142ba1564730b0d0cc1301cc37a9c3e350442618
3
+ metadata.gz: cb6da68d55bd73eae53e53518648219fb43dfb7fd74efc96ac9e8cecb901db76
4
+ data.tar.gz: 01d468a6faa5a575c6a36805bd3073f854e197f2846ab11ccb723d6b0fefd661
5
5
  SHA512:
6
- metadata.gz: db54f4bb1da3d044092c5e6d0189e126d3f8508e8379edb41dbcc55f0b9e72fe9506ece977ca4661cc3269fe055a62eefce89ee4534e6453ad5d05601850a01b
7
- data.tar.gz: 156401d0f3ff5410028d17ec4dff24757ee586579c682a5906f561fe9af253c83da88aebfeba6a422cc2502cd0aadb6af22292d07a06267a75d66ee388e1a291
6
+ metadata.gz: 5bbb991c2733e270ad00913cefeaf7d50dce15b18e5abc4994e45946d9d83aaad1659ecc9d3a2d0b08e4a3119fb10ff1ed1d13ea0dbf4464cfa9ceaa0c0736f6
7
+ data.tar.gz: bff7a39be7d12a4e7ff3a6325a2b945a69064025929c96c4c579bfa29877cc2fd22365f5fffc284831c687cf051cc84b524ed2899d7c47c8d97e92186302a48f
data/lib/builder/node.rb CHANGED
@@ -135,8 +135,12 @@ module Prick
135
135
 
136
136
  protected
137
137
  def read_source
138
- pipe.puts [conn.name, conn.user]
139
- sql = pipe.wait
138
+ begin
139
+ pipe.puts [conn.name, conn.user]
140
+ sql = pipe.wait
141
+ rescue Errno::EPIPE
142
+ raise Prick::Error, "Pipe fail on #{pipe.cmd} #{args.join(" ")}"
143
+ end
140
144
  if pipe.status != 0
141
145
  $stderr.puts pipe.error
142
146
  raise Prick::Error, "Failed executing #{pipe.cmd} #{args.join(" ")}"
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.26"
4
+ VERSION = "0.20.27"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.26
4
+ version: 0.20.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen