prick 0.20.19 → 0.20.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/builder/node.rb +5 -1
- data/lib/prick/version.rb +1 -1
- data/lib/subcommand/prick-setup.rb +1 -1
- data/prick.gemspec +3 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bea38ed4d2787da53650a1ad5e2d54d0f47bf4ea992252738550b97e8a8bfd54
|
4
|
+
data.tar.gz: 1f4db816642cd1385641363a9fdaadc35ee39df729ae42ae956941864999d82d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2aa435ce6154cb71ed0853de3c1f83b28492351f01c3225154cb2723522604c08def9994704b3fc9e3965779020ad88fef48a5119a8edc5300d388ac0a0a745
|
7
|
+
data.tar.gz: 1273425b9dc32900136575dfe0ae020f1c999c8bf649119b0c8e44dc8cd5a53b19bd3bdd1c3164beb673e8904b11208f42e7656feca79a139c0202a03083e026
|
data/lib/builder/node.rb
CHANGED
@@ -131,12 +131,16 @@ module Prick
|
|
131
131
|
@pipe = Command::Pipe.new(to_s, stderr: nil)
|
132
132
|
end
|
133
133
|
|
134
|
-
def inspect() "#{path}(#{args.join(", ")})" end
|
134
|
+
def inspect() "#{path}(#{(args || []).join(", ")})" end
|
135
135
|
|
136
136
|
protected
|
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
@@ -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
@@ -37,10 +37,12 @@ Gem::Specification.new do |spec|
|
|
37
37
|
spec.add_dependency "fixture_fox", "~> 0.1.3"
|
38
38
|
spec.add_dependency "postspec"
|
39
39
|
spec.add_dependency "pg_graph", "~> 0.1.8"
|
40
|
-
spec.add_dependency "shellopts", "~> 2.0.
|
40
|
+
spec.add_dependency "shellopts", "~> 2.0.24"
|
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"
|
46
47
|
end
|
48
|
+
|
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.
|
4
|
+
version: 0.20.23
|
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
|
+
date: 2022-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: semantic
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 2.0.
|
131
|
+
version: 2.0.24
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 2.0.
|
138
|
+
version: 2.0.24
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: ruby-prof
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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
|