rjgit 4.5.0.0 → 4.6.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: 530d22f8b1eab4990821c6a645d7df7217fb62b0
4
- data.tar.gz: ba876f844956ac86099a7b6b01c0b9d2f7bd6063
3
+ metadata.gz: 5785e5b9211481daa2245eb42098d26e3c6a85da
4
+ data.tar.gz: 3d648738cee23f05a32b53cad524194ef0848aed
5
5
  SHA512:
6
- metadata.gz: 8e47e786bc4bd6ee5ca199cf6e9766d5e3957c32aab9a894fd7c46653b260b43f41a03a33f32b65ebc232c466857ad3066d39d6e2d1d5c9e62bbcd736d2febf3
7
- data.tar.gz: da4a4e4179eb2354b1039e9af70aa39adcbe4a1013f0fd4ac966a85e696eb61e1d8d787d1bec84c8b456360dc25e1c8c4fca4e625e518f47a6a578a1ce320927
6
+ metadata.gz: 4e8eed279e99335e23362c56e8883e81e09bf1cc9eb0ac40eb109c53d5961cd12d3d30c27defd87f0eb336860e54625f80a98bbb693b5503b7627adbaf1ce638
7
+ data.tar.gz: 45298510738aeea096ff95916b83ebe1f80e1e44e78ffba01dd0c372a6f9936daf94d3a2226a101c678f39d586f270e9bcd2f5d27d596f980e28ab075c316142
data/lib/git.rb CHANGED
@@ -338,6 +338,7 @@ module RJGit
338
338
  def push_all(remote, options = {})
339
339
  push_command = @jgit.push
340
340
  push_command.set_dry_run(true) if options[:dryrun]
341
+ push_command.set_force(true) if options[:force]
341
342
  push_command.set_remote(remote)
342
343
  push_command.set_push_all
343
344
  push_command.set_push_tags
@@ -349,6 +350,7 @@ module RJGit
349
350
  def push(remote = nil, refs = [], options = {})
350
351
  push_command = @jgit.push
351
352
  push_command.set_dry_run(true) if options[:dryrun]
353
+ push_command.set_force(true) if options[:force]
352
354
  push_command.set_remote(remote) if remote
353
355
  if(refs.to_a.size > 0)
354
356
  refs.map!{|ref| RefSpec.new(ref)}
@@ -11,6 +11,7 @@ module RJGit
11
11
  VERSION
12
12
  end
13
13
 
14
+ require 'uri'
14
15
  require 'stringio'
15
16
  # gem requires
16
17
  require 'mime/types'
@@ -92,7 +92,7 @@ module RJGit
92
92
  treewalk.add_tree(jtree)
93
93
  treewalk.set_filter(PathFilter.create(file_path))
94
94
  if treewalk.next
95
- jsubtree = walk.lookup_tree(treewalk.object_id(0))
95
+ jsubtree = walk.lookup_tree(treewalk.get_object_id(0))
96
96
  if jsubtree
97
97
  mode = RJGit.get_file_mode_with_path(jrepo, file_path, jtree)
98
98
  Tree.new(jrepo, mode, file_path, jsubtree)
@@ -124,4 +124,4 @@ module RJGit
124
124
 
125
125
  end
126
126
 
127
- end
127
+ end
@@ -1,3 +1,3 @@
1
1
  module RJGit
2
- VERSION = "4.5.0.0"
2
+ VERSION = "4.6.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.5.0.0
4
+ version: 4.6.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maarten Engelen
@@ -12,22 +12,22 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2016-10-27 00:00:00.000000000 Z
15
+ date: 2017-03-17 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
- name: mime-types
19
- version_requirements: !ruby/object:Gem::Requirement
18
+ requirement: !ruby/object:Gem::Requirement
20
19
  requirements:
21
20
  - - ~>
22
21
  - !ruby/object:Gem::Version
23
22
  version: '1.15'
24
- requirement: !ruby/object:Gem::Requirement
23
+ name: mime-types
24
+ prerelease: false
25
+ type: :runtime
26
+ version_requirements: !ruby/object:Gem::Requirement
25
27
  requirements:
26
28
  - - ~>
27
29
  - !ruby/object:Gem::Version
28
30
  version: '1.15'
29
- prerelease: false
30
- type: :runtime
31
31
  description: JRuby wrapper around the JGit library for manipulating git repositories in code.
32
32
  email: repotag-dev@googlegroups.com
33
33
  executables: []
@@ -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.5.0.201609210915-r.jar
48
+ - lib/java/jars/org.eclipse.jgit-4.6.1.201703071140-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