pt 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/Changelog.md +4 -0
  2. data/lib/pt.rb +1 -1
  3. data/lib/pt/client.rb +1 -1
  4. data/lib/pt/ui.rb +13 -3
  5. metadata +2 -2
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## v0.6.2
4
4
 
5
+ Added the abilityto see started by username ( good idea marcolz )
6
+
7
+ ## v0.6.2
8
+
5
9
  Added "-m" to create that will load the description in your editor ( good idea ahunt09 )
6
10
 
7
11
  ## v0.6
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.6.2'
5
+ VERSION = '0.6.3'
6
6
  end
7
7
 
8
8
  require 'pt/client'
@@ -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 create_task_with_description(project, name, owner, requester, task_type, description)
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
 
@@ -34,9 +34,19 @@ class PT::UI
34
34
  end
35
35
 
36
36
  def started
37
- title("Stories started for #{project_to_s}")
38
- stories = @project.stories.all(:current_state => 'started')
39
- PT::TasksTable.new(stories).print @global_config
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.2
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-03-14 00:00:00.000000000 Z
14
+ date: 2013-04-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: pivotal-tracker