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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b3c76ef9f644ada7f30e7e0be4bfdce0fa7375b3e9fa6e638854a144a2af7b9
4
- data.tar.gz: 79ec3c5a7c7147394813c2cf6b700f81afd1269f8082c5a4fd3707da015575b8
3
+ metadata.gz: 888a20d35a47374c679c6873745178b8acf04b09456aadcb9fe0e209ca05cc07
4
+ data.tar.gz: e81e47532215e591b649a62a151c677629d1729ac3111f571cf45de602ad235f
5
5
  SHA512:
6
- metadata.gz: 61049a5e2b5a81e0503d2e2b478b30def5de17b8a9d42619b3dfabfb41019d8faaa1768abf5b1ed5ca6f822237d9dc92075ec89ba9210f738b2940b9d425283b
7
- data.tar.gz: 65c8751521748ff1d5fb8e8fc3f9693139659bdc94c44129faffe9e35345bd418ae7c0d64841ce6689552da28c6e79993be20ff8e7e90422ee3d20b05a04a8cd
6
+ metadata.gz: 46c77f63b94c26df5be5eced5a89e7ba3cb9b61e7da731ac59a8ab6355b207da22fda864c0887def0a7c11ec804f4ca6c9dba3b8939b2c5553f2e44633957e53
7
+ data.tar.gz: 954529efb4cb7f3f78ec6d0de8f69f42871ecd739412762f60ab06a7c25ac317e14827815afd9007568f80efe49e6507703c9eaf2fe0d09c54e23495f82aa417
@@ -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 undent %(
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" # Clean repo
70
- in [true, true, false]; "clean" # Clean repo but doesn't include latest uncommitted changes
71
- in [true, false, _]; "detached" # Clean repo but different revision
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]; "ok" # Dirty repo, work-in-progress
74
- in [false, true, false]; "dirty" # Dirty repo, but doesn't include latest changes
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Prick
4
- VERSION = "0.39.2"
4
+ VERSION = "0.39.4"
5
5
  end
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
@@ -39,6 +39,7 @@ Gem::Specification.new do |spec|
39
39
  spec.add_dependency "pg_graph"
40
40
  spec.add_dependency "shellopts"
41
41
  spec.add_dependency "dsort"
42
+ spec.add_dependency "string-text"
42
43
 
43
44
  spec.add_development_dependency "ruby-prof"
44
45
 
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.2
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-06-04 00:00:00.000000000 Z
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