gollum-rugged_adapter 1.0 → 1.1

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: 41048f9ef000824ddc69c6ea7d19180a084196555a23f3b8b7b27f478b202a75
4
- data.tar.gz: 9e138f803bf6e0fded927550774883bee65f7a5ca2c509ed8b6b84b2c8209add
3
+ metadata.gz: 37cb3c6ab907f0e07284c8e86a4846fbc50835b1077ec78317ec8c6fe1338b8a
4
+ data.tar.gz: 4d55049d3ef2801916730be8544843a301f692cd077795cce15048c605a4ea3b
5
5
  SHA512:
6
- metadata.gz: 37b12c6de2893ca81c7e16c4c6046b08a85fcc9fcd5d54cb788b6caf391807218f502d0f39f2e3dacf1fe40818ce6b0a3d0ce80e4225b287dc7e22efa3f92c30
7
- data.tar.gz: 545c73d272a832edfdba8fbe95c6f29763add83212a3ed37b2ca0e04796d32c362158bcea30b9c576876a61b6ef44b1135cf9bd7e255d12740c8e34ac5853236
6
+ metadata.gz: 1564a85095a897ed8b4acb0fa5ccbdbd502ddde945945687edea68ddabfae008e0a566b0198ade261da1d49d1f7c763f2842018a1751b857a0a823773c15cbd7
7
+ data.tar.gz: 95a38d72f09c71de0145084f8afeb7ef97ee204967794fe97c30b0528f6c7a8a207ea6271f3e92f35c883226c02d6b901cddbeb8ef968bb9947dad29c66c68de
data/README.md CHANGED
@@ -4,9 +4,7 @@
4
4
 
5
5
  ## DESCRIPTION
6
6
 
7
- Adapter for [gollum](https://github.com/gollum/gollum) to use [Rugged](https://github.com/libgit2/rugged) (libgit2) at the backend. See the [gollum wiki](https://github.com/gollum/gollum/wiki/Git-adapters) for more information on adapters. Currently gollum uses grit as a backend by default, but since that is abandonware, the plan is to make this adapter the default in the future.
8
-
9
- **Please note that this adapter is currently in beta. It passes the unit tests for gollum and [gollum-lib](https://github.com/gollum/gollum-lib), but it needs more comprehensive testing. Please [report any issues](https://github.com/gollum/rugged_adapter/issues) that you encounter.**
7
+ Adapter for [gollum](https://github.com/gollum/gollum) to use [Rugged](https://github.com/libgit2/rugged) (libgit2) at the backend. See the [gollum wiki](https://github.com/gollum/gollum/wiki/Git-adapters) for more information on adapters. Currently this is the default adapter for gollum.
10
8
 
11
9
  ## USAGE
12
10
 
@@ -235,7 +235,7 @@ module Gollum
235
235
  @repo.checkout_head(**options)
236
236
  else
237
237
  ref = "refs/heads/#{ref}" unless ref =~ /^refs\/heads\//
238
- @repo.checkout_tree(sha_from_ref(ref), options)
238
+ @repo.checkout_tree(sha_from_ref(ref), **options)
239
239
  end
240
240
  end
241
241
 
@@ -310,13 +310,13 @@ module Gollum
310
310
 
311
311
  def push(remote, branches = nil, options = {})
312
312
  branches = [branches].flatten.map {|branch| "refs/heads/#{branch}" unless branch =~ /^refs\/heads\//}
313
- @repo.push(remote, branches, options)
313
+ @repo.push(remote, branches, **options)
314
314
  end
315
315
 
316
316
  def pull(remote, branches = nil, options = {})
317
317
  branches = [branches].flatten.map {|branch| "refs/heads/#{branch}" unless branch =~ /^refs\/heads\//}
318
318
  r = @repo.remotes[remote]
319
- r.fetch(branches, options)
319
+ r.fetch(branches, **options)
320
320
  branches.each do |branch|
321
321
  branch_name = branch.match(/^refs\/heads\/(.*)/)[1]
322
322
  remote_name = remote.match(/^(refs\/heads\/)?(.*)/)[2]
@@ -490,7 +490,7 @@ module Gollum
490
490
  commit_options[:message] = message.to_s
491
491
  commit_options[:parents] = parents
492
492
  commit_options[:update_ref] = head
493
- Rugged::Commit.create(@rugged_repo, commit_options)
493
+ Rugged::Commit.create(@rugged_repo, **commit_options)
494
494
  end
495
495
 
496
496
  def tree
@@ -619,7 +619,7 @@ module Gollum
619
619
  end
620
620
 
621
621
  def log(commit = 'refs/heads/master', path = nil, options = {})
622
- git.log(commit, path, options)
622
+ git.log(commit, path, **options)
623
623
  end
624
624
 
625
625
  def lstree(sha, options = {})
@@ -1,7 +1,7 @@
1
1
  module Gollum
2
2
  module Lib
3
3
  module Git
4
- VERSION = '1.0'
4
+ VERSION = '1.1'
5
5
  end
6
6
  end
7
7
  end
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  s.description = %q{Adapter for Gollum to use Rugged (libgit2) at the backend.}
14
14
  s.license = "MIT"
15
15
 
16
- s.add_runtime_dependency 'rugged', '~> 0.99'
17
- s.add_runtime_dependency 'mime-types', '>= 1.15'
16
+ s.add_runtime_dependency 'rugged', '~> 1.1.0'
17
+ s.add_runtime_dependency 'mime-types', '~> 1.15'
18
18
  s.add_development_dependency 'rspec', "3.4.0"
19
19
 
20
20
  s.files = Dir['lib/**/*.rb'] + ["README.md", "Gemfile"]
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: '1.0'
4
+ version: '1.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-04-29 00:00:00.000000000 Z
11
+ date: 2021-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rugged
@@ -16,26 +16,26 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.99'
19
+ version: 1.1.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.99'
26
+ version: 1.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mime-types
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.15'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.15'
41
41
  - !ruby/object:Gem::Dependency
@@ -71,7 +71,7 @@ homepage: https://github.com/gollum/rugged_adapter
71
71
  licenses:
72
72
  - MIT
73
73
  metadata: {}
74
- post_install_message:
74
+ post_install_message:
75
75
  rdoc_options: []
76
76
  require_paths:
77
77
  - lib
@@ -86,8 +86,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  requirements: []
89
- rubygems_version: 3.0.3
90
- signing_key:
89
+ rubygems_version: 3.1.4
90
+ signing_key:
91
91
  specification_version: 4
92
92
  summary: Adapter for Gollum to use Rugged (libgit2) at the backend.
93
93
  test_files: []