prick 0.21.3 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/TODO +9 -0
- data/exe/prick +13 -1
- data/lib/builder/parser.rb +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: 46f2e0fa7ba46116e93b2e1e6f027a76e43e794724d83d49709a27c5df16b85e
|
4
|
+
data.tar.gz: baad024e6417d00e2917425df77728aa49eabd8af2f8e348bf6d5b885126f07b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f4181c28363697b22afa4a610837f599e6b22c3836bce579b1570fc3a729bac10b5efca99d38824b735a33e53a576ba426d96720e757602dca39e069675db9d
|
7
|
+
data.tar.gz: bd260d3c6b0476127a4f2fb5cba5a7631b8edebe5be7afe291314353e94c2cb25d18c3bba422b4129b707277735989b06bf5d05bfa5974e099194c5ad0f68452
|
data/TODO
CHANGED
data/exe/prick
CHANGED
@@ -49,6 +49,13 @@ SPEC = %(
|
|
49
49
|
init! -n,name=NAME -t,title=TITLE [DIRECTORY]
|
50
50
|
Initializes a prick project
|
51
51
|
|
52
|
+
env! ENVIRONMENT
|
53
|
+
Set build environment in the prick context file. The environment is
|
54
|
+
accessible as $ENVIRONMENT in build.yml files and can be used to do
|
55
|
+
conditional builds. There are no built-in values for the environment but
|
56
|
+
'production' and 'development' will be typical choices. Defaults to
|
57
|
+
'development'
|
58
|
+
|
52
59
|
setup!
|
53
60
|
Create the database user (if necessary) and an empty database
|
54
61
|
|
@@ -162,6 +169,11 @@ begin
|
|
162
169
|
when :version!
|
163
170
|
puts "#{Prick.state.name}-#{Prick.state.version}"
|
164
171
|
|
172
|
+
when :env!
|
173
|
+
env = args.expect(1)
|
174
|
+
Prick.state.environment = env
|
175
|
+
Prick.state.save
|
176
|
+
|
165
177
|
when :setup!
|
166
178
|
Prick::SubCommand.setup(database, username)
|
167
179
|
|
@@ -202,7 +214,7 @@ begin
|
|
202
214
|
Prick::SubCommand.drop_users(database)
|
203
215
|
when :database
|
204
216
|
Prick::SubCommand.drop_database(database)
|
205
|
-
when :data, :schema
|
217
|
+
when :data, :schema
|
206
218
|
raise NotImplementedError
|
207
219
|
else
|
208
220
|
raise Prick::Error, "Unknown subject: #{subject}"
|
data/lib/builder/parser.rb
CHANGED
@@ -46,7 +46,7 @@ module Prick
|
|
46
46
|
unit = make_build_unit(parent, path)
|
47
47
|
entries = YAML.load(File.read(path)) || []
|
48
48
|
entries.each { |entry|
|
49
|
-
if entry.is_a?(Hash)
|
49
|
+
if entry.is_a?(Hash) && (entry.size != 1 || entry.first.first != "sql")
|
50
50
|
entry.each { |key, value|
|
51
51
|
if key == "schema"
|
52
52
|
unit.schema = value
|
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.23.0
|
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: 2023-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: semantic
|