git-fogbugz 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -47,7 +47,12 @@ If you are
47
47
  http://[cgitserver.example.com]/cgit/[repository_name]/commit/?id=^R2
48
48
 
49
49
  === gitweb
50
- TODO
50
+
51
+ Diff URL:
52
+ https://[cgitserver.example.com]/git/gitweb.cgi?p=[repository_name];a=blobdiff;f=^FILE;hb=^R2;hpb=^R1
53
+
54
+ Log URL:
55
+ https://[cgitserver.example.com]/git/gitweb.cgi?p=[repository_name];a=history;f=^FILE;hb=^R2
51
56
 
52
57
 
53
58
  == Todo
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
data/git-fogbugz.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{git-fogbugz}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Roy W. Black"]
data/lib/git_fogbugz.rb CHANGED
@@ -176,10 +176,11 @@ BANNER
176
176
  fogbugz.verify_mode = OpenSSL::SSL::VERIFY_NONE
177
177
  end
178
178
  if commit.message =~ /(bugzid|case|issue)[:\s]+(\d+)/i
179
- id = commit.id[0,7]
179
+ new_id = commit.id[0,7]
180
+ old_id = commit.parents[0].id[0,7]
180
181
  bugzid = $2
181
182
  files = commit.diffs.each do |d|
182
- url = make_url(bugzid, '00000', id, d.a_path)
183
+ url = make_url(bugzid, old_id, new_id, d.a_path)
183
184
  resp = fogbugz.get(url)
184
185
  unless resp.body =~ /OK/
185
186
  $stderr.puts 'FAILED: ' + url
@@ -196,7 +197,7 @@ BANNER
196
197
  end
197
198
 
198
199
  def make_url(bug_id, old, new, file)
199
- "/cvsSubmit.asp?ixBug=#{bug_id}&sFile=#{file}&sPrev=#{old}&sNew=#{new}&ixRepository=#{@options.repo_id}"
200
+ "/cvsSubmit.asp?ixBug=#{bug_id}&sFile=#{URI.escape(file)}&sPrev=#{old}&sNew=#{new}&ixRepository=#{@options.repo_id}"
200
201
  end
201
202
  end
202
203
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-fogbugz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roy W. Black