gitlab-gollum-rugged_adapter 0.4.4.3.gitlab.1 → 0.4.4.4.gitlab.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6b1303d0b8d7932f85d730fe280edff577c0d1dc3fe54699778e7db553a34dc3
4
- data.tar.gz: c291c4ed819401f11eeddc7af37a332e7b429133f79fea6c4814ecbcbf43e108
3
+ metadata.gz: f4d10b40dfc3f9b05288bc4d631dafc01ddf4142f1da56cd505117cf8079e7ce
4
+ data.tar.gz: 5b0305656d71c1498f032b101d0931e49176088fa71dafb09eaf17a700ccfd01
5
5
  SHA512:
6
- metadata.gz: 8b33ca987b9006c581659b6ccf674c8819202de3b065bab35eee125b58a2d921894be1b7b391460caea74e7d488216fc5fed34945668c24ab1d149c00bec7734
7
- data.tar.gz: 843bf6be50e90c77c5da6bd93d67ccd7671c73314cf58a0e0f400d32e645bcf497194fccde8cccec3ff1ef1bd1e196fbea9d7a38f1e018a306dbe369da8c5dd8
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 = {})
@@ -3,7 +3,7 @@
3
3
  module Gollum
4
4
  module Lib
5
5
  module Git
6
- VERSION = '0.4.4.3.gitlab.1'
6
+ VERSION = '0.4.4.4.gitlab.1'
7
7
  end
8
8
  end
9
9
  end
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.3.gitlab.1
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: 2020-09-15 00:00:00.000000000 Z
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.0.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: []