kancmd 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/kan +6 -2
- data/lib/kancmd/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b22dce9e832e211c2f48d5edacfd81011128685a
|
4
|
+
data.tar.gz: 96a6b2c38ac89146629eee5066f6f7fbdc202b78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0954282be2d9a9c4fc7f98e33cdef7e918edf512d73f7b0f1d1b6b84a782c325fa5546a4dfa139faa1729198c71bb1f2fb2e930a4df7afba1637f22498b784d1
|
7
|
+
data.tar.gz: 9f61542186c2e45966482ab45d01fab96823da2ea79c2fa0bcdd72cc16be8950b1eb52ffc63212b3ec7698b732e1974f91b7aaeabb0f4d7ae1b67386ef38e373
|
data/bin/kan
CHANGED
@@ -290,13 +290,17 @@ tasks.each do |task|
|
|
290
290
|
parts = task['title'].split(':')
|
291
291
|
title = parts.length == 2 ? parts[1] : parts[0]
|
292
292
|
company = parts.length == 2 ? parts[0] : ""
|
293
|
-
|
293
|
+
color = :white
|
294
|
+
color = [100, 100, 100] if task["column_name"] == "Backlog"
|
295
|
+
color = :red if task["task_type_name"] == "Bug"
|
296
|
+
|
297
|
+
rows << [Paint[task["column_name"],color],Paint[task['task_type_name'],color], Paint[task['username'],color], Paint[company,color], Paint[title,color], fmt_estimate, task["deadline"] ? Paint[Time.parse(task["deadline"]).strftime('%m/%d/%Y'),color] : "" ]
|
294
298
|
total += task["estimate"] ? task["estimate"].to_i : 0
|
295
299
|
#puts "#{task['task_type_name']}:#{task['username']}:#{task['title']} "
|
296
300
|
end
|
297
301
|
rows << [Paint["#{allowed_tasks.count} items",:yellow], "","", "", Paint["#{total} points",:yellow]]
|
298
302
|
|
299
|
-
table = Terminal::Table.new :headings => ['Status', 'Type', 'Who', 'Company', 'Title', 'Points'], :rows => rows
|
303
|
+
table = Terminal::Table.new :headings => ['Status', 'Type', 'Who', 'Company', 'Title', 'Points',"I'll finish at"], :rows => rows
|
300
304
|
puts table
|
301
305
|
|
302
306
|
|
data/lib/kancmd/version.rb
CHANGED