pt 0.3.6 → 0.3.7

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. data/Changelog.md +3 -0
  2. data/lib/pt.rb +1 -1
  3. data/lib/pt/ui.rb +3 -3
  4. metadata +2 -2
@@ -1,5 +1,8 @@
1
1
  # pt changelog
2
2
 
3
+ ## v0.3.7
4
+ Fix and story's id in "show" command
5
+
3
6
  ## v0.3.6
4
7
  Fix for ruby 1.9 strings, thanks David Ramirez for reporting!
5
8
 
data/lib/pt.rb CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  module PT
4
4
  class InputError < StandardError; end
5
- VERSION = '0.3.6'
5
+ VERSION = '0.3.7'
6
6
  end
7
7
 
8
8
  require 'pt/client'
@@ -309,11 +309,11 @@ class PT::UI
309
309
 
310
310
  def show_task(task)
311
311
  title task.name
312
- estimation = task.estimate == -1 ? "Unestimated" : "#{task.estimate} points"
313
- message "#{task.current_state.capitalize} #{task.story_type} | #{estimation} | Req: #{task.requested_by} | Owns: #{task.owned_by}"
312
+ estimation = [-1, nil].include?(task.estimate) ? "Unestimated" : "#{task.estimate} points"
313
+ message "#{task.current_state.capitalize} #{task.story_type} | #{estimation} | Req: #{task.requested_by} | Owns: #{task.owned_by} | Id: #{task.id}"
314
314
  message task.description unless task.description.empty?
315
315
  task.tasks.all.each{ |t| message "- #{t.complete ? "(done) " : "(pend)"} #{t.description}" }
316
316
  task.notes.all.each{ |n| message "#{n.author}: \"#{n.text}\"" }
317
317
  end
318
318
 
319
- end
319
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 6
9
- version: 0.3.6
8
+ - 7
9
+ version: 0.3.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Raul Murciano