prick 0.45.1 → 0.46.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 +4 -4
- data/exe/prick +11 -1
- data/lib/prick/builder/node.rb +5 -0
- data/lib/prick/local/command.rb +1 -1
- data/lib/prick/share/init/schema/prick/tables.sql +1 -1
- data/lib/prick/version.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: a2b735f370a697a579d10b8b651950f6eeef7fa061ee787976e5eeff3ee2fdc5
|
4
|
+
data.tar.gz: b641d15c6035891358b913b57b2b01b7c10bbe9c9dd56a7c5b5e229bcaa00374
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bacc0e9d3c6bb77b856a7ee9e955693f784ed3aedef5b8dfa4678a8570800277a423e3e2c3c91b0269fcce5622475d1158224bba8b74ff9acfed65cc40e7de21
|
7
|
+
data.tar.gz: 3670e4ec7a3ec1c77ad72ca4b0e5d1dcc4652924c9afd4750c160ed0972a1d252e1ffaf68ce49f535f3db8f44d05ee76ba455d2c8bf7a1e05fc8a77b1d9109dd
|
data/exe/prick
CHANGED
@@ -127,6 +127,12 @@ SPEC = %(
|
|
127
127
|
Drops the given schemas or all schemas if called without arguments. The
|
128
128
|
'prick' schema is only deleted if named explicity
|
129
129
|
|
130
|
+
drop.prick! -- [DATABASE]
|
131
|
+
@ Drop the 'prick' schema
|
132
|
+
|
133
|
+
Drops the prick schema explicitly. The prick schema is only dropped if
|
134
|
+
named explicitly in the 'drop schema' command or by this command
|
135
|
+
|
130
136
|
drop.data!
|
131
137
|
@ Drop data
|
132
138
|
|
@@ -502,8 +508,12 @@ begin
|
|
502
508
|
clean_pg_meta_cache
|
503
509
|
schemas = args.to_a
|
504
510
|
Prick::SubCommand.drop_schema(database, schemas)
|
511
|
+
when :prick!
|
512
|
+
require_db
|
513
|
+
clean_pg_meta_cache
|
514
|
+
Prick::SubCommand.drop_schema(database, %w(prick))
|
505
515
|
else
|
506
|
-
Prick.error "Unknown subject: #{
|
516
|
+
Prick.error "Unknown subject: #{cmd.subcommand.inspect}"
|
507
517
|
end
|
508
518
|
|
509
519
|
when :release!
|
data/lib/prick/builder/node.rb
CHANGED
@@ -197,6 +197,11 @@ module Prick
|
|
197
197
|
end
|
198
198
|
end
|
199
199
|
|
200
|
+
# Note that script nodes are evaluated within the running Prick process so
|
201
|
+
# it inherites all constants, classes, load path etc. Notice that this
|
202
|
+
# means that a script can't require a file that is also not required by
|
203
|
+
# prick
|
204
|
+
#
|
200
205
|
class ScriptNode < ExecutableNode
|
201
206
|
protected
|
202
207
|
alias_method :execute, :execute_script
|
data/lib/prick/local/command.rb
CHANGED
@@ -94,7 +94,7 @@ module Command
|
|
94
94
|
end
|
95
95
|
|
96
96
|
private
|
97
|
-
# cmd is the of the command/script and is only used in error messages
|
97
|
+
# cmd is the name of the command/script and is only used in error messages
|
98
98
|
def command_wrapper(cmd, stdin: nil, stderr: nil, fail: true, &block)
|
99
99
|
pw = IO::pipe # pipe[0] for read, pipe[1] for write
|
100
100
|
pr = IO::pipe
|
@@ -16,7 +16,7 @@ create table builds (
|
|
16
16
|
prick varchar not null,-- Prick version
|
17
17
|
|
18
18
|
-- Git
|
19
|
-
branch varchar
|
19
|
+
branch varchar, -- Null in detached branches
|
20
20
|
rev varchar not null, -- commit ID
|
21
21
|
clean boolean not null default true, -- True if git repository is clean
|
22
22
|
|
data/lib/prick/version.rb
CHANGED
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.
|
4
|
+
version: 0.46.1
|
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: 2025-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: semantic
|