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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c76b0bc51fa4b3303cadc824bb4ff0d1b9c2c76fd1d013bad4aa006737b7311e
4
- data.tar.gz: 0a4b305df2d73da8a57c0d6f87494d796099fe7b1bdbb3970c372a41a92b36b5
3
+ metadata.gz: 3dc4e433b296e10221975eb85be4abea219720e0612c0f9720369fd69e18daa1
4
+ data.tar.gz: 68215c2e6557dd7288bd3754a65780d4b6c3794ed10c7aecc714b856f5d94fc8
5
5
  SHA512:
6
- metadata.gz: 77fe61ee4e5d5583bed6dc63f85cafdeb5fb84fac7cc4fb1c8afb1854d9315d9d77d7b8a4607049581c81608617edfe73a986df7b2518d4acaa6be64c69241e8
7
- data.tar.gz: c198b0391e2484951ec34e158f358dc5ac29537b247d72505abb9a9b1b80414c49b89b6c8790b03e4ccdefe76b1180aa0158ec4d34d1115682b7d53d79aad752
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Prick
4
- VERSION = "0.25.1"
4
+ VERSION = "0.25.2"
5
5
  end
@@ -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.1
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-08-14 00:00:00.000000000 Z
11
+ date: 2023-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: semantic