gollum-rjgit_adapter 0.5.1-java → 0.6.1-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/gollum-rjgit_adapter.gemspec +1 -1
- data/lib/rjgit_adapter/git_layer_rjgit.rb +13 -9
- data/lib/rjgit_adapter/version.rb +1 -1
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac50e5f74344c41b8825a441c882de7b4ae8b1659dfcf87005d7fe5a6379a078
|
4
|
+
data.tar.gz: 6b9f7fe732d3cfa7a3043c3371905426bbdb33843238c876cf83bc09b7a2a148
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6971e4b7bd7e5c26d2b0e0a7cd0dcd52e759fd01c6378112478e8874d7af295be3f84d928d2c9a5f91337d7ab5ba68037e380379420bc64407e238f6423ffc3b
|
7
|
+
data.tar.gz: 3524aff2bd136eda0eb80d12ad833b845095cb570faf2d5f2cc3250041e57744888c6934f9a12653ffca9f6c12457e212673c5bd4cd6d191825649c341511c49
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.summary = %q{Adapter for Gollum to use RJGit at the backend.}
|
13
13
|
s.description = %q{Adapter for Gollum to use RJGit at the backend.}
|
14
14
|
|
15
|
-
s.add_runtime_dependency "rjgit", "> 5.
|
15
|
+
s.add_runtime_dependency "rjgit", "> 5.7.0", "~> 5.7.0"
|
16
16
|
s.add_development_dependency "rspec", "3.4.0"
|
17
17
|
|
18
18
|
s.files = Dir['lib/**/*.rb'] + ["README.md", "Gemfile"]
|
@@ -16,13 +16,12 @@ module Gollum
|
|
16
16
|
import 'org.eclipse.jgit.revwalk.RevWalk'
|
17
17
|
import 'org.eclipse.jgit.lib.ObjectId'
|
18
18
|
|
19
|
-
# Convert
|
19
|
+
# Convert refspec to jgit canonical form
|
20
20
|
def self.canonicalize(ref)
|
21
21
|
return ref if sha?(ref)
|
22
|
-
return 'refs/heads/master' if ref.nil?
|
22
|
+
return 'refs/heads/master' if ref.nil?
|
23
23
|
result = ref.is_a?(Gollum::Git::Ref) ? ref.name : ref
|
24
|
-
result
|
25
|
-
result
|
24
|
+
(result =~ /^refs\/heads\// || result.upcase == 'HEAD') ? result : "refs/heads/#{result}"
|
26
25
|
end
|
27
26
|
|
28
27
|
def self.sha?(str)
|
@@ -30,14 +29,15 @@ module Gollum
|
|
30
29
|
end
|
31
30
|
|
32
31
|
class Actor
|
33
|
-
|
34
|
-
attr_accessor :name, :email
|
32
|
+
|
33
|
+
attr_accessor :name, :email, :time
|
35
34
|
attr_reader :actor
|
36
|
-
|
37
|
-
def initialize(name, email)
|
35
|
+
|
36
|
+
def initialize(name, email, time = nil)
|
38
37
|
@name = name
|
39
38
|
@email = email
|
40
|
-
@
|
39
|
+
@time = time
|
40
|
+
@actor = RJGit::Actor.new(name, email, time)
|
41
41
|
end
|
42
42
|
|
43
43
|
def output(time)
|
@@ -132,6 +132,10 @@ module Gollum
|
|
132
132
|
Gollum::Git::Tree.new(@commit.tree)
|
133
133
|
end
|
134
134
|
|
135
|
+
def parent
|
136
|
+
@commit.parents.empty? ? nil : Gollum::Git::Commit.new(@commit.parents.first)
|
137
|
+
end
|
138
|
+
|
135
139
|
def stats
|
136
140
|
return @stats unless @stats.nil?
|
137
141
|
rjgit_stats = @commit.stats
|
metadata
CHANGED
@@ -1,35 +1,35 @@
|
|
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.6.1
|
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:
|
11
|
+
date: 2021-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
15
15
|
requirements:
|
16
16
|
- - ">"
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version: 5.
|
18
|
+
version: 5.7.0
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 5.
|
21
|
+
version: 5.7.0
|
22
22
|
name: rjgit
|
23
|
-
prerelease: false
|
24
23
|
type: :runtime
|
24
|
+
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">"
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 5.
|
29
|
+
version: 5.7.0
|
30
30
|
- - "~>"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 5.
|
32
|
+
version: 5.7.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|
35
35
|
requirements:
|
@@ -37,8 +37,8 @@ dependencies:
|
|
37
37
|
- !ruby/object:Gem::Version
|
38
38
|
version: 3.4.0
|
39
39
|
name: rspec
|
40
|
-
prerelease: false
|
41
40
|
type: :development
|
41
|
+
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - '='
|
@@ -77,8 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
77
|
- !ruby/object:Gem::Version
|
78
78
|
version: '0'
|
79
79
|
requirements: []
|
80
|
-
|
81
|
-
rubygems_version: 2.7.10
|
80
|
+
rubygems_version: 3.0.6
|
82
81
|
signing_key:
|
83
82
|
specification_version: 4
|
84
83
|
summary: Adapter for Gollum to use RJGit at the backend.
|