gollum-rugged_adapter 0.99.1 → 0.99.2

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: 62f2f0d6560dcb5d317b61df375d139cb190b16c9af3ba3c1f54b03fa3cfc141
4
- data.tar.gz: a7670168ff8073d746be2595ce29cb8adf6f5b41c732e0c0c1c884542a8504ee
3
+ metadata.gz: ae443605ad0dd343310fee4b9bac502bc21654108468f91002a1686be978a587
4
+ data.tar.gz: 957d8466bed97f5287131cde9aa63a7f88629ace4363680c8c0d1b90e30775b7
5
5
  SHA512:
6
- metadata.gz: 6ffdbf17ec358fc35cb5b54e7566826c507d4405ba657e009bb77391997d1a58dc650360232f565889a6f470215bd112198a4d6357ffa1e03b37b253415bb961
7
- data.tar.gz: e7b85277ae334912092be5296dd0da660a7ba02ad1f4ad92a5f22c9f5c9fa5859a164d5af0573ba96f56a065cd13fd6c20e0ba99e7bf2cd77dd83ad80f0aed43
6
+ metadata.gz: d4f70708545e36a1b0695ee0ea02860ca60187439e1c23d506ba3b11cb7d902666c943d6f0abcce4ccb0c7c0c3374bb3b4dda444200bf3e57ca0ad32ec23b1ee
7
+ data.tar.gz: 7a1b3a517bf612f7dd019b68b31ee4e0cb0eae6a8dd282e14b6a09e511957239663ddd1e3a0075dfd97d0492c8967d1f3d11186574937e6836a50cea737e3674
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
- gem 'rake', '~> 10.4.2'
4
+ gem 'rake', '>= 12.3.3'
5
5
  gem 'adapter_specs', git: 'https://github.com/gollum/adapter_specs.git'
6
6
 
7
7
  group :test do
@@ -16,7 +16,6 @@ module Gollum
16
16
 
17
17
  DEFAULT_MIME_TYPE = "text/plain"
18
18
  class NoSuchShaFound < StandardError; end
19
- class PathApplyError < StandardError; end
20
19
 
21
20
  class Actor
22
21
 
@@ -609,9 +608,7 @@ module Gollum
609
608
 
610
609
  def diff(sha1, sha2, *paths)
611
610
  opts = paths.nil? ? {} : {:paths => paths}
612
- @repo.diff(sha1, sha2, opts).diff.patches.map do |patch|
613
- OpenStruct.new(:diff => patch.to_s.split("\n")[2..-1].join("\n").force_encoding("UTF-8")) # First remove two superfluous lines.
614
- end.reverse # Rugged seems to order the diffs differently than Grit, so reverse.
611
+ @repo.diff(sha1, sha2, opts).patch
615
612
  end
616
613
 
617
614
  def log(commit = 'refs/heads/master', path = nil, options = {})
@@ -1,7 +1,7 @@
1
1
  module Gollum
2
2
  module Lib
3
3
  module Git
4
- VERSION = '0.99.1'
4
+ VERSION = '0.99.2'
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.1
4
+ version: 0.99.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: 2020-03-12 00:00:00.000000000 Z
11
+ date: 2020-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rugged
@@ -86,8 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  requirements: []
89
- rubyforge_project:
90
- rubygems_version: 2.7.8
89
+ rubygems_version: 3.0.3
91
90
  signing_key:
92
91
  specification_version: 4
93
92
  summary: Adapter for Gollum to use Rugged (libgit2) at the backend.