prick 0.39.2 → 0.39.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prick/environment.rb +2 -9
- data/lib/prick/subcommand/prick-list.rb +7 -5
- data/lib/prick/version.rb +1 -1
- data/lib/prick.rb +4 -3
- data/prick.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 888a20d35a47374c679c6873745178b8acf04b09456aadcb9fe0e209ca05cc07
|
4
|
+
data.tar.gz: e81e47532215e591b649a62a151c677629d1729ac3111f571cf45de602ad235f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46c77f63b94c26df5be5eced5a89e7ba3cb9b61e7da731ac59a8ab6355b207da22fda864c0887def0a7c11ec804f4ca6c9dba3b8939b2c5553f2e44633957e53
|
7
|
+
data.tar.gz: 954529efb4cb7f3f78ec6d0de8f69f42871ecd739412762f60ab06a7c25ac317e14827815afd9007568f80efe49e6507703c9eaf2fe0d09c54e23495f82aa417
|
data/lib/prick/environment.rb
CHANGED
@@ -135,13 +135,6 @@ module Prick
|
|
135
135
|
analyze
|
136
136
|
end
|
137
137
|
|
138
|
-
def undent(s)
|
139
|
-
s = s[1..] if s[0] == "\n"
|
140
|
-
s =~ /^(\s*)\S$/m
|
141
|
-
indent = $1
|
142
|
-
s.gsub(/^#{indent}/m, "")
|
143
|
-
end
|
144
|
-
|
145
138
|
def bash_environment
|
146
139
|
|
147
140
|
end
|
@@ -159,7 +152,7 @@ module Prick
|
|
159
152
|
|
160
153
|
puts "### SCRIPT by #{File.basename(__FILE__)}"
|
161
154
|
|
162
|
-
puts
|
155
|
+
puts %(
|
163
156
|
|
164
157
|
## STACK METHODS - ChatGPT
|
165
158
|
|
@@ -178,7 +171,7 @@ module Prick
|
|
178
171
|
function super() {
|
179
172
|
eval ${super_stack[-1]}
|
180
173
|
}
|
181
|
-
)
|
174
|
+
).align
|
182
175
|
|
183
176
|
puts "## ENVIRONMENT METHODS"
|
184
177
|
puts
|
@@ -66,14 +66,16 @@ module Prick::SubCommand
|
|
66
66
|
# Set state
|
67
67
|
row[:state] =
|
68
68
|
case [clean, same_revision, up2date]
|
69
|
-
in [true, true, true]; "clean" #
|
70
|
-
in [true, true, false]; "
|
71
|
-
in [true, false, _]; "
|
69
|
+
in [true, true, true]; "clean" # Built from clean repo
|
70
|
+
in [true, true, false]; "ok" # Clean repo but doesn't include latest uncommitted changes
|
71
|
+
in [true, false, _]; "clean" # Clean repo but different revision
|
72
72
|
|
73
|
-
in [false, true, true]; "
|
74
|
-
in [false, true, false]; "dirty" # Dirty repo
|
73
|
+
in [false, true, true]; "edge" # Dirty repo, work-in-progress
|
74
|
+
in [false, true, false]; "dirty" # Dirty repo and doesn't include latest changes
|
75
75
|
in [false, false, _]; "stale" # Dirty repo, no way back
|
76
76
|
end
|
77
|
+
elsif row[:success] == false
|
78
|
+
row[:state] = "fail"
|
77
79
|
else
|
78
80
|
row[:state] = "-"
|
79
81
|
end
|
data/lib/prick/version.rb
CHANGED
data/lib/prick.rb
CHANGED
@@ -3,12 +3,13 @@ require 'prick/version.rb'
|
|
3
3
|
require 'pg_conn'
|
4
4
|
|
5
5
|
require 'indented_io'
|
6
|
-
|
7
6
|
require 'constrain'
|
8
|
-
include Constrain
|
9
|
-
|
10
7
|
require 'forward_to'
|
8
|
+
require 'string-text'
|
9
|
+
|
10
|
+
include Constrain
|
11
11
|
include ForwardTo
|
12
|
+
include String::Text
|
12
13
|
|
13
14
|
require 'fixture_fox'
|
14
15
|
|
data/prick.gemspec
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.39.
|
4
|
+
version: 0.39.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Claus Rasmussen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: semantic
|
@@ -150,6 +150,20 @@ dependencies:
|
|
150
150
|
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: string-text
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: ruby-prof
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|