jbox-gitolite 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gitolite.gemspec +1 -1
- data/lib/gitolite.rb +1 -1
- data/lib/gitolite/config.rb +1 -1
- data/lib/gitolite/version.rb +1 -1
- data/spec/gitolite_admin_spec.rb +18 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1d34e58c461358e45e656b0010599e9c38a3f39
|
4
|
+
data.tar.gz: ea3a1b7090e7bb575f06b9bc81818b715d2f1d95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37c0f9b48016346921c5397ea5b95dd1e2ee356f96f4d5400670ce4c2280379feffd39c74df00c68853acc6c93e217dc8b50594506bc164bbcdd302ff60bc0cb
|
7
|
+
data.tar.gz: be32a6b452143bb8a73a894e2a1c859390abcc19d1f2e9e5aab87e62fba6f61f89eafaabc70f8324f74d6587183a9d608cdfb8f99915e03e3fabf83998cd5a1f
|
data/gitolite.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
|
|
29
29
|
s.add_development_dependency "rspec_junit_formatter", "~> 0.1.6"
|
30
30
|
|
31
31
|
s.add_dependency "gitlab-grit", "~> 2.6.5"
|
32
|
-
s.add_dependency "
|
32
|
+
s.add_dependency "gratr19", "~> 0.4.4.1"
|
33
33
|
|
34
34
|
s.files = `git ls-files`.split("\n")
|
35
35
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
data/lib/gitolite.rb
CHANGED
data/lib/gitolite/config.rb
CHANGED
@@ -246,7 +246,7 @@ module Gitolite
|
|
246
246
|
# Builds a dependency tree from the groups in order to ensure all groups
|
247
247
|
# are defined before they are used
|
248
248
|
def build_groups_depgraph
|
249
|
-
dp = ::
|
249
|
+
dp = ::GRATR::Digraph.new
|
250
250
|
|
251
251
|
# Add each group to the graph
|
252
252
|
@groups.each_value do |group|
|
data/lib/gitolite/version.rb
CHANGED
data/spec/gitolite_admin_spec.rb
CHANGED
@@ -2,6 +2,7 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe Gitolite::GitoliteAdmin do
|
4
4
|
|
5
|
+
conf_dir = File.join(File.dirname(__FILE__), 'fixtures', 'configs')
|
5
6
|
output_dir = '/tmp'
|
6
7
|
# output_dir = File.join(File.dirname(File.dirname(__FILE__)), 'tmp')
|
7
8
|
|
@@ -32,4 +33,21 @@ describe Gitolite::GitoliteAdmin do
|
|
32
33
|
end
|
33
34
|
end
|
34
35
|
|
36
|
+
describe '#save' do
|
37
|
+
it 'should commit file to gitolite-admin repository' do
|
38
|
+
test_dir = File.join(output_dir, 'gitolite-admin-test')
|
39
|
+
opts = { :overwrite => true }
|
40
|
+
gl_admin = GitoliteAdmin.bootstrap(test_dir, opts)
|
41
|
+
|
42
|
+
c = Gitolite::Config.new(File.join(conf_dir, 'complicated.conf'))
|
43
|
+
c.filename = 'gitolite.conf'
|
44
|
+
|
45
|
+
gl_admin.config = c
|
46
|
+
gl_admin.save
|
47
|
+
|
48
|
+
new_file = File.join(test_dir, 'conf', c.filename)
|
49
|
+
expect(File.file?(new_file)).to be true
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
35
53
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jbox-gitolite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas Rodriguez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -165,19 +165,19 @@ dependencies:
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: 2.6.5
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
168
|
+
name: gratr19
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - ~>
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0.
|
173
|
+
version: 0.4.4.1
|
174
174
|
type: :runtime
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - ~>
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: 0.
|
180
|
+
version: 0.4.4.1
|
181
181
|
description: This gem is designed to provide a Ruby interface to the Gitolite Git
|
182
182
|
backend system. This gem aims to provide all management functionality that is available
|
183
183
|
via the gitolite-admin repository (like SSH keys, repository permissions, etc)
|