bugzyrb 0.3.6 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.6
1
+ 0.3.8
data/bugzyrb.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bugzyrb}
8
- s.version = "0.3.6"
8
+ s.version = "0.3.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Rahul Kumar}]
12
- s.date = %q{2011-10-06}
12
+ s.date = %q{2011-11-12}
13
13
  s.description = %q{basic, easy-to-use command-line issue-tracker using sqlite for ruby 1.9}
14
14
  s.email = %q{sentinel1879@gmail.com}
15
15
  s.executables = [%q{bugzyrb}]
@@ -32,7 +32,8 @@ Gem::Specification.new do |s|
32
32
  "lib/bugzyrb/common/cmdapp.rb",
33
33
  "lib/bugzyrb/common/colorconstants.rb",
34
34
  "lib/bugzyrb/common/db.rb",
35
- "lib/bugzyrb/common/sed.rb"
35
+ "lib/bugzyrb/common/sed.rb",
36
+ "lib/bugzyrb/version.rb"
36
37
  ]
37
38
  s.homepage = %q{http://github.com/rkumar/bugzyrb}
38
39
  s.require_paths = [%q{lib}]
data/lib/bugzyrb.rb CHANGED
@@ -12,6 +12,7 @@ $:.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
12
12
  require 'bugzyrb/common/colorconstants'
13
13
  require 'bugzyrb/common/sed'
14
14
  require 'bugzyrb/common/cmdapp'
15
+ require 'bugzyrb/version'
15
16
  require 'subcommand'
16
17
  require 'sqlite3'
17
18
  require 'highline/import'
@@ -41,7 +42,7 @@ class String
41
42
  end
42
43
  # end monkey
43
44
  #
44
- VERSION = "0.3.5"
45
+ VERSION = Bugzyrb::Version::STRING
45
46
  DATE = "2011-09-30"
46
47
  APPNAME = File.basename($0)
47
48
  AUTHOR = "rkumar"
@@ -59,7 +60,7 @@ class Bugzy
59
60
  # $ bugzyrb add "Create a project in rubyforge"
60
61
  # $ bugzyrb add "Update Rakefile with project name"
61
62
  #
62
- # == List tasks
63
+ # == tasks
63
64
  # To list open/unstarted tasks:
64
65
  # $ bugzyrb
65
66
  # To list closed tasks also:
@@ -114,7 +115,7 @@ class Bugzy
114
115
  @valid_severity = %w[normal critical moderate]
115
116
  @valid_status = %w[open started closed stopped canceled]
116
117
  @valid_priority = %w[P1 P2 P3 P4 P5]
117
- $prompt_desc = $prompt_type = $prompt_status = $prompt_severity = $prompt_assigned_to = true
118
+ $prompt_desc = $prompt_type = $prompt_status = $prompt_severity = $prompt_assigned_to = $prompt_priority = true
118
119
  $default_priority = nil
119
120
  $default_type = "bug"
120
121
  $default_severity = "normal"
@@ -157,8 +158,8 @@ class Bugzy
157
158
  start_date DATE default CURRENT_DATE,
158
159
  due_date DATE,
159
160
  comment_count INTEGER default 0,
160
- priority VARCHAR(10),
161
- title VARCHAR(10) NOT NULL,
161
+ priority VARCHAR(2),
162
+ title VARCHAR(20) NOT NULL,
162
163
  description TEXT,
163
164
  fix TEXT,
164
165
  created_by VARCHAR(60),
@@ -294,6 +295,11 @@ SQL
294
295
  type = Cmdapp._choice("Select type:", %w[bug enhancement feature task] )
295
296
  #message "You selected #{type}"
296
297
  end
298
+ if $prompt_priority
299
+ #priority = Cmdapp._choice("Select priority:", %w[normal critical moderate] )
300
+ priority = ask_priority
301
+ #message "You selected #{severity}"
302
+ end
297
303
  if $prompt_severity
298
304
  severity = Cmdapp._choice("Select severity:", %w[normal critical moderate] )
299
305
  #message "You selected #{severity}"
@@ -354,6 +360,7 @@ SQL
354
360
  0
355
361
  end
356
362
  def mail_issue subject, row, emailid=nil
363
+ return unless $send_email
357
364
  emailid ||= $default_user
358
365
  body = <<TEXT
359
366
  Id : #{row['id']}
@@ -1061,9 +1068,14 @@ TEXT
1061
1068
  puts Subcommands::print_actions
1062
1069
  exit 0
1063
1070
  end
1071
+ opts.on("--list-actions", "list actions for autocompletion ") do |v|
1072
+ Subcommands::list_actions
1073
+ exit 0
1074
+ end
1064
1075
 
1065
1076
  opts.on("--version", "Show version") do
1066
- version = Cmdapp::version_info || VERSION
1077
+ version = VERSION
1078
+ #version = Cmdapp::version_info || VERSION
1067
1079
  puts "#{APPNAME} version #{version}, #{DATE}"
1068
1080
  puts "by #{AUTHOR}. This software is under the GPL License."
1069
1081
  exit 0
@@ -0,0 +1,5 @@
1
+ module Bugzyrb # :nodoc:
2
+ module Version # :nodoc:
3
+ STRING = '0.3.8'
4
+ end
5
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: bugzyrb
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.6
5
+ version: 0.3.8
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-10-06 00:00:00 Z
13
+ date: 2011-11-12 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: yard
@@ -92,6 +92,7 @@ files:
92
92
  - lib/bugzyrb/common/colorconstants.rb
93
93
  - lib/bugzyrb/common/db.rb
94
94
  - lib/bugzyrb/common/sed.rb
95
+ - lib/bugzyrb/version.rb
95
96
  homepage: http://github.com/rkumar/bugzyrb
96
97
  licenses: []
97
98