gollum-rjgit_adapter 0.1-java → 0.2-java

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
  SHA1:
3
- metadata.gz: 4a8a18819e637ec54da1fb7eff7701a710ce2a8b
4
- data.tar.gz: 7711a47179c79831e2ebbf3b2188933b3a47ec35
3
+ metadata.gz: b884a5592a7e97ea97c2e046a03d6d795c461912
4
+ data.tar.gz: 85f5a05ec904490252754708cc4f81dcb5603e6c
5
5
  SHA512:
6
- metadata.gz: 35e83bd21391eb164ffbf70c478d33c4ddf42e4632d9177a85897dc2f2f15f2be00b981ece54e4a10c36dd15e2156e8be98f024905d2b8c36e0fcc7a326c1fb8
7
- data.tar.gz: 1073d9557fdb8706000fd46df10902a2f45a66e2c65d06b1955a969ea3c148cb2e7a1db0581a6d0971ef42ffa31a99b13236517e238d27adcd252acc10e10c0c
6
+ metadata.gz: 4371b80e118cb5d8d5f52709341ebe274e39436c6f75dd605c11bee719969d2174ffce9667581dc8c57db585cacc1d22d321134e7e6463a87b34af59a290adfb
7
+ data.tar.gz: b94acb17eaac0adc51fbaddbdabfacea462a042d11e2976970a90796cce433dcec6b30288e677b0d853fddb6384df629be4be55b6a970006839c4d6129671765
@@ -203,7 +203,7 @@ module Gollum
203
203
  @git.cat_file(options, sha)
204
204
  end
205
205
 
206
- def log(path = nil, ref = nil, options = nil)
206
+ def log(path = nil, ref = nil, options = {})
207
207
  ref = Gollum::Git.canonicalize(ref)
208
208
  @git.log(path, ref, options).map {|commit| Gollum::Git::Commit.new(commit)}
209
209
  end
@@ -284,10 +284,10 @@ module Gollum
284
284
 
285
285
  class Diff
286
286
  def initialize(diff)
287
- @diff = diff
287
+ @diff = diff[:patch].split("\n")[2..-1].join("\n")
288
288
  end
289
289
  def diff
290
- @diff[:patch]
290
+ @diff
291
291
  end
292
292
  end
293
293
 
@@ -377,7 +377,7 @@ module Gollum
377
377
  end
378
378
 
379
379
  def diff(sha1, sha2, path = nil)
380
- RJGit::Porcelain.diff(@repo, {:old_rev => sha2, :new_rev => sha1, :file_path => path, :patch => true}).map {|d| Diff.new(d)}
380
+ RJGit::Porcelain.diff(@repo, {:old_rev => sha1, :new_rev => sha2, :file_path => path, :patch => true}).map {|d| Diff.new(d)}
381
381
  end
382
382
 
383
383
  end
@@ -1,7 +1,7 @@
1
1
  module Gollum
2
2
  module Lib
3
3
  module Git
4
- VERSION = '0.1'
4
+ VERSION = '0.2'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gollum-rjgit_adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  platform: java
6
6
  authors:
7
7
  - Bart Kamphorst, Dawa Ometto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-09 00:00:00.000000000 Z
11
+ date: 2015-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rjgit
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ~>
18
- - !ruby/object:Gem::Version
19
- version: '0.3'
20
14
  requirement: !ruby/object:Gem::Requirement
21
15
  requirements:
22
16
  - - ~>
23
17
  - !ruby/object:Gem::Version
24
18
  version: '0.3'
19
+ name: rjgit
25
20
  prerelease: false
26
21
  type: :runtime
27
- - !ruby/object:Gem::Dependency
28
- name: rspec
29
22
  version_requirements: !ruby/object:Gem::Requirement
30
23
  requirements:
31
- - - '='
24
+ - - ~>
32
25
  - !ruby/object:Gem::Version
33
- version: 2.13.0
26
+ version: '0.3'
27
+ - !ruby/object:Gem::Dependency
34
28
  requirement: !ruby/object:Gem::Requirement
35
29
  requirements:
36
30
  - - '='
37
31
  - !ruby/object:Gem::Version
38
32
  version: 2.13.0
33
+ name: rspec
39
34
  prerelease: false
40
35
  type: :development
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 2.13.0
41
41
  description: Adapter for Gollum to use RJGit at the backend.
42
42
  email:
43
43
  - repotag-dev@googlegroups.com