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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/kan +6 -2
  3. data/lib/kancmd/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e89af012b121551166ea5320bd224fd13bb4fde5
4
- data.tar.gz: a4fff11af8696578ef96f91c1c6e7ce4af5242b3
3
+ metadata.gz: b22dce9e832e211c2f48d5edacfd81011128685a
4
+ data.tar.gz: 96a6b2c38ac89146629eee5066f6f7fbdc202b78
5
5
  SHA512:
6
- metadata.gz: d5f5ae67fb55662e90c97bbeb1926ad510f5256f15f9ae5df81ffc2b199d5639ea4c4163c56f6766e19581f78eccd472a97583e678f71fc880d6aebb6b3b49ef
7
- data.tar.gz: a647887c04d05b17d3f050ed037a7e9f0f90e27a0852be415cbf16847e5fef368599da5ee8bc9c335bc8f3e3ea5df990db759b4d004481ab12970814c1b602d5
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
- rows << [task["column_name"],task['task_type_name'], task['username'], company, title, fmt_estimate]
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
 
@@ -1,3 +1,3 @@
1
1
  module Kancmd
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kancmd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobin Harris