pt 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog.md +4 -0
- data/lib/pt.rb +1 -1
- data/lib/pt/client.rb +1 -1
- data/lib/pt/ui.rb +13 -3
- metadata +2 -2
data/Changelog.md
CHANGED
data/lib/pt.rb
CHANGED
data/lib/pt/client.rb
CHANGED
@@ -119,7 +119,7 @@ class PT::Client
|
|
119
119
|
project.stories.create(:name => name, :owned_by => owner, :requested_by => requester, :story_type => task_type)
|
120
120
|
end
|
121
121
|
|
122
|
-
def
|
122
|
+
def create_task_with_descriptionz(project, name, owner, requester, task_type, description)
|
123
123
|
project.stories.create(:name => name, :owned_by => owner, :requested_by => requester, :story_type => task_type, :description => description)
|
124
124
|
end
|
125
125
|
|
data/lib/pt/ui.rb
CHANGED
@@ -34,9 +34,19 @@ class PT::UI
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def started
|
37
|
-
|
38
|
-
|
39
|
-
|
37
|
+
if @params[0]
|
38
|
+
user = find_owner @params[0]
|
39
|
+
if user
|
40
|
+
stories = @project.stories.all(:current_state => 'started', :owned_by => user)
|
41
|
+
stories = @client.get_my_work(@project, user)
|
42
|
+
PT::TasksTable.new(stories).print @global_config
|
43
|
+
end
|
44
|
+
else
|
45
|
+
# otherwise show them all
|
46
|
+
title("Stories started for #{project_to_s}")
|
47
|
+
stories = @project.stories.all(:current_state => 'started')
|
48
|
+
PT::TasksTable.new(stories).print @global_config
|
49
|
+
end
|
40
50
|
end
|
41
51
|
|
42
52
|
def list
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-
|
14
|
+
date: 2013-04-12 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: pivotal-tracker
|