gollum-rjgit_adapter 0.2-java → 0.3-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -1
- data/lib/rjgit_adapter/git_layer_rjgit.rb +5 -1
- data/lib/rjgit_adapter/version.rb +1 -1
- metadata +12 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c80a16a8cb97691a2e46f3cafcc97af770d4686
|
|
4
|
+
data.tar.gz: f0c49e526ddf49198ddc9fc93dc0364a3e4035ff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4a3c80b9970631ea65e1f53bac1c609079a389d88f03655b6a9ec123368e9b5a90f64597a1a8c043eda15f993c2b238a570b004027fa9163f3dca06b96fbda45
|
|
7
|
+
data.tar.gz: 2bdb2bf5d6085dd3c6f0407b1b082eec1b4b8f72a9df4da20426b2afd0c4dcc53d505e43eb79f3cde18bf44a123e48bd845a219e12e6fd543d9d852ed4417ad2
|
data/README.md
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
gollum-lib_rjgit_adapter
|
|
2
2
|
========================
|
|
3
|
+
[](http://badge.fury.io/rb/gollum-rjgit_adapter)
|
|
3
4
|
|
|
4
|
-
Adapter for Gollum to use RJGit at the backend
|
|
5
|
+
Adapter for Gollum to use [RJGit](https://github.com/repotag/rjgit) at the backend. This adapter is the default when your platform is JRuby, so you need only to `gem install gollum` and then use gollum normally.
|
|
6
|
+
|
|
7
|
+
Note: this adapter is new. Although it passes the full test suite for gollum (and gollum-lib), it might well still contain bugs. Please let us know if you encouter any!
|
|
@@ -194,7 +194,11 @@ module Gollum
|
|
|
194
194
|
|
|
195
195
|
def apply_patch(sha, patch = nil, options = {})
|
|
196
196
|
return false if patch.nil?
|
|
197
|
-
|
|
197
|
+
begin
|
|
198
|
+
@git.apply_patch(patch)
|
|
199
|
+
rescue Java::OrgEclipseJgitApiErrors::PatchApplyException
|
|
200
|
+
false
|
|
201
|
+
end
|
|
198
202
|
Tree.new(RJGit::Tree.new(@git.jrepo, nil, nil, RevWalk.new(@git.jrepo).lookup_tree(@git.jrepo.resolve("HEAD^{tree}"))))
|
|
199
203
|
end
|
|
200
204
|
|
metadata
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gollum-rjgit_adapter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.3'
|
|
5
5
|
platform: java
|
|
6
6
|
authors:
|
|
7
7
|
- Bart Kamphorst, Dawa Ometto
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-05-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
|
-
|
|
14
|
+
name: rjgit
|
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
15
16
|
requirements:
|
|
16
17
|
- - ~>
|
|
17
18
|
- !ruby/object:Gem::Version
|
|
18
19
|
version: '0.3'
|
|
19
|
-
|
|
20
|
-
prerelease: false
|
|
21
|
-
type: :runtime
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
20
|
+
requirement: !ruby/object:Gem::Requirement
|
|
23
21
|
requirements:
|
|
24
22
|
- - ~>
|
|
25
23
|
- !ruby/object:Gem::Version
|
|
26
24
|
version: '0.3'
|
|
25
|
+
prerelease: false
|
|
26
|
+
type: :runtime
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
|
-
|
|
28
|
+
name: rspec
|
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
29
30
|
requirements:
|
|
30
31
|
- - '='
|
|
31
32
|
- !ruby/object:Gem::Version
|
|
32
33
|
version: 2.13.0
|
|
33
|
-
|
|
34
|
-
prerelease: false
|
|
35
|
-
type: :development
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
|
37
35
|
requirements:
|
|
38
36
|
- - '='
|
|
39
37
|
- !ruby/object:Gem::Version
|
|
40
38
|
version: 2.13.0
|
|
39
|
+
prerelease: false
|
|
40
|
+
type: :development
|
|
41
41
|
description: Adapter for Gollum to use RJGit at the backend.
|
|
42
42
|
email:
|
|
43
43
|
- repotag-dev@googlegroups.com
|