git-issue 0.7.6 → 0.7.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -3,7 +3,7 @@ git-issue
3
3
 
4
4
  git subcommand of browse/modify issue traker's tickets.
5
5
 
6
- now supporse Redmine,Github-issues
6
+ now available issue-tracker system is Redmine and Github-issues.
7
7
 
8
8
  ## ScreenShots
9
9
 
@@ -52,13 +52,14 @@ set your account name if using github.
52
52
  list l listing issues.
53
53
  mine m display issues that assigned to you.
54
54
  commit c commit with filling issue subject to messsage.if given no id, geuss id from current branch name.
55
+ add a create issue.
55
56
  update u update issue properties. if given no id, geuss id from current branch name.
56
57
  branch b checout to branch using specified issue id. if branch dose'nt exisits, create it. (ex ticket/id/<issue_id>)
57
58
  publish pub push branch to remote repository and set upstream
58
59
  rebase rb rebase branch onto specific newbase
59
60
  help h show usage.
60
61
  local loc listing local branches tickets
61
- project prj listing ticket belongs to sspecified project
62
+ project pj listing ticket belongs to sspecified project
62
63
 
63
64
  Options:
64
65
  -a, --all update all paths in the index file
@@ -70,18 +71,20 @@ set your account name if using github.
70
71
  --remote=VALUE on publish, remote repository to push branch
71
72
  --onto=VALUE on rebase, start new branch with HEAD equal to "newbase"
72
73
  --debug debug print
73
- -j, --supperss_journals show issue journals
74
- -r, --supperss_relations show issue relations tickets
75
- -c, --supperss_changesets show issue changesets
74
+ -j, --supperss_journals do not show issue journals
75
+ -r, --supperss_relations do not show issue relations tickets
76
+ -c, --supperss_changesets do not show issue changesets
76
77
  -q, --query=VALUE filter query of listing tickets
77
- --subject=VALUE use the given value to update subject
78
- --ratio=VALUE use the given value to update done-ratio(%)
79
- --status=VALUE use the given value to update issue statues id
80
- --priority=VALUE use the given value to update issue priority id
81
- --tracker=VALUE use the given value to update tracker id
82
- --assigned_to_id=VALUE use the given value to update assigned_to id
83
- --category=VALUE use the given value to update category id
84
- --fixed_version=VALUE use the given value to update fixed_version id
78
+ --project_id=VALUE use the given value to create subject
79
+ --description=VALUE use the given value to create subject
80
+ --subject=VALUE use the given value to create/update subject
81
+ --ratio=VALUE use the given value to create/update done-ratio(%)
82
+ --status=VALUE use the given value to create/update issue statues id
83
+ --priority=VALUE use the given value to create/update issue priority id
84
+ --tracker=VALUE use the given value to create/update tracker id
85
+ --assigned_to_id=VALUE use the given value to create/update assigned_to id
86
+ --category=VALUE use the given value to create/update category id
87
+ --fixed_version=VALUE use the given value to create/update fixed_version id
85
88
  --custom_fields=VALUE value should be specifies '<custom_fields_id1>:<value2>,<custom_fields_id2>:<value2>, ...'
86
89
  --notes=VALUE add notes to issue
87
90
 
@@ -124,6 +127,7 @@ set your account name if using github.
124
127
  --direction=VALUE Query of listing issues, (asc or desc, default: desc.)
125
128
  --since=VALUE Query of listing issue, (Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ)
126
129
  --password=VALUE For Authorizaion of create/update issue. Github API v3 does'nt supports API token base authorization for now. then, use Basic Authorizaion instead token.
130
+ --sslnoverify don't verify SSL
127
131
 
128
132
  ## Copyright
129
133
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.6
1
+ 0.7.7
data/git-issue.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{git-issue}
8
- s.version = "0.7.6"
8
+ s.version = "0.7.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tomohito Ozaki"]
@@ -56,6 +56,9 @@ Gem::Specification.new do |s|
56
56
  s.add_development_dependency(%q<rspec>, [">= 0"])
57
57
  s.add_development_dependency(%q<activesupport>, [">= 0"])
58
58
  s.add_development_dependency(%q<pit>, [">= 0"])
59
+ s.add_development_dependency(%q<rspec>, [">= 0"])
60
+ s.add_development_dependency(%q<activesupport>, [">= 0"])
61
+ s.add_development_dependency(%q<pit>, [">= 0"])
59
62
  else
60
63
  s.add_dependency(%q<git-issue>, [">= 0"])
61
64
  s.add_dependency(%q<rspec>, [">= 0"])
@@ -64,6 +67,9 @@ Gem::Specification.new do |s|
64
67
  s.add_dependency(%q<rspec>, [">= 0"])
65
68
  s.add_dependency(%q<activesupport>, [">= 0"])
66
69
  s.add_dependency(%q<pit>, [">= 0"])
70
+ s.add_dependency(%q<rspec>, [">= 0"])
71
+ s.add_dependency(%q<activesupport>, [">= 0"])
72
+ s.add_dependency(%q<pit>, [">= 0"])
67
73
  end
68
74
  else
69
75
  s.add_dependency(%q<git-issue>, [">= 0"])
@@ -73,6 +79,9 @@ Gem::Specification.new do |s|
73
79
  s.add_dependency(%q<rspec>, [">= 0"])
74
80
  s.add_dependency(%q<activesupport>, [">= 0"])
75
81
  s.add_dependency(%q<pit>, [">= 0"])
82
+ s.add_dependency(%q<rspec>, [">= 0"])
83
+ s.add_dependency(%q<activesupport>, [">= 0"])
84
+ s.add_dependency(%q<pit>, [">= 0"])
76
85
  end
77
86
  end
78
87
 
@@ -17,20 +17,22 @@ class GitIssue::Base
17
17
  split_ticket = lambda{|s| s.nil? || s.empty? ? nil : s.split(/,/).map{|v| v.strip.to_i} }
18
18
 
19
19
  @tickets = []
20
- cmd = args.shift || default_cmd
20
+ cmd = args.shift
21
21
 
22
22
  if cmd =~ /(\d+,?\s?)+/
23
23
  @tickets = split_ticket.call(cmd)
24
- cmd = :show
24
+ cmd = nil
25
25
  end
26
+
27
+ @tickets += args.map{|s| split_ticket.call(s)}.flatten.uniq
28
+ @tickets = [guess_ticket].compact if @tickets.empty?
29
+
30
+ cmd ||= (@tickets.nil? || @tickets.empty?) ? default_cmd : :show
26
31
  cmd = cmd.to_sym
27
32
 
28
33
  @command = find_command(cmd)
29
34
 
30
35
  exit_with_message("invalid command <#{cmd}>") unless @command
31
-
32
- @tickets += args.map{|s| split_ticket.call(s)}.flatten.uniq
33
- @tickets = [guess_ticket] if @tickets.empty?
34
36
  end
35
37
 
36
38
  def default_cmd
@@ -134,7 +136,7 @@ class GitIssue::Base
134
136
 
135
137
  def guess_ticket
136
138
  branch = current_branch
137
- if branch =~ %r!id/(\d+)!
139
+ if branch =~ %r!id/(\d+)! || branch =~ /^(\d+)_/ || branch =~ /_(\d+)$/
138
140
  ticket = $1
139
141
  end
140
142
  end
@@ -20,7 +20,7 @@ class Redmine < GitIssue::Base
20
20
  def commands
21
21
  cl = super
22
22
  cl << GitIssue::Command.new(:local, :loc, 'listing local branches tickets')
23
- cl << GitIssue::Command.new(:project, :prj, 'listing ticket belongs to sspecified project ')
23
+ cl << GitIssue::Command.new(:project, :pj, 'listing ticket belongs to sspecified project ')
24
24
  end
25
25
 
26
26
  def show(options = {})
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-issue
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
- - 6
10
- version: 0.7.6
9
+ - 7
10
+ version: 0.7.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tomohito Ozaki
@@ -158,6 +158,48 @@ dependencies:
158
158
  prerelease: false
159
159
  type: :development
160
160
  requirement: *id010
161
+ - !ruby/object:Gem::Dependency
162
+ name: rspec
163
+ version_requirements: &id011 !ruby/object:Gem::Requirement
164
+ none: false
165
+ requirements:
166
+ - - ">="
167
+ - !ruby/object:Gem::Version
168
+ hash: 3
169
+ segments:
170
+ - 0
171
+ version: "0"
172
+ prerelease: false
173
+ type: :development
174
+ requirement: *id011
175
+ - !ruby/object:Gem::Dependency
176
+ name: activesupport
177
+ version_requirements: &id012 !ruby/object:Gem::Requirement
178
+ none: false
179
+ requirements:
180
+ - - ">="
181
+ - !ruby/object:Gem::Version
182
+ hash: 3
183
+ segments:
184
+ - 0
185
+ version: "0"
186
+ prerelease: false
187
+ type: :development
188
+ requirement: *id012
189
+ - !ruby/object:Gem::Dependency
190
+ name: pit
191
+ version_requirements: &id013 !ruby/object:Gem::Requirement
192
+ none: false
193
+ requirements:
194
+ - - ">="
195
+ - !ruby/object:Gem::Version
196
+ hash: 3
197
+ segments:
198
+ - 0
199
+ version: "0"
200
+ prerelease: false
201
+ type: :development
202
+ requirement: *id013
161
203
  description: git extention command for issue tracker system.
162
204
  email: ozaki@yuroyoro.com
163
205
  executables: