dtk-common 0.5.13 → 0.5.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/lib/dsl/directory_parser.rb +4 -0
- data/lib/dtk-common/version.rb +1 -1
- data/lib/gitolite/grit/adapter.rb +1 -1
- data/lib/gitolite/repo.rb +11 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
YjljN2ExMDlhNmM4NDM5ZjBiNDQ3OTdlZDMwZjZjMTc4N2M3ZDA2ZQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 13783d5c73bf557b856009ce7c98edcc0ef26b77
|
4
|
+
data.tar.gz: 3e9754190e73bd2dfe1c8a6c90ac2fed43874b5c
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
NDhiZmUzYWYyZTgyZmU3M2RmMjQ3OWMwYzcyYmUxZGJmNzY1M2ExNDgxNmMw
|
11
|
-
ZWU4OGU4NDBlNzllNzJiNDdhYjY3NjNkNDcwMTE4NWM1NmRhZjg=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NmFlNmFmZTQ0YzA3NmQ2OGIzYjdiYzg2NTE5MDg2MDM3NjNhMzI1MWMyN2Y1
|
14
|
-
Njg5Nzk3MTU5MWUzNjcxMDFiZGJhOWQ5NTBiNWIyMjljZjA0MmZiMGExMjk4
|
15
|
-
MjllNDJkOTliMWQwYjRlNDE5ZmIwMjA0Mjc0YTlmYmM5MmYyNWM=
|
6
|
+
metadata.gz: f0e59490e35a57d83efe9710c421507bea42afcf26dfa8ecf1708e19f120c4ef5826dbae6a11866000b62881b87e39beeb5698995eb5128a2e73ba766e817909
|
7
|
+
data.tar.gz: 456b39d34c1f7c38e9976260fed915f76d9fe0bc9f7e37ec423abf3c436825104e134f706aeb4c1c4116f67c9f1631674b42297820ec96bdb9a2d9d8d592143b
|
data/lib/dsl/directory_parser.rb
CHANGED
@@ -16,6 +16,10 @@ module DtkCommon
|
|
16
16
|
DirectoryParserMethods.include?(method_name)
|
17
17
|
end
|
18
18
|
|
19
|
+
def file_content(rel_file_path)
|
20
|
+
get_content(rel_file_path)
|
21
|
+
end
|
22
|
+
|
19
23
|
#if file_type is given returns DtkCommon::DSL::FileParser::OutputArray
|
20
24
|
#otherwise returns hash at top level taht is indexed by file types found
|
21
25
|
def parse_directory(file_type=nil,opts={})
|
data/lib/dtk-common/version.rb
CHANGED
@@ -15,7 +15,7 @@ module Gitolite
|
|
15
15
|
rescue ::Grit::NoSuchPathError
|
16
16
|
repo_name = repo_dir.split("/").last.gsub("\.git","")
|
17
17
|
#TODO: change to usage error
|
18
|
-
raise
|
18
|
+
raise ::Gitolite::NotFound, "Repo (#{repo_name}) - path '#{repo_dir}' does not exist"
|
19
19
|
rescue => e
|
20
20
|
raise e
|
21
21
|
end
|
data/lib/gitolite/repo.rb
CHANGED
@@ -118,7 +118,7 @@ module Gitolite
|
|
118
118
|
|
119
119
|
def commit_changes(override_commit_message = nil)
|
120
120
|
unless @commit_messages.empty?
|
121
|
-
content =
|
121
|
+
content = configuration_content()
|
122
122
|
validate_gitolite_conf_file(content)
|
123
123
|
|
124
124
|
commit_msg = override_commit_message || @commit_messages.join(', ')
|
@@ -132,12 +132,20 @@ module Gitolite
|
|
132
132
|
end
|
133
133
|
end
|
134
134
|
|
135
|
-
def file_content()
|
136
|
-
|
135
|
+
def file_content(path)
|
136
|
+
Git::FileAccess.new(@repo_dir_path).file_content(path)
|
137
|
+
end
|
138
|
+
|
139
|
+
def file_list(depth=nil)
|
140
|
+
Git::FileAccess.new(@repo_dir_path).ls_r(depth)
|
137
141
|
end
|
138
142
|
|
139
143
|
private
|
140
144
|
|
145
|
+
def configuration_content()
|
146
|
+
RepoConfTemplate.result(:repo_conf => self)
|
147
|
+
end
|
148
|
+
|
141
149
|
def load_repo()
|
142
150
|
raw_content = @gitolite_admin_repo.file_content(@repo_conf_file_path)
|
143
151
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dtk-common
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rich PELAVIN
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rugged
|
@@ -188,12 +188,12 @@ require_paths:
|
|
188
188
|
- lib
|
189
189
|
required_ruby_version: !ruby/object:Gem::Requirement
|
190
190
|
requirements:
|
191
|
-
- -
|
191
|
+
- - '>='
|
192
192
|
- !ruby/object:Gem::Version
|
193
193
|
version: '0'
|
194
194
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
195
195
|
requirements:
|
196
|
-
- -
|
196
|
+
- - '>='
|
197
197
|
- !ruby/object:Gem::Version
|
198
198
|
version: '0'
|
199
199
|
requirements: []
|