taco_it 1.2.0 → 1.2.1

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/taco +6 -2
  2. data/lib/taco.rb +6 -2
  3. metadata +2 -2
data/bin/taco CHANGED
@@ -592,11 +592,13 @@ class TacoCLI
592
592
  #
593
593
  Kind = Defect, Feature Request
594
594
  Status = Open, Closed
595
+ Priority = 1, 2, 3, 4, 5
595
596
 
596
597
  # Default values for Issue fields
597
598
  #
598
599
  DefaultKind = Defect
599
600
  DefaultStatus = Open
601
+ DefaultPriority = 3
600
602
  EOT
601
603
  RETRY_NAME = '.taco_retry.txt'
602
604
 
@@ -620,7 +622,9 @@ EOT
620
622
  end
621
623
 
622
624
  def list(args)
623
- the_list = @taco.list(:short_ids => true, :filters => args).map { |issue, short_id| "#{short_id} : #{issue.summary}" }
625
+ the_list = @taco.list(:short_ids => true, :filters => args).map do |issue, short_id|
626
+ "#{short_id} : #{issue.priority} : #{issue.summary}"
627
+ end
624
628
  return "Found no issues." unless the_list.size > 0
625
629
  the_list.join("\n")
626
630
  end
@@ -733,7 +737,7 @@ end
733
737
  require 'commander/import'
734
738
 
735
739
  program :name, 'taco'
736
- program :version, '1.2.0'
740
+ program :version, '1.2.1'
737
741
  program :description, 'simple command line issue tracking'
738
742
 
739
743
  command :init do |c|
data/lib/taco.rb CHANGED
@@ -592,11 +592,13 @@ class TacoCLI
592
592
  #
593
593
  Kind = Defect, Feature Request
594
594
  Status = Open, Closed
595
+ Priority = 1, 2, 3, 4, 5
595
596
 
596
597
  # Default values for Issue fields
597
598
  #
598
599
  DefaultKind = Defect
599
600
  DefaultStatus = Open
601
+ DefaultPriority = 3
600
602
  EOT
601
603
  RETRY_NAME = '.taco_retry.txt'
602
604
 
@@ -620,7 +622,9 @@ EOT
620
622
  end
621
623
 
622
624
  def list(args)
623
- the_list = @taco.list(:short_ids => true, :filters => args).map { |issue, short_id| "#{short_id} : #{issue.summary}" }
625
+ the_list = @taco.list(:short_ids => true, :filters => args).map do |issue, short_id|
626
+ "#{short_id} : #{issue.priority} : #{issue.summary}"
627
+ end
624
628
  return "Found no issues." unless the_list.size > 0
625
629
  the_list.join("\n")
626
630
  end
@@ -733,7 +737,7 @@ end
733
737
  require 'commander/import'
734
738
 
735
739
  program :name, 'taco'
736
- program :version, '1.2.0'
740
+ program :version, '1.2.1'
737
741
  program :description, 'simple command line issue tracking'
738
742
 
739
743
  command :init do |c|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taco_it
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
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-07-25 00:00:00.000000000 Z
12
+ date: 2013-07-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: commander