gollum-rugged_adapter 0.99.4 → 0.99.6

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: e26a1062990e5dae1e42c6f0b55b964b5bc39246fc45ba091556cf3638e35fa6
4
- data.tar.gz: 6b7163ae78eb0fd4db16a185994116532da4887bd3d8c5da023f6f27e5d1406c
3
+ metadata.gz: b52a878c106ae3c5aee6eb2871ddf060117c6eaaff0a33a101b29704be75e9b9
4
+ data.tar.gz: f652fe0afa40f2e2bd93f823d813afe5d4dc218b5f52754c09d3899d715966bd
5
5
  SHA512:
6
- metadata.gz: 184dcbda389bd30dd6548f1d66927c6805cea668b50bf545eff349ea474823f0b6408703005c1748a885049bf0e1d3c49686711913817dbd1044b6fcec931929
7
- data.tar.gz: fa41ab8888be111f340362fb7c4bc09d3cfb8f270cc84f967570d0557fc6e1f2a605ebe9801d019c6ac6a93d4e39bc2c167d2909497b45ef13d5c80354120100
6
+ metadata.gz: 43e6d20d1c1959208331dd36643e6f2384b72e530fdfc09d13bdffee5ef69734924bd12244f04b2588fc66ab80f33b8aaebe87a039b3001a2e93c6dca3d35d9c
7
+ data.tar.gz: 43cb1739e0b909fae184a5857dd7971d0582e9b3a883df7b6fbf49d00edcbca0bc458399f73e94a8984767ea6651abfbaa2e18460a505b33675e979487f73503
@@ -126,6 +126,10 @@ module Gollum
126
126
  @stats ||= build_stats
127
127
  end
128
128
 
129
+ def parent
130
+ @commit.parents.empty? ? nil : Gollum::Git::Commit.new(@commit.parents.first)
131
+ end
132
+
129
133
  private
130
134
 
131
135
  def build_stats
@@ -227,7 +231,7 @@ module Gollum
227
231
  path = path.nil? ? path : [path]
228
232
  options = options.merge({:paths => path, :strategy => :force})
229
233
  if ref == 'HEAD'
230
- @repo.checkout_head(options)
234
+ @repo.checkout_head(**options)
231
235
  else
232
236
  ref = "refs/heads/#{ref}" unless ref =~ /^refs\/heads\//
233
237
  @repo.checkout_tree(sha_from_ref(ref), options)
@@ -559,7 +563,7 @@ module Gollum
559
563
  class Repo
560
564
 
561
565
  def initialize(path, options)
562
- @repo = Rugged::Repository.new(path, options)
566
+ @repo = Rugged::Repository.new(path, **options)
563
567
  end
564
568
 
565
569
  def self.init(path)
@@ -1,7 +1,7 @@
1
1
  module Gollum
2
2
  module Lib
3
3
  module Git
4
- VERSION = '0.99.4'
4
+ VERSION = '0.99.6'
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-rugged_adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.99.4
4
+ version: 0.99.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bart Kamphorst, Dawa Ometto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-15 00:00:00.000000000 Z
11
+ date: 2020-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rugged