prick 0.39.0 → 0.39.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prick/subcommand/prick-list.rb +4 -3
- data/lib/prick/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eeb2d80f1ae7102e2b747a822bd8d256f8b4a3f5b1752e6f90691d2250e033c7
|
4
|
+
data.tar.gz: '08c36ae7f22e3aadd6074775786faffaafe0e9f97205ba91c96473cfac694ba7'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d378e592a26809fd2535eb3e2b57a8794fdbe2d381338e284e69feabf5753564e98bed9e6e8735c926bcc6d73f96db166c29ee62039bf5dd5b2741ae8345245
|
7
|
+
data.tar.gz: 9cfcba08819dc82d7354d9420c9961ec129f03f2a707a4345c9e0196a64824b6a9eff15e6125dc1b85b6bae84876361f2f985c5e2a519f72862ac0d74865cb2c
|
@@ -44,6 +44,7 @@ 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
|
47
48
|
fs_time = File.mtime(newest_file)
|
48
49
|
|
49
50
|
git_branch = Git.branch.current
|
@@ -67,10 +68,10 @@ module Prick::SubCommand
|
|
67
68
|
row[:state] =
|
68
69
|
case [clean, same_revision, up2date]
|
69
70
|
in [true, true, true]; "clean" # Clean repo
|
70
|
-
in [true, true, false]; "
|
71
|
+
in [true, true, false]; "clean" # Clean repo but doesn't include latest uncommitted changes
|
71
72
|
in [true, false, _]; "detached" # Clean repo but different revision
|
72
73
|
|
73
|
-
in [false, true, true]; "ok" # Dirty repo
|
74
|
+
in [false, true, true]; "ok" # Dirty repo, work-in-progress
|
74
75
|
in [false, true, false]; "dirty" # Dirty repo, but doesn't include latest changes
|
75
76
|
in [false, false, _]; "stale" # Dirty repo, no way back
|
76
77
|
end
|
@@ -79,7 +80,7 @@ module Prick::SubCommand
|
|
79
80
|
end
|
80
81
|
|
81
82
|
# Convert built_at to string
|
82
|
-
row[:built_at] = row[:built_at]
|
83
|
+
row[:built_at] = row[:built_at]&.strftime("%Y-%m-%d %H:%M")
|
83
84
|
|
84
85
|
# Add current database marker
|
85
86
|
last_column = (Prick.state.database == database ? "*" : "")
|
data/lib/prick/version.rb
CHANGED