rjgit 4.2.0.1 → 4.3.1.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
  SHA1:
3
- metadata.gz: 738fc495773f62915e0f17f7266abd3de241ae7f
4
- data.tar.gz: 9c7edfdc17e0439e98ecd254a184292ea0cde524
3
+ metadata.gz: e0b9f90bf7c15110eccfc10400698258195b6cb4
4
+ data.tar.gz: 2fd362d8001a355f18dc160c481e4c63a740f639
5
5
  SHA512:
6
- metadata.gz: 3a6e9c6bc9db3594325b28eca28fd9f9ba00b3a0ee9f9932e8a50b3e45addb77df14418bdd15b56138c44d9e621fc6fa5c7361de54e25328f19422063ffbd304
7
- data.tar.gz: f91fcfcd0749fa320bc736c480a1fef73e8daf68ab4dc421349fedca2a00cf72706143cbf9fa2858e00fce4356c47199cc5e6dde3208827235365ca5880d914b
6
+ metadata.gz: d230bddcb3161791a276668ee700bf883d08c2467b40b21b77535dc14953e2031d302425e1f2560fc0ac1f6b39e0d455f8821a92b1c74f3f2a9bdffb6b618f8f
7
+ data.tar.gz: 32b7d90e6030489c7247b056cbaeb8d6330b18b1056103a9dc225b86da4d6e19c076d34af617c2c10f5693df72c9c3c1963db77f86c58bef073f6b0fd1515102
data/lib/rjgit.rb CHANGED
@@ -132,17 +132,17 @@ module RJGit
132
132
 
133
133
  def self.diff(repository, options = {})
134
134
  options = {:namestatus => false, :patch => false}.merge(options)
135
- git = repository.git.jgit
136
135
  repo = RJGit.repository_type(repository)
136
+ git = RubyGit.new(repo).jgit
137
137
  diff_command = git.diff
138
- if options[:old_rev] then
138
+ if options[:old_rev]
139
139
  reader = repo.new_object_reader
140
140
  old_tree = repo.resolve("#{options[:old_rev]}^{tree}")
141
141
  old_tree_iter = CanonicalTreeParser.new
142
142
  old_tree_iter.reset(reader, old_tree)
143
143
  diff_command.set_old_tree(old_tree_iter)
144
144
  end
145
- if options[:new_rev] then
145
+ if options[:new_rev]
146
146
  reader = repo.new_object_reader unless reader
147
147
  new_tree = repo.resolve("#{options[:new_rev]}^{tree}")
148
148
  new_tree_iter = CanonicalTreeParser.new
@@ -154,7 +154,7 @@ module RJGit
154
154
  diff_command.set_cached(true) if options[:cached]
155
155
  diff_entries = diff_command.call
156
156
  diff_entries = diff_entries.to_array.to_ary
157
- if options[:patch] then
157
+ if options[:patch]
158
158
  result = []
159
159
  out_stream = ByteArrayOutputStream.new
160
160
  formatter = DiffFormatter.new(out_stream)
@@ -198,7 +198,7 @@ module RJGit
198
198
 
199
199
  def only_contains_deletions(hashmap)
200
200
  hashmap.each do |key, value|
201
- if value.is_a?(Hash) then
201
+ if value.is_a?(Hash)
202
202
  return false unless only_contains_deletions(value)
203
203
  elsif value.is_a?(String)
204
204
  return false
@@ -313,7 +313,7 @@ module RJGit
313
313
  commit_builder.setAuthor(person)
314
314
  commit_builder.setMessage(message)
315
315
  commit_builder.setTreeId(RJGit.tree_type(new_tree))
316
- if parents.is_a?(Array) then
316
+ if parents.is_a?(Array)
317
317
  parents.each {|parent| commit_builder.addParentId(RJGit.commit_type(parent)) }
318
318
  elsif parents
319
319
  commit_builder.addParentId(RJGit.commit_type(parents))
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RJGit
2
- VERSION = "4.2.0.1"
2
+ VERSION = "4.3.1.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: 4.2.0.1
4
+ version: 4.3.1.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: 2016-02-21 00:00:00.000000000 Z
15
+ date: 2016-05-10 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: mime-types
@@ -45,7 +45,7 @@ files:
45
45
  - lib/constants.rb
46
46
  - lib/git.rb
47
47
  - lib/java/jars/jsch-0.1.49.jar
48
- - lib/java/jars/org.eclipse.jgit-4.2.0.201601211800-r.jar
48
+ - lib/java/jars/org.eclipse.jgit-4.3.1.201605051710-r.jar
49
49
  - lib/java/jars/slf4j-api-1.7.2.jar
50
50
  - lib/java/jars/slf4j-simple-1.7.12.jar
51
51
  - lib/repo.rb