prick 0.39.1 → 0.39.3

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: eeb2d80f1ae7102e2b747a822bd8d256f8b4a3f5b1752e6f90691d2250e033c7
4
- data.tar.gz: '08c36ae7f22e3aadd6074775786faffaafe0e9f97205ba91c96473cfac694ba7'
3
+ metadata.gz: d7284658fc884c598ceaab22482671eaaabfac49a014ad52af9a5e5da266d12f
4
+ data.tar.gz: bd7355b17aead0e95d971aa0235d64ebfea45bb0585dbafb2f33db3c70a1eb0f
5
5
  SHA512:
6
- metadata.gz: 6d378e592a26809fd2535eb3e2b57a8794fdbe2d381338e284e69feabf5753564e98bed9e6e8735c926bcc6d73f96db166c29ee62039bf5dd5b2741ae8345245
7
- data.tar.gz: 9cfcba08819dc82d7354d9420c9961ec129f03f2a707a4345c9e0196a64824b6a9eff15e6125dc1b85b6bae84876361f2f985c5e2a519f72862ac0d74865cb2c
6
+ metadata.gz: 45433be3c8278c556c26be157a8dfd91eae168d6df7d71788ecce7f51a5a710193c24d33043d892a2492016d475e47b33745794c36cfbeae4171f792fa22e4df
7
+ data.tar.gz: 28f1e47f5253678b69301b26fc797aafcc88dbe46832441fec670f4f9ec9bbee38c3a0c1f2b35703fd83752f3eb821a6cacc424f2ec7766a1c226cd5055049f4
@@ -44,7 +44,6 @@ module Prick::SubCommand
44
44
  else
45
45
  # Timestamp of newest file under git control
46
46
  newest_file = Command.command("ls -tr #{Git.list.join(" ")} | tail -1").last
47
- p newest_file
48
47
  fs_time = File.mtime(newest_file)
49
48
 
50
49
  git_branch = Git.branch.current
@@ -67,14 +66,16 @@ module Prick::SubCommand
67
66
  # Set state
68
67
  row[:state] =
69
68
  case [clean, same_revision, up2date]
70
- in [true, true, true]; "clean" # Clean repo
71
- in [true, true, false]; "clean" # Clean repo but doesn't include latest uncommitted changes
72
- 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
73
72
 
74
- in [false, true, true]; "ok" # Dirty repo, work-in-progress
75
- 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
76
75
  in [false, false, _]; "stale" # Dirty repo, no way back
77
76
  end
77
+ elsif row[:success] == false
78
+ row[:state] = "fail"
78
79
  else
79
80
  row[:state] = "-"
80
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.1"
4
+ VERSION = "0.39.3"
5
5
  end
data/lib/prick.rb CHANGED
@@ -55,6 +55,7 @@ require_relative 'prick/subcommand/prick-set.rb'
55
55
  require_relative 'prick/subcommand/prick-setup.rb'
56
56
  require_relative 'prick/subcommand/prick-snapshot.rb'
57
57
  require_relative 'prick/subcommand/prick-teardown.rb'
58
+ require_relative 'prick/subcommand/prick-touch.rb'
58
59
 
59
60
  module Prick
60
61
  @state = nil
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.1
4
+ version: 0.39.3
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-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: semantic