pt 0.5 → 0.5.1

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.
@@ -1,5 +1,10 @@
1
1
  # pt changelog
2
2
 
3
+ ## v0.4.1
4
+
5
+ Extra commands added, they can be accessed through 'pt help' ( orta )
6
+ Fix for 1.9.3 not getting deprecation warnings
7
+
3
8
  ## v0.4
4
9
 
5
10
  Added support for calling functions without going through the walkthroughs ( orta )
data/Gemfile CHANGED
@@ -1,3 +1,6 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gemspec
3
+ gem 'pivotal-tracker', '>= 0.4.1'
4
+ gem 'hirb', '>= 0.4.5'
5
+ gem 'colored', '>= 1.2'
6
+ gem 'highline', '>= 1.6.1'
data/README.md CHANGED
@@ -47,10 +47,10 @@ Run `pt` from the root folder of your project.
47
47
  You can [open a new issue](https://github.com/raul/pt/issues/new). It can be helpful to include a trace of the requests and responses you're getting from Pivotal Tracker: you can get it by adding the `--debug` parameter while invoking `pt` (remember to remove all sensible data though).
48
48
 
49
49
  # Contributors
50
-
51
- [orta therox](http://orta.github.com)
52
- [Anthony Crumley](https://github.com/craftycode)
53
- [Johan Andersson](http://johan.andersson.net)
50
+ - [orta therox](http://orta.github.com) (Current maintainer)
51
+ - [Raul Murciano](http://raul.murciano.net) (Original author)
52
+ - [Anthony Crumley](https://github.com/craftycode)
53
+ - [Johan Andersson](http://johan.andersson.net)
54
54
 
55
55
  ## Thanks to...
56
56
  - the contributors mentioned above and all the issue reporters
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.5'
5
+ VERSION = '0.5.1'
6
6
  end
7
7
 
8
8
  require 'pt/client'
@@ -1,4 +1,4 @@
1
- require 'iconv'
1
+ require 'iconv' unless "older_ruby?".respond_to?(:force_encoding)
2
2
 
3
3
  class PT::DataRow
4
4
 
@@ -289,6 +289,12 @@ class PT::UI
289
289
  if [0,1,2,3].include? @params[1].to_i
290
290
  estimate_task(task, @params[1].to_i)
291
291
  end
292
+ if @params[2]
293
+ task = find_my_task_by_task_id task_id
294
+ @client.comment_task(@project, task, @params[2])
295
+ end
296
+ else
297
+ @client.comment_task(@project, task, @params[1]) if @params[1]
292
298
  end
293
299
 
294
300
  task = find_my_task_by_task_id task_id
@@ -388,7 +394,7 @@ class PT::UI
388
394
  message("pt accept [id] # mark a task as accepted")
389
395
  message("pt reject [id] [reason] # mark a task as rejected, explaining why")
390
396
  message("pt find [query] # looks in your tasks by title and presents it")
391
- message("pt done [id] ~[0-3] # lazy mans finish task, does everything")
397
+ message("pt done [id] ~[0-3] ~[comment] # lazy mans finish task, does everything")
392
398
  message("pt list [member] # list all tasks for another pt user")
393
399
  message("pt updates # show recent activity from your current project")
394
400
  message("")
metadata CHANGED
@@ -1,95 +1,69 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: pt
3
- version: !ruby/object:Gem::Version
4
- hash: 1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.1
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 5
9
- version: "0.5"
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Raul Murciano
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-12-25 00:00:00 +01:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-01-05 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: pivotal-tracker
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2157853780 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 13
29
- segments:
30
- - 0
31
- - 4
32
- - 1
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
33
21
  version: 0.4.1
34
22
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: hirb
38
23
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *2157853780
25
+ - !ruby/object:Gem::Dependency
26
+ name: hirb
27
+ requirement: &2157852980 !ruby/object:Gem::Requirement
40
28
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 5
45
- segments:
46
- - 0
47
- - 4
48
- - 5
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
49
32
  version: 0.4.5
50
33
  type: :runtime
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- name: colored
54
34
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *2157852980
36
+ - !ruby/object:Gem::Dependency
37
+ name: colored
38
+ requirement: &2157852380 !ruby/object:Gem::Requirement
56
39
  none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- hash: 11
61
- segments:
62
- - 1
63
- - 2
64
- version: "1.2"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '1.2'
65
44
  type: :runtime
66
- version_requirements: *id003
67
- - !ruby/object:Gem::Dependency
68
- name: highline
69
45
  prerelease: false
70
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *2157852380
47
+ - !ruby/object:Gem::Dependency
48
+ name: highline
49
+ requirement: &2157851680 !ruby/object:Gem::Requirement
71
50
  none: false
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- hash: 13
76
- segments:
77
- - 1
78
- - 6
79
- - 1
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
80
54
  version: 1.6.1
81
55
  type: :runtime
82
- version_requirements: *id004
83
- description: Minimalist, opinionated client to manage your Pivotal Tracker tasks from the command line.
84
- email:
56
+ prerelease: false
57
+ version_requirements: *2157851680
58
+ description: Minimalist, opinionated client to manage your Pivotal Tracker tasks from
59
+ the command line.
60
+ email:
85
61
  - raul@murciano.net
86
- executables:
62
+ executables:
87
63
  - pt
88
64
  extensions: []
89
-
90
65
  extra_rdoc_files: []
91
-
92
- files:
66
+ files:
93
67
  - lib/pt/client.rb
94
68
  - lib/pt/data_row.rb
95
69
  - lib/pt/data_table.rb
@@ -102,39 +76,28 @@ files:
102
76
  - LICENSE
103
77
  - README.md
104
78
  - bin/pt
105
- has_rdoc: true
106
79
  homepage: http://www.github.com/raul/pt
107
80
  licenses: []
108
-
109
81
  post_install_message:
110
82
  rdoc_options: []
111
-
112
- require_paths:
83
+ require_paths:
113
84
  - lib
114
- required_ruby_version: !ruby/object:Gem::Requirement
85
+ required_ruby_version: !ruby/object:Gem::Requirement
115
86
  none: false
116
- requirements:
117
- - - ">="
118
- - !ruby/object:Gem::Version
119
- hash: 3
120
- segments:
121
- - 0
122
- version: "0"
123
- required_rubygems_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ! '>='
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ required_rubygems_version: !ruby/object:Gem::Requirement
124
92
  none: false
125
- requirements:
126
- - - ">="
127
- - !ruby/object:Gem::Version
128
- hash: 3
129
- segments:
130
- - 0
131
- version: "0"
93
+ requirements:
94
+ - - ! '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
132
97
  requirements: []
133
-
134
98
  rubyforge_project: pt
135
- rubygems_version: 1.5.2
99
+ rubygems_version: 1.8.10
136
100
  signing_key:
137
101
  specification_version: 3
138
102
  summary: Client to use Pivotal Tracker from the console.
139
103
  test_files: []
140
-