prick 0.20.24 → 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: 1471c1bea2fd2dd46c4223f0977671f00f9f0feae3b9df143337481e24939ce5
4
- data.tar.gz: a28aa6388772b3ea6fa1916918f67a659d63497e109dd1719904347e32e5697b
3
+ metadata.gz: cb6da68d55bd73eae53e53518648219fb43dfb7fd74efc96ac9e8cecb901db76
4
+ data.tar.gz: 01d468a6faa5a575c6a36805bd3073f854e197f2846ab11ccb723d6b0fefd661
5
5
  SHA512:
6
- metadata.gz: 69b8af02b68c6e58d342e86f141f9767f43bbb2805efc972e3cdf4ff5228ef1e6e22427787f3fdcaae3e64e37956082787e63f8fc20c75be5ca67e8274526382
7
- data.tar.gz: 7910ca9d72b5118df3f865e7ed1cb40ec0177441e15f27728980d11e102a13e355201140b18ade22d20568f14db0ec9e6cc1076498164e21b60794d45e1a79e9
6
+ metadata.gz: 5bbb991c2733e270ad00913cefeaf7d50dce15b18e5abc4994e45946d9d83aaad1659ecc9d3a2d0b08e4a3119fb10ff1ed1d13ea0dbf4464cfa9ceaa0c0736f6
7
+ data.tar.gz: bff7a39be7d12a4e7ff3a6325a2b945a69064025929c96c4c579bfa29877cc2fd22365f5fffc284831c687cf051cc84b524ed2899d7c47c8d97e92186302a48f
data/lib/builder/node.rb CHANGED
@@ -135,11 +135,15 @@ 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
- raise Prick::Error, "Failed executing #{pipe.cmd}"
146
+ raise Prick::Error, "Failed executing #{pipe.cmd} #{args.join(" ")}"
143
147
  end
144
148
  @source_lines = 1 + 1 + sql.count("\n")
145
149
  ["set search_path to #{schema};\n", sql]
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.24"
4
+ VERSION = "0.20.27"
5
5
  end
data/prick.gemspec CHANGED
@@ -47,3 +47,5 @@ Gem::Specification.new do |spec|
47
47
  end
48
48
 
49
49
 
50
+
51
+
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.20.24
4
+ version: 0.20.27
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-06-11 00:00:00.000000000 Z
11
+ date: 2022-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: semantic