gollum-rjgit_adapter 0.3.2-java → 0.3.3-java

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38cb364afc00c6e47e02f79beb6364f4e0d8ecb4
4
- data.tar.gz: b05da63abf09631bb57f68ecf47ddf2ff049e8ca
3
+ metadata.gz: 1105e9e2eea5dc935759159a65e7174d87ea77e9
4
+ data.tar.gz: ed69f26fcecac698b37deef76406c623d1bb3944
5
5
  SHA512:
6
- metadata.gz: 89178477356e3f6253acff2018d50b9b23e3ea3e3b1e6ae8b9b63f7d5d0da747d49393e76116c46564c0598bc8c54e044ee541fe041770b42b65a50f2e1dce93
7
- data.tar.gz: 12a3d90047b6db1444c8cf3d90a129cb817697a7941a96f7a3534f840d8942af035c5c6aa5391e5bc80c0dda3c0dcc5d9a94729217ca80fa07a1549985c7a069
6
+ metadata.gz: 129dea77497d59f464d6ae7694b672ef9616832f12db1fdc2f165736500dca69616b07fbc9af650d0a12d20874d26d7313f702c07749dcbfba227aaa8d40d022
7
+ data.tar.gz: 99293bd2fa23e96e89ae87958e6fa4c753ee0274a13e19bff6720d4fb3107a121bda21c70d27c68cdd3cf21bda4138fa3b970fc0d50e02968d2f5bdc6b4b985d
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
- gem 'rake', '~> 10.0.3'
4
+ gem 'rake', '~> 10.4.2'
5
5
 
6
6
  gem 'adapter_specs', :git => 'https://github.com/gollum/adapter_specs.git'
7
7
 
@@ -12,8 +12,8 @@ Gem::Specification.new do |s|
12
12
  s.summary = %q{Adapter for Gollum to use RJGit at the backend.}
13
13
  s.description = %q{Adapter for Gollum to use RJGit at the backend.}
14
14
 
15
- s.add_runtime_dependency "rjgit", "~> 4.0"
16
- s.add_development_dependency "rspec", "2.13.0"
15
+ s.add_runtime_dependency "rjgit", "~> 4.1"
16
+ s.add_development_dependency "rspec", "3.4.0"
17
17
 
18
18
  s.files = Dir['lib/**/*.rb'] + ["README.md", "Gemfile"]
19
19
  s.require_paths = ["lib"]
@@ -155,7 +155,7 @@ module Gollum
155
155
  def grep(query, options={})
156
156
  ref = Gollum::Git.canonicalize(options[:ref])
157
157
  blobs = []
158
- RJGit::Porcelain.ls_tree(@git.jrepo, nil, {:ref => ref, :recursive => true, :file_path => options[:path]}).each do |item|
158
+ RJGit::Porcelain.ls_tree(@git.jrepo, options[:path], ref, {:recursive => true}).each do |item|
159
159
  walk = RevWalk.new(@git.jrepo)
160
160
  blobs << RJGit::Blob.new(@git.jrepo, item[:mode], item[:path], walk.lookup_blob(ObjectId.from_string(item[:id]))) if item[:type] == 'blob'
161
161
  end
@@ -186,7 +186,7 @@ module Gollum
186
186
 
187
187
  def ls_files(query, options = {})
188
188
  ref = Gollum::Git.canonicalize(options[:ref])
189
- result = RJGit::Porcelain.ls_tree(@git.jrepo, nil, {:ref => ref, :recursive => true, :file_path => options[:path]}).select {|object| object[:type] == "blob" && !!(::File.basename(object[:path]) =~ /#{query}/i) }
189
+ result = RJGit::Porcelain.ls_tree(@git.jrepo, options[:path], ref, {:recursive => true}).select {|object| object[:type] == "blob" && !!(::File.basename(object[:path]) =~ /#{query}/i) }
190
190
  result.map do |r|
191
191
  r[:path]
192
192
  end
@@ -245,7 +245,7 @@ module Gollum
245
245
  def commit(message, parents = nil, actor = nil, last_tree = nil, ref = "refs/heads/master")
246
246
  ref = Gollum::Git.canonicalize(ref)
247
247
  actor = actor ? actor.actor : RJGit::Actor.new("Gollum", "gollum@wiki")
248
- parents.map!{|parent| parent.commit} if parents
248
+ parents = parents.map{|parent| parent.commit} if parents
249
249
  commit_data = @index.commit(message, actor, parents, ref)
250
250
  return false if !commit_data
251
251
  commit_data[2]
@@ -362,7 +362,7 @@ module Gollum
362
362
  end
363
363
 
364
364
  def lstree(sha, options={})
365
- entries = RJGit::Porcelain.ls_tree(@repo.jrepo, @repo.find(sha, :tree), {:recursive => options[:recursive]})
365
+ entries = RJGit::Porcelain.ls_tree(@repo.jrepo, nil, @repo.find(sha, :tree), {:recursive => options[:recursive]})
366
366
  entries.map! do |entry|
367
367
  entry[:mode] = entry[:mode].to_s(8)
368
368
  entry[:sha] = entry[:id]
@@ -385,7 +385,7 @@ module Gollum
385
385
  end
386
386
 
387
387
  end
388
-
388
+
389
389
  class Tree
390
390
 
391
391
  def initialize(tree)
@@ -397,7 +397,7 @@ module Gollum
397
397
  end
398
398
 
399
399
  def /(file)
400
- @tree.send(:/, file)
400
+ @tree.send(:/, file)
401
401
  end
402
402
 
403
403
  def blobs
@@ -1,7 +1,7 @@
1
1
  module Gollum
2
2
  module Lib
3
3
  module Git
4
- VERSION = '0.3.2'
4
+ VERSION = '0.3.3'
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.3.2
4
+ version: 0.3.3
5
5
  platform: java
6
6
  authors:
7
7
  - Bart Kamphorst, Dawa Ometto
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-31 00:00:00.000000000 Z
11
+ date: 2016-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rjgit
15
- version_requirements: !ruby/object:Gem::Requirement
15
+ requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '4.0'
20
- requirement: !ruby/object:Gem::Requirement
19
+ version: '4.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
21
23
  requirements:
22
24
  - - ~>
23
25
  - !ruby/object:Gem::Version
24
- version: '4.0'
25
- prerelease: false
26
- type: :runtime
26
+ version: '4.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
- version_requirements: !ruby/object:Gem::Requirement
29
+ requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.13.0
34
- requirement: !ruby/object:Gem::Requirement
33
+ version: 3.4.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
35
37
  requirements:
36
38
  - - '='
37
39
  - !ruby/object:Gem::Version
38
- version: 2.13.0
39
- prerelease: false
40
- type: :development
40
+ version: 3.4.0
41
41
  description: Adapter for Gollum to use RJGit at the backend.
42
42
  email:
43
43
  - repotag-dev@googlegroups.com
@@ -56,7 +56,7 @@ files:
56
56
  homepage: https://github.com/repotag/gollum-lib_rjgit_adapter
57
57
  licenses: []
58
58
  metadata: {}
59
- post_install_message:
59
+ post_install_message:
60
60
  rdoc_options: []
61
61
  require_paths:
62
62
  - lib
@@ -71,9 +71,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  requirements: []
74
- rubyforge_project:
75
- rubygems_version: 2.4.5
76
- signing_key:
74
+ rubyforge_project:
75
+ rubygems_version: 2.2.2
76
+ signing_key:
77
77
  specification_version: 4
78
78
  summary: Adapter for Gollum to use RJGit at the backend.
79
79
  test_files: []