gollum-rjgit_adapter 0.6-java → 0.6.1-java

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: c81a6d3a2470436659b2c0b3b46be978d4156704a0a3c3f4c079e8067f2afbd7
4
- data.tar.gz: 3c9b2a351d55229b1b875b9cd7ca37d416b61f82122ce71fe805589faef2f21b
3
+ metadata.gz: ac50e5f74344c41b8825a441c882de7b4ae8b1659dfcf87005d7fe5a6379a078
4
+ data.tar.gz: 6b9f7fe732d3cfa7a3043c3371905426bbdb33843238c876cf83bc09b7a2a148
5
5
  SHA512:
6
- metadata.gz: 3f6b0d549b0bff685a5a59daabd2f6d8bebf999b080ad56c6a0030d0389d04e5c3308639bb8b8777a86fd71101c17c224712e82b4f6761fb0e1739b61046fc95
7
- data.tar.gz: bdaaed44709a3748a9cd7459afc8ea5912f1d981c52ab100c8552e30c4b7b79436bb437489771641f06aa4fefac9b6241e814c4c0f8a7fab91a48a39866f28f3
6
+ metadata.gz: 6971e4b7bd7e5c26d2b0e0a7cd0dcd52e759fd01c6378112478e8874d7af295be3f84d928d2c9a5f91337d7ab5ba68037e380379420bc64407e238f6423ffc3b
7
+ data.tar.gz: 3524aff2bd136eda0eb80d12ad833b845095cb570faf2d5f2cc3250041e57744888c6934f9a12653ffca9f6c12457e212673c5bd4cd6d191825649c341511c49
@@ -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 HEAD refspec to jgit canonical form
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? || ref.to_s.upcase == 'HEAD'
22
+ return 'refs/heads/master' if ref.nil?
23
23
  result = ref.is_a?(Gollum::Git::Ref) ? ref.name : ref
24
- result = "refs/heads/#{result}" unless result =~ /^refs\/heads\//
25
- result
24
+ (result =~ /^refs\/heads\// || result.upcase == 'HEAD') ? result : "refs/heads/#{result}"
26
25
  end
27
26
 
28
27
  def self.sha?(str)
@@ -1,7 +1,7 @@
1
1
  module Gollum
2
2
  module Lib
3
3
  module Git
4
- VERSION = '0.6'
4
+ VERSION = '0.6.1'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gollum-rjgit_adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.6'
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: 2020-04-29 00:00:00.000000000 Z
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
@@ -20,8 +20,8 @@ dependencies:
20
20
  - !ruby/object:Gem::Version
21
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
  - - ">"
@@ -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
- rubyforge_project:
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.