gollum-grit_adapter 1.0.0 → 1.0.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
  SHA1:
3
- metadata.gz: 43063f00c4614b243d47134821f054cdcbed3690
4
- data.tar.gz: 365eb5e0186d10f337313ca04568959fd9a231f2
3
+ metadata.gz: 686ddaf10e33923c3255a114279b9969b601fa2a
4
+ data.tar.gz: 6067e9acb38ef96d169939447ead8715d88340fd
5
5
  SHA512:
6
- metadata.gz: 3bf48e19853d1e7940bae14976b280e491dd1a9aed110805ca5f72cd687b09a585b2c662ad88d32ecfecdeafbddd49d0f12ab0a9b8a646002d8553078d9c2e0f
7
- data.tar.gz: 364f9d2c333905b48fd6117a70a2599442d433f68f3d2e129f07029f3e3eabc25d60b3672e6fa684eeffe0903a616e9e820757a61b95b355b83318f33c997bae
6
+ metadata.gz: 51992b0620c12c45aaf3c586f798c64ac80ac805156bbe197311c892551f555afd07869bbb31ebec1a303bfe6f3940cc6990649b0b14f4231f4a9cfcb1b90218
7
+ data.tar.gz: 553545f141fc16dca610aeb82eaa62887227d7ff380f765ad3554ea28a8cfc374a7df36ad4eb89f8c9e50b9a136ee316a0272144d9d736142417117d66f4869a
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
 
@@ -127,8 +127,9 @@ module Gollum
127
127
  # method signatures.
128
128
  class Git
129
129
 
130
- def initialize(git)
130
+ def initialize(git, repo_bare = false)
131
131
  @git = git
132
+ @repo_bare = repo_bare
132
133
  end
133
134
 
134
135
  def exist?
@@ -142,7 +143,7 @@ module Gollum
142
143
  query = Shellwords.join(query)
143
144
  args = [{}, '-I', '-i', '-c', query, ref, '--']
144
145
  args << options[:path] if options[:path]
145
- result = @git.grep(*args).split("\n")
146
+ result = @git.native(:grep, *args).split("\n")
146
147
  result.map do |line|
147
148
  branch_and_name, _, count = line.rpartition(":")
148
149
  branch, _, name = branch_and_name.partition(':')
@@ -223,7 +224,7 @@ module Gollum
223
224
  end
224
225
 
225
226
  def repo
226
- @repo ||= Grit::Repo.new(@git.git_dir)
227
+ @repo ||= Grit::Repo.new(@git.git_dir, {:is_bare => @repo_bare})
227
228
  end
228
229
 
229
230
  end
@@ -310,7 +311,7 @@ module Gollum
310
311
  end
311
312
 
312
313
  def git
313
- @git ||= Gollum::Git::Git.new(@repo.git)
314
+ @git ||= Gollum::Git::Git.new(@repo.git, bare)
314
315
  end
315
316
 
316
317
  def commit(id)
@@ -1,7 +1,7 @@
1
1
  module Gollum
2
2
  module Lib
3
3
  module Git
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
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-grit_adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
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: 2015-04-01 00:00:00.000000000 Z
11
+ date: 2016-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitlab-grit
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - '='
38
38
  - !ruby/object:Gem::Version
39
- version: 2.13.0
39
+ version: 3.4.0
40
40
  type: :development
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - '='
45
45
  - !ruby/object:Gem::Version
46
- version: 2.13.0
46
+ version: 3.4.0
47
47
  description: Adapter for Gollum to use Grit at the backend.
48
48
  email:
49
49
  - repotag-dev@googlegroups.com