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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8242365723c05acd430cfdaa34f8f18e201fe860
4
- data.tar.gz: 767660c5aa70ce7f4a3a8df74164ec667af0f289
3
+ metadata.gz: d1d34e58c461358e45e656b0010599e9c38a3f39
4
+ data.tar.gz: ea3a1b7090e7bb575f06b9bc81818b715d2f1d95
5
5
  SHA512:
6
- metadata.gz: a79d5689bede554598122604aacc28d7740cc9de1d13c4e7c8a9c3def8ade3363b7f401a172f6b71b573e62a86733cfbf6c9bfc8f88f16e2355b55f4d611dc8b
7
- data.tar.gz: 3ae1bf550e36a15a22302d25b84af0dfb963506bfcf55bc0d02cf6623e3139e552666bcffd335d8fc4f77b9b9f8b3bb0e6e22e6cd30ddd9dbd8adb77f218c22c
6
+ metadata.gz: 37c0f9b48016346921c5397ea5b95dd1e2ee356f96f4d5400670ce4c2280379feffd39c74df00c68853acc6c93e217dc8b50594506bc164bbcdd302ff60bc0cb
7
+ data.tar.gz: be32a6b452143bb8a73a894e2a1c859390abcc19d1f2e9e5aab87e62fba6f61f89eafaabc70f8324f74d6587183a9d608cdfb8f99915e03e3fabf83998cd5a1f
@@ -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 "plexus", "~> 0.5.10"
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")
@@ -1,6 +1,6 @@
1
1
  module Gitolite
2
2
  require 'grit'
3
- require 'plexus'
3
+ require 'gratr'
4
4
  require 'gitolite/gitolite_admin'
5
5
  require 'gitolite/dirty_proxy'
6
6
  require 'gitolite/ssh_key'
@@ -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 = ::Plexus::Digraph.new
249
+ dp = ::GRATR::Digraph.new
250
250
 
251
251
  # Add each group to the graph
252
252
  @groups.each_value do |group|
@@ -1,3 +1,3 @@
1
1
  module Gitolite
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
@@ -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.1
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-22 00:00:00.000000000 Z
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: plexus
168
+ name: gratr19
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - ~>
172
172
  - !ruby/object:Gem::Version
173
- version: 0.5.10
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.5.10
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)