bugzyrb 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGELOG.rdoc +6 -0
  2. data/VERSION +1 -1
  3. data/lib/bugzyrb.rb +22 -5
  4. metadata +2 -2
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,9 @@
1
+ = bugzyrb 0.3.4, 2011-09-28
2
+ * default list will not show closed
3
+ * --show-all to show closed
4
+ * --open -o to show open
5
+ * removed due date from default listing so can remain on one line
6
+
1
7
  = bugzyrb 0.3.0, 2010-07-11
2
8
  * added recentlogs
3
9
  * added recentcomments
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
data/lib/bugzyrb.rb CHANGED
@@ -26,13 +26,13 @@ include Database
26
26
  #PRI_B = WHITE + BOLD
27
27
  #PRI_C = GREEN + BOLD
28
28
  #PRI_D = CYAN + BOLD
29
- VERSION = "0.2.0"
30
- DATE = "2010-07-24"
29
+ VERSION = "0.3.4"
30
+ DATE = "2011-09-28"
31
31
  APPNAME = File.basename($0)
32
32
  AUTHOR = "rkumar"
33
33
 
34
34
  class Bugzy
35
- # This class is responsible for all todo task related functionality.
35
+ # This class is responsible for all bug task related functionality.
36
36
  #
37
37
  # == Create a file
38
38
  #
@@ -65,6 +65,8 @@ class Bugzy
65
65
  # $ alias bu='bugzyrb'
66
66
  #
67
67
  # == TODO:
68
+ # colorize output
69
+ # archive completed tasks
68
70
  #
69
71
  def initialize options, argv
70
72
 
@@ -541,6 +543,10 @@ TEXT
541
543
  end
542
544
  where = nil
543
545
  wherestring = ""
546
+ if @options[:open]
547
+ where ||= []
548
+ where << %{ status != 'closed'}
549
+ end
544
550
  if @options[:overdue]
545
551
  #where = %{ where status != 'closed' and due_date <= "#{Date.today}" }
546
552
  where ||= []
@@ -552,6 +558,11 @@ TEXT
552
558
  where ||= []
553
559
  where << %{ (assigned_to = 'unassigned' or assigned_to is null) }
554
560
  end
561
+ # added 2011-09-28 so we don't see closed all the time.
562
+ if !where && !@options[:show_all]
563
+ where ||= []
564
+ where << %{ status != 'closed'}
565
+ end
555
566
  if where
556
567
  wherestring = " where " + where.join(" and ")
557
568
  end
@@ -895,7 +906,7 @@ TEXT
895
906
 
896
907
  Subcommands::global_options do |opts|
897
908
  opts.banner = "Usage: #{APPNAME} [options] [subcommand [options]]"
898
- opts.description = "Todo list manager"
909
+ opts.description = "Bug list manager"
899
910
  #opts.separator ""
900
911
  #opts.separator "Global options are:"
901
912
  opts.on("-v", "--[no-]verbose", "Run verbosely") do |v|
@@ -1047,9 +1058,15 @@ TEXT
1047
1058
  options[:bare] = v
1048
1059
  $bare = true
1049
1060
  }
1050
- opts.on("-o","--overdue", "not closed, due date past") { |v|
1061
+ opts.on("-v","--overdue", "not closed, due date past") { |v|
1051
1062
  options[:overdue] = v
1052
1063
  }
1064
+ opts.on("-p","--open", "not closed") { |v|
1065
+ options[:open] = v
1066
+ }
1067
+ opts.on("-a","--show-all", "all items including closed") { |v|
1068
+ options[:show_all] = v
1069
+ }
1053
1070
  opts.on("-u","--unassigned", "not assigned") { |v|
1054
1071
  options[:unassigned] = v
1055
1072
  }
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: bugzyrb
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.3
5
+ version: 0.3.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Rahul Kumar
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-09-21 00:00:00 Z
13
+ date: 2011-09-28 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: yard