gitlab-gollum-rugged_adapter 0.4.4.3.gitlab.1 → 0.4.4.4.gitlab.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rugged_adapter/git_layer_rugged.rb +9 -9
- data/lib/rugged_adapter/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4d10b40dfc3f9b05288bc4d631dafc01ddf4142f1da56cd505117cf8079e7ce
|
4
|
+
data.tar.gz: 5b0305656d71c1498f032b101d0931e49176088fa71dafb09eaf17a700ccfd01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea63617341c3b8002c8f28dfee36fbe595a85d0bc01d21be2cb392cc1e749ce4057c0f383b42ab92c5ebc9db850a4ccfae2e108653ef783ce3d059ac15f4658f
|
7
|
+
data.tar.gz: 5d744363bd210f5b73b1874b1b65131f8caaac176a2f6077d76e319337400d35e35bd7e035260c09518e91ce82bedb28f2795d0aa256107f66b6de8ccf7ea798
|
@@ -56,7 +56,7 @@ module Gollum
|
|
56
56
|
|
57
57
|
def self.create(repo, options)
|
58
58
|
blob = repo.git.lookup(options[:id])
|
59
|
-
self.new(blob, options)
|
59
|
+
self.new(blob, **options)
|
60
60
|
end
|
61
61
|
|
62
62
|
def initialize(blob, options = {})
|
@@ -210,7 +210,7 @@ module Gollum
|
|
210
210
|
@repo.checkout_head(**options)
|
211
211
|
else
|
212
212
|
ref = "refs/heads/#{ref}" unless ref =~ /^refs\/heads\//
|
213
|
-
@repo.checkout_tree(sha_from_ref(ref), options)
|
213
|
+
@repo.checkout_tree(sha_from_ref(ref), **options)
|
214
214
|
end
|
215
215
|
end
|
216
216
|
|
@@ -222,13 +222,13 @@ module Gollum
|
|
222
222
|
:follow => false,
|
223
223
|
:skip_merges => false
|
224
224
|
}
|
225
|
-
options = default_options.merge(options)
|
225
|
+
options = default_options.merge(**options)
|
226
226
|
options[:limit] ||= 0
|
227
227
|
options[:offset] ||= 0
|
228
228
|
sha = sha_from_ref(ref)
|
229
229
|
return [] if sha.nil?
|
230
230
|
begin
|
231
|
-
build_log(sha, options)
|
231
|
+
build_log(sha, **options)
|
232
232
|
rescue Rugged::OdbError, Rugged::InvalidError, Rugged::ReferenceError
|
233
233
|
# Return an empty array if the ref wasn't found
|
234
234
|
[]
|
@@ -236,7 +236,7 @@ module Gollum
|
|
236
236
|
end
|
237
237
|
|
238
238
|
def versions_for_path(path = nil, ref = nil, options = {})
|
239
|
-
log(ref, path, options)
|
239
|
+
log(ref, path, **options)
|
240
240
|
end
|
241
241
|
|
242
242
|
def ls_files(query, options = {})
|
@@ -285,13 +285,13 @@ module Gollum
|
|
285
285
|
|
286
286
|
def push(remote, branches = nil, options = {})
|
287
287
|
branches = [branches].flatten.map {|branch| "refs/heads/#{branch}" unless branch =~ /^refs\/heads\//}
|
288
|
-
@repo.push(remote, branches, options)
|
288
|
+
@repo.push(remote, branches, **options)
|
289
289
|
end
|
290
290
|
|
291
291
|
def pull(remote, branches = nil, options = {})
|
292
292
|
branches = [branches].flatten.map {|branch| "refs/heads/#{branch}" unless branch =~ /^refs\/heads\//}
|
293
293
|
r = @repo.remotes[remote]
|
294
|
-
r.fetch(branches, options)
|
294
|
+
r.fetch(branches, **options)
|
295
295
|
branches.each do |branch|
|
296
296
|
branch_name = branch.match(/^refs\/heads\/(.*)/)[1]
|
297
297
|
remote_name = remote.match(/^(refs\/heads\/)?(.*)/)[2]
|
@@ -305,7 +305,7 @@ module Gollum
|
|
305
305
|
tree: index.write_tree(@repo),
|
306
306
|
update_ref: branch
|
307
307
|
}
|
308
|
-
Rugged::Commit.create @repo, options
|
308
|
+
Rugged::Commit.create @repo, **options
|
309
309
|
@repo.checkout(@repo.head.name, :strategy => :force) if !@repo.bare? && branch == @repo.head.name
|
310
310
|
end
|
311
311
|
end
|
@@ -603,7 +603,7 @@ module Gollum
|
|
603
603
|
end
|
604
604
|
|
605
605
|
def log(commit = 'refs/heads/master', path = nil, options = {})
|
606
|
-
git.log(commit, path, options)
|
606
|
+
git.log(commit, path, **options)
|
607
607
|
end
|
608
608
|
|
609
609
|
def lstree(sha, options = {})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-gollum-rugged_adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.4.
|
4
|
+
version: 0.4.4.4.gitlab.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bart Kamphorst, Dawa Ometto
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rugged
|
@@ -68,7 +68,7 @@ homepage: https://gitlab.com/gitlab-org/gitlab-gollum-rugged_adapter
|
|
68
68
|
licenses:
|
69
69
|
- MIT
|
70
70
|
metadata: {}
|
71
|
-
post_install_message:
|
71
|
+
post_install_message:
|
72
72
|
rdoc_options: []
|
73
73
|
require_paths:
|
74
74
|
- lib
|
@@ -83,8 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: 1.3.1
|
85
85
|
requirements: []
|
86
|
-
rubygems_version: 3.
|
87
|
-
signing_key:
|
86
|
+
rubygems_version: 3.1.4
|
87
|
+
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: Adapter for Gollum to use Rugged (libgit2) at the backend.
|
90
90
|
test_files: []
|