bugzyrb 0.3.9 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.rdoc +29 -11
  2. data/VERSION +1 -1
  3. data/bugzyrb.gemspec +2 -2
  4. data/lib/bugzyrb.rb +9 -4
  5. metadata +12 -12
data/README.rdoc CHANGED
@@ -1,7 +1,7 @@
1
1
  = bugzyrb
2
2
 
3
3
  A command-line bug/issue/feature tracking system using sqlite3 as a store.
4
- This is a port of bugzy.sh (bash-shell based tracker that uses tab delimited files).
4
+ This is a port of bugzy.txt (bash-shell based tracker that uses tab delimited files).
5
5
 
6
6
  This is not an extensive, full-fledged bug or issue tracker such a bugzilla. Its a simple tracker that maintains one sqlite file per directory. Thus, you could create one for each project.
7
7
 
@@ -13,31 +13,43 @@ A change in Sqlite3 not supporting arrayfields resulted in everything crashing.
13
13
 
14
14
  There are already other command-line bug trackers, some ruby some not. I've had problems installing many. As far as ruby ones, some do not work on 1.9 and this bug has not been rectified for over a year. Others rely on gems that are broken and the maintainer has abandoned them.
15
15
 
16
- So finally, for personal needs I wrote bugzy.sh. However, that's bash shell based, and relies on GNU's coreutils being installed with default_names options. I wish to get out of the mess of bash commands having different options across BSD and GNU ( I use a Mac, and use GNU coreutils ).
16
+ So finally, for personal needs I wrote bugzy.sh (bugzy.txt). However, that's bash shell based, and relies on GNU's coreutils being installed with default_names options. I wish to get out of the mess of bash commands having different options across BSD and GNU ( I use a Mac, and use GNU coreutils ).
17
17
  So I am rewriting this simple issue tracker in ruby with sqlite3. The advantage over having data in a SQL database is that the user can query it easily. With having data in separate Yaml files, searching filtering etc is a big pain.
18
18
 
19
19
  == Features
20
20
 
21
- * "Easier than baking cookies"
22
- * "Leather Pants"
23
- * other features to come
21
+ * Saves bugs with priority (P1-P5), description, comments, fix and other data
22
+ * Various statuses: started/open/closed/canceled
23
+ * Various reports
24
24
 
25
+ == Changes
26
+ 0.4.0 has a backward-incompatible change.
27
+
28
+ "priority" took priority code first then item numbers. all other commands take item numbers first and then other information. So now priority also takes item numbers first.
29
+
30
+ Earlier you would do:
31
+
32
+ bu priority P5 3 4 5
33
+
34
+ Now you would do:
35
+
36
+ bu priority 3 4 5 P5
25
37
 
26
38
  == Installation
27
39
  sqlite3 itself has to be installed
28
40
 
29
- sudo port install sqlite3
41
+ brew install sqlite3
30
42
 
31
43
  TODO
32
44
  Depends on :
33
45
  * subcommand (tiny wrapper over optionparser for subcommands)
34
- * sqlite3-ruby
46
+ * sqlite3
35
47
  * highline - for accepting some input
36
48
  * terminal-table - for formatting output (this is optional)
37
49
  if you use list --bare, then you don't need this gem
38
50
 
39
51
  Install [Gemcutter](http://gemcutter.org) and execute:
40
- $ sudo gem install bugzyrb
52
+ $ gem install bugzyrb
41
53
 
42
54
  == Example
43
55
  TODO
@@ -73,10 +85,16 @@ view: view given issue (or last entered)
73
85
 
74
86
 
75
87
  == Known Issues
76
- TODO
77
88
 
78
- * Doesn't make coffee (not yet)
79
- * Occassionally burns toast
89
+ For some reason, this loads slowly (I am on OSX Lion, ruby 1.9.3 and
90
+ 1.9.especially), 2 the first time. My other program, bugzy.txt (also on github)
91
+ lists out bugs instantly. Seems to be a gem load issue.
92
+ I use this program for bugs, and bugzy.txt for features.
93
+
94
+ I've also written a couple of shell-scripts for reporting from the sql tables, these
95
+ scripts print reports instantly.
96
+ https://gist.github.com/1437194
97
+ https://gist.github.com/1437244
80
98
 
81
99
  == Database
82
100
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.9
1
+ 0.4.0
data/bugzyrb.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "bugzyrb"
8
- s.version = "0.3.9"
8
+ s.version = "0.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Rahul Kumar"]
12
- s.date = "2011-11-18"
12
+ s.date = "2011-12-06"
13
13
  s.description = "basic, easy-to-use command-line issue-tracker using sqlite for ruby 1.9"
14
14
  s.email = "sentinel1879@gmail.com"
15
15
  s.executables = ["bugzyrb"]
data/lib/bugzyrb.rb CHANGED
@@ -25,7 +25,9 @@ include Database
25
25
 
26
26
  # monkey_patch for terminal_table using coloring, does *not* work perfectly here
27
27
  # https://gist.github.com/625808
28
- ELIMINATE_ANSI_ESCAPE = true
28
+ # for 1.9.3 setting this to true was causing it to eat up first 'm' in task
29
+ # and show no colors at all.
30
+ ELIMINATE_ANSI_ESCAPE = false
29
31
  class String
30
32
  alias_method :to_s_orig, :to_s
31
33
  def to_s
@@ -43,7 +45,7 @@ end
43
45
  # end monkey
44
46
  #
45
47
  VERSION = Bugzyrb::Version::STRING
46
- DATE = "2011-09-30"
48
+ DATE = "2011-12-06"
47
49
  APPNAME = File.basename($0)
48
50
  AUTHOR = "rkumar"
49
51
 
@@ -73,7 +75,7 @@ class Bugzy
73
75
  # $ bugzyrb close 1
74
76
  #
75
77
  # == Change priority of items 4 and 6 to P2
76
- # $ bugzyrb pri P2 4 6
78
+ # $ bugzyrb pri 4 6 P2
77
79
  #
78
80
  # For more:
79
81
  # $ bugzyrb --help
@@ -909,8 +911,11 @@ TEXT
909
911
  change_value "status", "started", args
910
912
  0
911
913
  end
914
+ # I am changing this to keep it consistent with others.
915
+ # Items numbers always shoud come first, and then other tags/data
912
916
  def priority args
913
- value = args.shift
917
+ #value = args.shift
918
+ value = args.pop
914
919
  ret = change_value "priority", value, args
915
920
  if ret != 0
916
921
  die "#{value} is not valid for priority. Valid are (#{@valid_priority.join(',')})"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bugzyrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-18 00:00:00.000000000 Z
12
+ date: 2011-12-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yard
16
- requirement: &70262599391040 !ruby/object:Gem::Requirement
16
+ requirement: &70245608863280 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0.5'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70262599391040
24
+ version_requirements: *70245608863280
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: subcommand
27
- requirement: &70262599390560 !ruby/object:Gem::Requirement
27
+ requirement: &70245608862800 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.5
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70262599390560
35
+ version_requirements: *70245608862800
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: highline
38
- requirement: &70262599390080 !ruby/object:Gem::Requirement
38
+ requirement: &70245608878680 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.5.2
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70262599390080
46
+ version_requirements: *70245608878680
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: terminal-table
49
- requirement: &70262599389600 !ruby/object:Gem::Requirement
49
+ requirement: &70245608878200 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.4.2
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70262599389600
57
+ version_requirements: *70245608878200
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: sqlite3
60
- requirement: &70262599389120 !ruby/object:Gem::Requirement
60
+ requirement: &70245608877720 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: 1.2.5
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70262599389120
68
+ version_requirements: *70245608877720
69
69
  description: basic, easy-to-use command-line issue-tracker using sqlite for ruby 1.9
70
70
  email: sentinel1879@gmail.com
71
71
  executables: