Skip to content

Commit

Permalink
Update JGit lib from 5.13.0 to 6.1.0. Bump RJGit version. (#62)
Browse files Browse the repository at this point in the history
* Update JGit lib from 5.13.0 to 6.1.0. Bump RJGit version.

* Change import to java_import in config_spec.rb.

* Source gemspec in Gemfile and remove double dependency.
  • Loading branch information
bartkamphorst authored Apr 29, 2022
1 parent 1c59c5b commit 4b5e244
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'https://rubygems.org'

gem 'mime-types', '~> 3.3.1'
gemspec
gem 'rake', '>= 12.3.3'

gem 'coveralls', '~> 0.8.23', require: false
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ With special thanks to:

License
-------
Copyright (c) 2011 - 2015, Team Repotag
Copyright (c) 2011 - 2022, Team Repotag

(Modified BSD License)

Expand Down
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RJGit
VERSION = "5.13.0.0"
VERSION = "6.1.0.0"
end
2 changes: 1 addition & 1 deletion spec/config_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec_helper'

import 'org.eclipse.jgit.errors.ConfigInvalidException'
java_import 'org.eclipse.jgit.errors.ConfigInvalidException'

describe RJGit::Configuration do

Expand Down
6 changes: 3 additions & 3 deletions spec/transport_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
jgit_jar = File.basename(Dir.glob(File.join(dir, "org.eclipse.jgit-*.jar")).first)
jgit_version = jgit_jar.split("org.eclipse.jgit-").last.split(".jar").first

UPLOAD_PACK_ADVERTISEMENT = "00db55ca9d4360c522d38bc73ef9cce81c2f72c413d5 HEAD\u0000 include-tag multi_ack_detailed multi_ack ofs-delta side-band side-band-64k thin-pack no-progress shallow agent=JGit/#{jgit_version} symref=HEAD:refs/heads/master\n0044f5771ead0e6d9a8d937bf5cabfa3678ee8944a92 refs/heads/alternative\n003f55ca9d4360c522d38bc73ef9cce81c2f72c413d5 refs/heads/master\n0000"
UPLOAD_PACK_ADVERTISEMENT = "00da55ca9d4360c522d38bc73ef9cce81c2f72c413d5 HEAD\u0000 include-tag multi_ack_detailed multi_ack ofs-delta side-band side-band-64k thin-pack no-progress shallow agent=JGit/#{jgit_version} symref=HEAD:refs/heads/master\n0044f5771ead0e6d9a8d937bf5cabfa3678ee8944a92 refs/heads/alternative\n003f55ca9d4360c522d38bc73ef9cce81c2f72c413d5 refs/heads/master\n0000"

CORRECT_UPLOAD_REQUEST = "0067want f5771ead0e6d9a8d937bf5cabfa3678ee8944a92 multi_ack_detailed side-band-64k thin-pack ofs-delta\n00000009done\n" # Correct request for an object

Expand All @@ -17,7 +17,7 @@

UPLOAD_REQUEST_INVALID_OBJECT = "0067want aaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa multi_ack_detailed side-band-64k thin-pack ofs-delta\n00000009done\n" # Malformed object id requested

RECEIVE_PACK_ADVERTISEMENT = "00a5f5771ead0e6d9a8d937bf5cabfa3678ee8944a92 refs/heads/alternative\u0000 side-band-64k delete-refs report-status quiet atomic ofs-delta agent=JGit/#{jgit_version}\n003f55ca9d4360c522d38bc73ef9cce81c2f72c413d5 refs/heads/master\n0000"
RECEIVE_PACK_ADVERTISEMENT = "00a4f5771ead0e6d9a8d937bf5cabfa3678ee8944a92 refs/heads/alternative\u0000 side-band-64k delete-refs report-status quiet atomic ofs-delta agent=JGit/#{jgit_version}\n003f55ca9d4360c522d38bc73ef9cce81c2f72c413d5 refs/heads/master\n0000"

CORRECT_RECEIVE_REQUEST = "00a20000000000000000000000000000000000000000 2f5cc213db87cb9719df0a094cab3a5bb458b361 refs/heads/test\x00 report-status side-band-64k agent=git/2.10.1.(Apple.Git-78)0000PACK\x00\x00\x00\x02\x00\x00\x00\x03\x98\x0Ex\x9C\x9D\xCCA\n\xC20\x10@\xD1}N\x91\xBDP23I\x9A\x80\x88\xA0{7^ \x99Li\xC16\xA5\xA6x}\xA5Gp\xF9\x16\xFF\xB7MD\xA3G+1Xk\xB2/\xE4\f\x93\xC5\f$\xB1\a\x840\x00\xFBLb2\xAB5m\xB24\xED\x1C\xA7X,y\xC3\x0E\xB1P\xC8\xDC\x93\f\x91Y\x020\x0E=\xB2\x05*N\xA5\xBD\x8Du\xD3\xF7\xF4I\xFA1KkU\x9F\xCB\x0F]=p]\xC7\xE9\xD5\xED{\xB7\xBC.\x1A\x1C\x90\xC3\x001\xE8\x93\x01c\x14\xD7y\x9EZ\x93\x7F{\xF5\x94w\xD3\xB7\xE3\xA2\xBE?\xADE\xA7\xFB\x01\x16O\xE5\xB9\xFA\xCD\xDE\x8E\x10iz\x91\xB6c&\x9F\x91\xC98\x06x\x9C\xEBb\xEAb\x9A\xF0M\x84\xF3\x8AVj\xE8\xF6\xF3\xA6\n\xCB\x82\x96\xB8\x14\xED\xFC\x12\xDE\xCA\x7F\x0F\x00\x9C=\f\x17\xF4\x01\x16B\x19\xCA\x17\x87\xBF,~\x869lw\xD1\xCC\x82O\xFC\xFC\x96x\x9C[k\xB7\xD3\x8E'\xC458D!4\xC0\xC51\xC4\x95k\x83\xAE<\x00FV\x06\x18\xB8Y\x92p\x19v\x9EV<A\\u\xFDTS\xEF\x85yb\x91"

Expand Down Expand Up @@ -45,7 +45,7 @@
expect(@pack.jpack).to be_a org.eclipse.jgit.transport.UploadPack
end

it "advertises all references" do
it "advertises all references" do
expect(@pack.advertise_refs).to eq UPLOAD_PACK_ADVERTISEMENT
end

Expand Down

0 comments on commit 4b5e244

Please sign in to comment.