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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8cc939a1ea84c9e16f586cc4d3ce2a17c63e188996a46cb1b0e8f1b75c25eec8
4
- data.tar.gz: e379b3a003ceed1b49240a1083f0db8f8cc2fb80d9c4a2800cd82e1005eba03f
3
+ metadata.gz: eeb2d80f1ae7102e2b747a822bd8d256f8b4a3f5b1752e6f90691d2250e033c7
4
+ data.tar.gz: '08c36ae7f22e3aadd6074775786faffaafe0e9f97205ba91c96473cfac694ba7'
5
5
  SHA512:
6
- metadata.gz: 20c6a454644bf1bc6770eb56cebf20c3bfda8fcde9d70dd2ce0fae7290f47da1b8a5a9254c0b5f04fde8042d38dd0e2f97513fd1b456eff5f49006af36150181
7
- data.tar.gz: 8b16d64e31172c373d80abd5a5b8303a63888b3a9e5a999e60817a218d3d32ddb12b752bbb1c82057392be39f5ec0cd4811d05464b39f00271fb4deddf06f7a7
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]; "dirty" # Clean repo but doesn't include latest changes
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].strftime("%Y-%m-%d %H:%M")
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Prick
4
- VERSION = "0.39.0"
4
+ VERSION = "0.39.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prick
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.39.0
4
+ version: 0.39.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen