prick 0.43.0 → 0.43.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 776071ac8d6762ee4a9d60f40c308a13be0fc51451ad52844e5821b3ec72d330
4
- data.tar.gz: c2d0d5637d8948853574edb40a932ec632f4dd6c53ce19b8fd18c64b6e639ab0
3
+ metadata.gz: 27d815c3a439f4e7bd5ca403a56448fb2c4f4025fd6ab3a9ace77361252e8948
4
+ data.tar.gz: 51bd8615c1e9c87e6471d833c1b0715d1a8b4e7bf688842af8c054f643c4d602
5
5
  SHA512:
6
- metadata.gz: cbfb74c1775869db3ec1b2d24a8d69565d9b785220c9ec9c4051bb6f63de23709c71df4c4109d5de889352e66710fedcb1ca2ba667dfdd79f31f66396de35188
7
- data.tar.gz: 6a9e7b64410e37e7449e5c09ef41cdac244d3050418ea04b2ca6aa5316d716d415caba1be6a4ab280875eb345eddd99f9e7e4f527a7ebfc1673b439cf457a3a5
6
+ metadata.gz: 128b169433e4cae1fd44ba0ab5de7f359a2ace6eb00d369707dacf3dfc9ac7e36d51e778aaf4fbab84b6c7a096c1562cd9e8b248e5cd9977a5ce6e8318ab1032
7
+ data.tar.gz: c095e82fb28426747a7abc679fd2e77e92742068e471cc87537c6f26fa7199f02a9206e11073fbd080c83280c36b156d68aa264bc0a34fa6ba3fa3ccc50cc4d5
data/exe/prick CHANGED
@@ -166,7 +166,8 @@ SPEC = %(
166
166
  The --reset option resets data to the last snapshot before loading the
167
167
  file. The --exclude option lists schemas that should not be included in
168
168
  fox, typically schemas that doens't comply with prick's naming
169
- conventions
169
+ conventions. Schemas that are marked 'standard: false' in build.yml are
170
+ always excluded
170
171
 
171
172
  snapshot!
172
173
  Records maximum ID for all tables and stores them in the prick.snapshot
@@ -36,7 +36,7 @@ module Prick::SubCommand
36
36
  if force
37
37
  # Drop all schemas except the prick schema and re-creates the
38
38
  # public schema
39
- build.pool.delete_schema("prick") if super_conn.schema.exist?("prick")
39
+ builder.pool.delete_schema("prick") if super_conn.schema.exist?("prick")
40
40
  super_conn.rdbms.empty!(database, public: false, exclude: ["prick"])
41
41
  else
42
42
  # Find all schemas
@@ -3,8 +3,11 @@
3
3
  require_relative '../builder/builder.rb'
4
4
 
5
5
  module Prick::SubCommand
6
- def self.fox(database, username, files, reset: false, exclude: nil)
7
- self.drop_data(database) # In prick-drop
6
+ def self.fox(database, username, files, builddir: Prick.state.schema_dir, reset: false, exclude: nil)
7
+ self.drop_data(database) if reset # In prick-drop
8
+ conn = Prick.state.connection
9
+ builder = Prick::Build::Builder.new(conn, builddir)
10
+ exclude = (exclude || []) + builder.pg_graph_ignore_schemas
8
11
  opts = {
9
12
  state: FOX_STATE_PATH,
10
13
  delete: "none",
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.43.0"
4
+ VERSION = "0.43.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.43.0
4
+ version: 0.43.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen