pivotal-slacker 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/pivotal-slacker +5 -4
- data/lib/formatter.rb +1 -1
- metadata +1 -1
data/bin/pivotal-slacker
CHANGED
@@ -34,7 +34,7 @@ project = PivotalTracker::Project.find config.project
|
|
34
34
|
require "commander/import"
|
35
35
|
require "pivotal-tracker"
|
36
36
|
|
37
|
-
program :version, "1.
|
37
|
+
program :version, "1.5.0"
|
38
38
|
program :description, "Pivotal Tracker command line client."
|
39
39
|
|
40
40
|
# ----------------------------------------------------------
|
@@ -51,8 +51,9 @@ def output_story_list opts={:project => nil, :states => [], :owned_by => nil}
|
|
51
51
|
state = Formatter.state(story.current_state)
|
52
52
|
requested_by = Formatter.requested_by(story.requested_by)
|
53
53
|
created_at = Formatter.time_ago(story.created_at)
|
54
|
-
|
55
|
-
|
54
|
+
story_type = Formatter.story_type(story.story_type)
|
55
|
+
|
56
|
+
puts "[#{id}] #{name} ~ #{state} #{story_type}, from #{requested_by}, created #{created_at}"
|
56
57
|
end
|
57
58
|
end
|
58
59
|
|
@@ -62,7 +63,7 @@ end
|
|
62
63
|
command :mine do |c|
|
63
64
|
c.syntax = "pivotal-slacker mine"
|
64
65
|
c.description = "List your stories in Pivotal Tracker."
|
65
|
-
c.example "List your
|
66
|
+
c.example "List your open stories", "pivotal-slacker mine"
|
66
67
|
c.action do |args, options|
|
67
68
|
states = %w{unstarted started finished rejected}
|
68
69
|
owned_by = config.user
|
data/lib/formatter.rb
CHANGED