jiraa 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/jiraa +25 -3
  2. data/lib/jiraa/version.rb +1 -1
  3. metadata +2 -2
data/bin/jiraa CHANGED
@@ -62,14 +62,15 @@ command :resolve do |c|
62
62
  :as => options[:a]
63
63
  }
64
64
  params[:comment] = options[:comment] unless options[:comment].nil?
65
- if options["log-work"]
65
+ if options["log-work"] or options[:Z]
66
+ time = options["log-work"] || "1m"
66
67
  if options[:Z]
67
68
  params = {
68
69
  :remaining_estimate => 0
69
70
  }
70
71
  end
71
- JiraClient.create_worklog args[0], options["log-work"], params
72
- puts "Logged #{options['log-work']} on #{args[0]}"
72
+ JiraClient.create_worklog args[0], time, params
73
+ puts "Logged #{time} on #{args[0]}"
73
74
  end
74
75
  JiraClient.resolve_issue args[0], params
75
76
  puts "Resolved #{args[0]} as #{options[:a]}"
@@ -174,6 +175,27 @@ command :search do |c|
174
175
  issues.each do |issue|
175
176
  puts "#{issue.key}\t#{issue.summary}"
176
177
  end
178
+ puts "No issues found" if issues.empty?
179
+ end
180
+ end
181
+
182
+ desc 'Display your issues currently in progress'
183
+ command :current do |c|
184
+ c.action do |global_options,options,args|
185
+ issues = JiraClient.find_issues(:jql => "assignee = currentUser() AND status = 'In Progress'", :fields => [:summary, :status])
186
+ issues.each do |issue|
187
+ puts "#{issue.key}\t#{issue.summary}"
188
+ end
189
+ puts "No issues found" if issues.empty?
190
+ end
191
+ end
192
+
193
+ desc 'Tell Jira how you feel about it'
194
+ arg_name 'EXPLETIVES...'
195
+ command :rant do |c|
196
+ c.action do |global_options,options,args|
197
+ help_now! "Missing expletives" if args.length == 0
198
+ raise "503 Service Unavailable"
177
199
  end
178
200
  end
179
201
 
@@ -1,3 +1,3 @@
1
1
  module Jiraa
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jiraa
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-13 00:00:00.000000000 Z
12
+ date: 2013-05-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler