prick 0.25.1 → 0.25.2
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 +2 -2
- data/lib/prick/version.rb +1 -1
- data/lib/subcommand/prick-make.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3dc4e433b296e10221975eb85be4abea219720e0612c0f9720369fd69e18daa1
|
4
|
+
data.tar.gz: 68215c2e6557dd7288bd3754a65780d4b6c3794ed10c7aecc714b856f5d94fc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd193deed4c0d020c6396ebb3862aaa8a65c6edbd1c28e822548db28412a60fb7e85ef357d1a72f883adc6375463415d926129988c8938cab767ce2ebf99a29b
|
7
|
+
data.tar.gz: 22c84f80ecc0eaec3d73e1c87586e705074d3793cafef5e954aaf9538c9fad04b012f50527a63bc611272c324f91e122e4366ac9d7315e91cd43a9ecabc33f2e
|
data/lib/builder/node.rb
CHANGED
@@ -61,7 +61,7 @@ module Prick
|
|
61
61
|
def read_source
|
62
62
|
file = File.read(path)
|
63
63
|
@source_lines = 1 + 1 + file.count("\n")
|
64
|
-
["set search_path to #{schema};\n", file]
|
64
|
+
["set search_path to #{schema}, pg_temp;\n", file]
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
@@ -152,7 +152,7 @@ module Prick
|
|
152
152
|
raise Prick::Error, "Failed executing #{path} called from #{parent.path}"
|
153
153
|
end
|
154
154
|
@source_lines = 1 + 1 + sql.count("\n")
|
155
|
-
["set search_path to #{schema};\n", sql]
|
155
|
+
["set search_path to #{schema}, pg_temp;\n", sql]
|
156
156
|
end
|
157
157
|
end
|
158
158
|
|
data/lib/prick/version.rb
CHANGED
@@ -17,7 +17,7 @@ module Prick::SubCommand
|
|
17
17
|
time "Load build object" do
|
18
18
|
if super_conn.rdbms.exist? database
|
19
19
|
conn = PgConn.new(database, username)
|
20
|
-
if conn.schema.exist_table? "prick", "versions"
|
20
|
+
if conn.schema.exist_table? "prick", "versions" && !conn.empty?("prick.versions")
|
21
21
|
built_at = conn.value("select built_at from prick.versions")
|
22
22
|
end
|
23
23
|
else
|
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.25.
|
4
|
+
version: 0.25.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Claus Rasmussen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: semantic
|