rjgit 5.1.1.0 → 5.1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04d2b8ca4ccc7bde439aab78a6f53098b9292d605f82fd6ab2923af48b8a34f5
4
- data.tar.gz: 67bdbf7538384e46ba9e488d99742c25928bc3cc75c3c9a5a31ff4901fd65296
3
+ metadata.gz: 3f35a94977a86e42bd6351cc26866a920e88e3459db0f5cbc79b710475b1c24f
4
+ data.tar.gz: c4350c25697c13ee81374e9a0310be31f5a341df32a82f6594bf24dd6c28ff42
5
5
  SHA512:
6
- metadata.gz: e36f39a26b59bd999293e1b2fe72c3ed137e9ddacac26a753cc03baedb430fd87c7a90b814c8de05a2068a09c469d0906db781399fada7956e87de64d28484b2
7
- data.tar.gz: 9cc7155cf280f976b7558c37e298e9d7ca7a6b33b75f0703e50b322a9030af5e204189df05b0a584f4dc52744db2217d99e09c94e97cd8daec9bbd3fb0b72ba9
6
+ metadata.gz: 02ef35a9f7295d79b775167583ddef03f067b7b96dac00ae0d08533113e8bf1966e1fa371f9470fea1765cab8beffa8a68b831536ca7798f8dffeeea5769e6bf
7
+ data.tar.gz: 12ff7603cf76024720d9c735e2e33c1326fe4d3a62bbef9fc8c2dfe5f7de5386fafe8308a42572c69b7db533c0ceba007ba2181790b24913f1e72ed384d5b75f
data/lib/tree.rb CHANGED
@@ -60,13 +60,13 @@ module RJGit
60
60
  end
61
61
 
62
62
  def /(file)
63
- begin
63
+ if file =~ /^\/+$/
64
+ self
65
+ else
64
66
  treewalk = TreeWalk.forPath(@jrepo, file, @jtree)
65
- rescue Java::JavaLang::IllegalArgumentException
66
- return self
67
+ treewalk.nil? ? nil :
68
+ wrap_tree_or_blob(treewalk.get_file_mode(0), treewalk.get_path_string, treewalk.get_object_id(0))
67
69
  end
68
- treewalk.nil? ? nil :
69
- wrap_tree_or_blob(treewalk.get_file_mode(0), treewalk.get_path_string, treewalk.get_object_id(0))
70
70
  end
71
71
 
72
72
  def self.new_from_hashmap(repository, hashmap, base_tree = nil)
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RJGit
2
- VERSION = "5.1.1.0"
2
+ VERSION = "5.1.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rjgit
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.1.0
4
+ version: 5.1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maarten Engelen
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2018-09-23 00:00:00.000000000 Z
15
+ date: 2018-11-29 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  requirement: !ruby/object:Gem::Requirement
@@ -46,7 +46,7 @@ files:
46
46
  - lib/constants.rb
47
47
  - lib/git.rb
48
48
  - lib/java/jars/jsch-0.1.54.jar
49
- - lib/java/jars/org.eclipse.jgit-5.1.1.201809181055-r.jar
49
+ - lib/java/jars/org.eclipse.jgit-5.1.3.201810200350-r.jar
50
50
  - lib/java/jars/slf4j-api-1.7.2.jar
51
51
  - lib/java/jars/slf4j-simple-1.7.12.jar
52
52
  - lib/repo.rb