prick 0.27.0 → 0.27.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/TODO +1 -0
- data/lib/prick/version.rb +1 -1
- data/lib/share/init/spec/spec_helper.rb +1 -1
- data/lib/subcommand/prick-teardown.rb +3 -2
- 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: d567ea292c77fde8d238f35dad37e284917bb54bdcfa044e9916fd771686c82c
|
4
|
+
data.tar.gz: df8f4285e9d53fa9c907e1c43aa4a587d7b6709cda42540f1e1ba6092caf8bce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaca4641608807b55e8154db7d79aff8314b88aade591e0d5fd5920b9ada1984f9ecf07a1098d40a1afd3578dc51915b40bea334bd5eb4b36b33e45bb1d45c25
|
7
|
+
data.tar.gz: 2e72149f29ca87b21f407491f3bb40e5bdf1bbda10908b5df25ac4f432d3776b2510e77592ad5cda45c6bb55447091cb53709788869f10bbb6a97403685bc28d
|
data/TODO
CHANGED
data/lib/prick/version.rb
CHANGED
@@ -40,7 +40,7 @@ require 'postspec_helper'
|
|
40
40
|
require 'prick_helper'
|
41
41
|
|
42
42
|
Postspec.configure do |config|
|
43
|
-
config.database =
|
43
|
+
config.database = Prick.state.database
|
44
44
|
# config.anchors = "..."
|
45
45
|
config.mode = :seed
|
46
46
|
config.reflections = Prick::REFLECTIONS_PATH if File.exist?(Prick::REFLECTIONS_PATH)
|
@@ -6,13 +6,14 @@ module Prick::SubCommand
|
|
6
6
|
def self.teardown(database, username)
|
7
7
|
conn = PgConn.new "postgres" # Superuser connection
|
8
8
|
if conn.rdbms.exist? database
|
9
|
-
conn.rdbms.drop database
|
9
|
+
conn.rdbms.drop database, force: true
|
10
10
|
end
|
11
11
|
if conn.role.exist? username
|
12
12
|
conn.role.drop username, cascade: true
|
13
13
|
end
|
14
|
-
|
14
|
+
|
15
15
|
# TODO Run builder teardown scrips
|
16
|
+
# builder = Prick::Build::Builder.new(conn, "schema")
|
16
17
|
end
|
17
18
|
end
|
18
19
|
|
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.27.
|
4
|
+
version: 0.27.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:
|
11
|
+
date: 2024-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: semantic
|