prick 0.20.19 → 0.20.21

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: 523f3f63b46850833fd679103f6a2ed389fee673376be4ffd54ab85ed76e9dfb
4
- data.tar.gz: 58d881d1e9a5ebaea7b16caf35fc7d34670a6fa7f1a404357463f3dbbb73e81c
3
+ metadata.gz: 46a87abbffef16c1bb50a6373899af18c19f92623061df2e1e19d885a37c1471
4
+ data.tar.gz: d5efe0c79ba6cae778efb41a7323d7a9aa9c381a8d6549b2970aa72d59ad6292
5
5
  SHA512:
6
- metadata.gz: c5f95a314a5dbaddef93d4e184ed5c10c35118b6e29f8ac8111589e4e79031dc83f254345853da84591edb9b511c5eab299dfa6716dc8db91b70361fe56ada12
7
- data.tar.gz: '08eef7aaeea483bd45956898d290d69bb2859d41caafcc2ea64ce45bd9c2edd348a0cb003ba76054192e078fae3cf325c009ddb271d5d9e863915eb8eed95fe7'
6
+ metadata.gz: 2ad1bf122fceb44eb64dbe9c52ce45d1f1ab6c9b22e4c621322199dfc65dbf978ae18690bfce36f39dfc2848ea9a186c0463522ece50abf6b6a66409399d3fe3
7
+ data.tar.gz: 34edeb9b7721167d4ad15d285fa89029729c9bd26a926b2b3f9c686a9ee5ab54d1bae5ccb439860749aeffb2aedff7c8247ea314336eae7523626feeb2e2ce37
data/lib/builder/node.rb CHANGED
@@ -137,6 +137,10 @@ module Prick
137
137
  def read_source
138
138
  pipe.puts [conn.name, conn.user]
139
139
  sql = pipe.wait
140
+ if pipe.status != 0
141
+ $stderr.puts pipe.error
142
+ raise Prick::Error, "Failed executing #{pipe.cmd}"
143
+ end
140
144
  @source_lines = 1 + 1 + sql.count("\n")
141
145
  ["set search_path to #{schema};\n", sql]
142
146
  end
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.19"
4
+ VERSION = "0.20.21"
5
5
  end
@@ -4,7 +4,7 @@ require 'builder/builder.rb'
4
4
 
5
5
  module Prick::SubCommand
6
6
  def self.setup(database, username)
7
- conn = PgConn.new
7
+ conn = PgConn.new("template1") # Connect to template1 because database might not exist
8
8
  if !conn.role.exist? username
9
9
  # FIXME Should not be created as superuser but we can't do that before we
10
10
  # have a super: option in build
data/prick.gemspec CHANGED
@@ -40,6 +40,7 @@ Gem::Specification.new do |spec|
40
40
  spec.add_dependency "shellopts", "~> 2.0.23"
41
41
 
42
42
  spec.add_development_dependency "ruby-prof"
43
+ spec.add_development_dependency "dbutils"
43
44
 
44
45
  # Also un-comment in spec/spec_helper to use simplecov
45
46
  # spec.add_development_dependency "simplecov"
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.19
4
+ version: 0.20.21
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-06 00:00:00.000000000 Z
11
+ date: 2022-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: semantic
@@ -150,6 +150,20 @@ dependencies:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: dbutils
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
153
167
  description: A release control and management system for postgresql
154
168
  email:
155
169
  - claus.l.rasmussen@gmail.com