gollum-rugged_adapter 0.4.1 → 0.4.2
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 +4 -4
- data/Gemfile +2 -2
- data/lib/rugged_adapter/git_layer_rugged.rb +9 -6
- data/lib/rugged_adapter/version.rb +1 -1
- data/rugged_adapter.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12cfa59833bced5e44e0b8614bd462d6ea77f507
|
|
4
|
+
data.tar.gz: 78c68ffc00a8ffc932991d96803451c04711c4bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 55edc8abf9b863d106fa4dff666b4001e6eb55cb940f76bfd836ab76d9f76d339009f9a91499609d014d1647a50d37bcdf0a1208676dd53cdd80c2df2903bed0
|
|
7
|
+
data.tar.gz: bae5cbac9ac4db995267143851a23ed93d0a0348b776554061c114a064f13d3d291ccc5de058cd0b40d27a94aba9f62c1d52a21ea2c814c7349b7a9f15fea236
|
data/Gemfile
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
source 'https://rubygems.org'
|
|
2
2
|
|
|
3
3
|
gemspec
|
|
4
|
-
gem 'rake', '~> 10.
|
|
5
|
-
gem 'adapter_specs', :
|
|
4
|
+
gem 'rake', '~> 10.4.2'
|
|
5
|
+
gem 'adapter_specs', git: 'https://github.com/gollum/adapter_specs.git'
|
|
6
6
|
|
|
7
7
|
group :test do
|
|
8
8
|
gem "simplecov"
|
|
@@ -189,7 +189,12 @@ module Gollum
|
|
|
189
189
|
def apply_patch(head_sha = 'HEAD', patch=nil)
|
|
190
190
|
false # Rewrite gollum-lib's revert so that it doesn't require a direct equivalent of Grit's apply_patch
|
|
191
191
|
end
|
|
192
|
-
|
|
192
|
+
|
|
193
|
+
def revert(path, sha1, sha2, ref)
|
|
194
|
+
# FIXME: See https://github.com/gollum/grit_adapter/pull/14
|
|
195
|
+
fail NotImplementedError
|
|
196
|
+
end
|
|
197
|
+
|
|
193
198
|
def checkout(path, ref = 'HEAD', options = {})
|
|
194
199
|
path = path.nil? ? path : [path]
|
|
195
200
|
options = options.merge({:paths => path, :strategy => :force})
|
|
@@ -223,8 +228,6 @@ module Gollum
|
|
|
223
228
|
end
|
|
224
229
|
|
|
225
230
|
def versions_for_path(path = nil, ref = nil, options = {})
|
|
226
|
-
options.delete :max_count
|
|
227
|
-
options.delete :skip
|
|
228
231
|
log(ref, path, options)
|
|
229
232
|
end
|
|
230
233
|
|
|
@@ -281,7 +284,6 @@ module Gollum
|
|
|
281
284
|
branches = [branches].flatten.map {|branch| "refs/heads/#{branch}" unless branch =~ /^refs\/heads\//}
|
|
282
285
|
r = @repo.remotes[remote]
|
|
283
286
|
r.fetch(branches, options)
|
|
284
|
-
r.save
|
|
285
287
|
branches.each do |branch|
|
|
286
288
|
branch_name = branch.match(/^refs\/heads\/(.*)/)[1]
|
|
287
289
|
remote_name = remote.match(/^(refs\/heads\/)?(.*)/)[2]
|
|
@@ -452,6 +454,7 @@ module Gollum
|
|
|
452
454
|
actor = Gollum::Git::Actor.default_actor if actor.nil?
|
|
453
455
|
commit_options[:tree] = @index.write_tree
|
|
454
456
|
commit_options[:author] = actor.to_h
|
|
457
|
+
commit_options[:committer] = actor.to_h
|
|
455
458
|
commit_options[:message] = message.to_s
|
|
456
459
|
commit_options[:parents] = parents
|
|
457
460
|
commit_options[:update_ref] = head
|
|
@@ -479,7 +482,7 @@ module Gollum
|
|
|
479
482
|
|
|
480
483
|
def get_parents(parents, head)
|
|
481
484
|
if parents
|
|
482
|
-
parents.map
|
|
485
|
+
parents.map{|parent| parent.commit}
|
|
483
486
|
elsif ref = @rugged_repo.references[head]
|
|
484
487
|
ref = ref.target
|
|
485
488
|
ref = ref.target if ref.respond_to?(:target)
|
|
@@ -652,4 +655,4 @@ module Gollum
|
|
|
652
655
|
end
|
|
653
656
|
|
|
654
657
|
end
|
|
655
|
-
end
|
|
658
|
+
end
|
data/rugged_adapter.gemspec
CHANGED
|
@@ -13,9 +13,9 @@ 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.
|
|
16
|
+
s.add_runtime_dependency 'rugged', '~> 0.24.0', '>=0.21.3'
|
|
17
17
|
s.add_runtime_dependency 'mime-types', '>= 1.15'
|
|
18
|
-
s.add_development_dependency "rspec", "
|
|
18
|
+
s.add_development_dependency "rspec", "3.4.0"
|
|
19
19
|
|
|
20
20
|
s.files = Dir['lib/**/*.rb'] + ["README.md", "Gemfile"]
|
|
21
21
|
s.require_paths = ["lib"]
|
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.4.
|
|
4
|
+
version: 0.4.2
|
|
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:
|
|
11
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rugged
|
|
@@ -16,7 +16,7 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - ~>
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 0.
|
|
19
|
+
version: 0.24.0
|
|
20
20
|
- - '>='
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
22
|
version: 0.21.3
|
|
@@ -26,7 +26,7 @@ dependencies:
|
|
|
26
26
|
requirements:
|
|
27
27
|
- - ~>
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: 0.
|
|
29
|
+
version: 0.24.0
|
|
30
30
|
- - '>='
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 0.21.3
|
|
@@ -50,14 +50,14 @@ dependencies:
|
|
|
50
50
|
requirements:
|
|
51
51
|
- - '='
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version:
|
|
53
|
+
version: 3.4.0
|
|
54
54
|
type: :development
|
|
55
55
|
prerelease: false
|
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements:
|
|
58
58
|
- - '='
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version:
|
|
60
|
+
version: 3.4.0
|
|
61
61
|
description: Adapter for Gollum to use Rugged (libgit2) at the backend.
|
|
62
62
|
email:
|
|
63
63
|
- repotag-dev@googlegroups.com
|