dtk-common 0.7.6 → 0.8.0

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.
Files changed (41) hide show
  1. checksums.yaml +5 -13
  2. data/.license_header +15 -0
  3. data/LICENSE +202 -674
  4. data/README.md +20 -9
  5. data/Rakefile +15 -0
  6. data/dtk-common.gemspec +1 -1
  7. data/lib/common_patch.rb +18 -1
  8. data/lib/dsl/directory_parser/git.rb +18 -1
  9. data/lib/dsl/directory_parser/linux.rb +18 -1
  10. data/lib/dsl/directory_parser.rb +18 -1
  11. data/lib/dsl/file_parser/file_types/assembly/v2/assembly.rb +18 -2
  12. data/lib/dsl/file_parser/file_types/component_module_refs/v1/component_module_refs.rb +18 -2
  13. data/lib/dsl/file_parser.rb +18 -1
  14. data/lib/dsl.rb +18 -5
  15. data/lib/dtk-common/version.rb +18 -1
  16. data/lib/dtk_common.rb +18 -1
  17. data/lib/dynamic_loader.rb +18 -2
  18. data/lib/git_repo/adapters/rugged/blob.rb +18 -1
  19. data/lib/git_repo/adapters/rugged/commit.rb +18 -1
  20. data/lib/git_repo/adapters/rugged/common.rb +18 -2
  21. data/lib/git_repo/adapters/rugged/tree.rb +18 -1
  22. data/lib/git_repo/adapters/rugged.rb +18 -1
  23. data/lib/git_repo.rb +18 -5
  24. data/lib/gitolite/configuration.rb +18 -1
  25. data/lib/gitolite/errors.rb +18 -1
  26. data/lib/gitolite/grit/adapter.rb +18 -1
  27. data/lib/gitolite/grit/file_access.rb +17 -0
  28. data/lib/gitolite/init.rb +17 -0
  29. data/lib/gitolite/manager.rb +17 -0
  30. data/lib/gitolite/repo.rb +18 -1
  31. data/lib/gitolite/user_group.rb +17 -0
  32. data/lib/gitolite/utils.rb +17 -0
  33. data/lib/grit_adapter/file_access/diff.rb +18 -1
  34. data/lib/grit_adapter/file_access/status.rb +18 -1
  35. data/lib/grit_adapter/file_access.rb +18 -2
  36. data/lib/grit_adapter/object_access.rb +18 -1
  37. data/lib/grit_adapter.rb +18 -1
  38. data/lib/module_parser/module_parser.rb +18 -1
  39. data/lib/module_version.rb +17 -0
  40. data/lib/require_first.rb +18 -1
  41. metadata +14 -12
data/README.md CHANGED
@@ -1,15 +1,14 @@
1
1
  dtk-common
2
2
  ==========
3
3
 
4
- DTK Common
5
-
6
-
7
- GITOLITE
8
- =========
4
+ What it is?
5
+ ----------------------
6
+ This is helper library used across DTK components (dtk-server, dtk-repo-manager). Since it is included as dependency on DTK components, there is no need for installing/configuring it separately. We use [Gitolite](https://github.com/sitaramc/gitolite) for fine-grained access control to our component and service modules. One of the functionalities that dtk-common exposes is interaction with Gitolite via Gitolite Manager. Below is an example why and how Gitolite manager is used.
9
7
 
8
+ Gitolite manager usage
9
+ ----------------------
10
10
  Manager takes responsibility of handling all gitolite methods (or at least most of them). Reason is simple, gitolite commit / push are expensive operations and we want to mitigate that fact by using manager, and making sure that all our changes are under one commit / push.
11
11
 
12
-
13
12
  Example: Adding user/user group/all to repo configuration
14
13
 
15
14
  manager = Gitolite::Manager.new('/home/git/gitolite-admin')
@@ -32,6 +31,18 @@ Example: Adding user/user group/all to repo configuration
32
31
  manager.push()
33
32
 
34
33
 
35
- License
36
- ----------------------
37
- DTK Common is released under the GPLv3 license. Please see LICENSE for more details.
34
+ ## License
35
+
36
+ dtk-common is copyright (C) 2010-2016 dtk contributors
37
+
38
+ Licensed under the Apache License, Version 2.0 (the "License");
39
+ you may not use this work except in compliance with the License.
40
+ You may obtain a copy of the License in the [LICENSE](LICENSE) file, or at:
41
+
42
+ http://www.apache.org/licenses/LICENSE-2.0
43
+
44
+ Unless required by applicable law or agreed to in writing, software
45
+ distributed under the License is distributed on an "AS IS" BASIS,
46
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
47
+ See the License for the specific language governing permissions and
48
+ limitations under the License.
data/Rakefile ADDED
@@ -0,0 +1,15 @@
1
+ desc "Add copyright headers"
2
+ task :headers do
3
+ require 'rubygems'
4
+ require 'copyright_header'
5
+
6
+ args = {
7
+ :license_file => '.license_header',
8
+ :add_path => 'lib/',
9
+ :output_dir => '.',
10
+ :guess_extension => true,
11
+ }
12
+
13
+ command_line = CopyrightHeader::CommandLine.new( args )
14
+ command_line.execute
15
+ end
data/dtk-common.gemspec CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |gem|
16
16
  gem.version = DtkCommon::VERSION
17
17
 
18
18
  gem.add_dependency 'rugged','~> 0.17.0.b7'
19
- gem.add_dependency 'dtk-common-core','0.7.3'
19
+ gem.add_dependency 'dtk-common-core','0.8.0'
20
20
  gem.add_dependency 'colorize','~> 0.5.8'
21
21
  # gem.add_dependency 'sequel','~> 3.40.0'
22
22
  # gem.add_dependency 'rdoc','~> 3.12'
data/lib/common_patch.rb CHANGED
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  #TODO: just putting in hooks for errors and logs
2
19
  #need to figure out how to hook calling library's errors
3
20
 
@@ -13,4 +30,4 @@ module DtkCommon
13
30
  module Aux
14
31
  extend ::DTK::Common::AuxMixin
15
32
  end
16
- end
33
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  require File.expand_path('../../git_repo.rb',File.dirname(__FILE__))
2
19
  module DtkCommon; module DSL
3
20
  class DirectoryParser
@@ -36,4 +53,4 @@ module DtkCommon; module DSL
36
53
  end
37
54
  end
38
55
  end
39
- end; end
56
+ end; end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  module DtkCommon; module DSL
2
19
  class DirectoryParser
3
20
  class Linux < self
@@ -18,4 +35,4 @@ module DtkCommon; module DSL
18
35
  end
19
36
  end
20
37
  end
21
- end; end
38
+ end; end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  module DtkCommon
2
19
  module DSL
3
20
  class DirectoryParser
@@ -132,4 +149,4 @@ module DtkCommon
132
149
  }
133
150
  end
134
151
  end
135
- end
152
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  module DtkCommon; module DSL; class FileParser
2
19
  class Assembly < self
3
20
  class OutputArray < FileParser::OutputArray
@@ -49,5 +66,4 @@ module DtkCommon; module DSL; class FileParser
49
66
 
50
67
  end
51
68
  end
52
- end; end; end
53
-
69
+ end; end; end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  module DtkCommon; module DSL; class FileParser
2
19
  class ComponentModuleRefs < self
3
20
  class V1 < self
@@ -60,5 +77,4 @@ module DtkCommon; module DSL; class FileParser
60
77
  end
61
78
  end
62
79
  end
63
- end; end; end
64
-
80
+ end; end; end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  require 'singleton'
2
19
  require 'json'
3
20
  require 'yaml'
@@ -224,4 +241,4 @@ module DtkCommon
224
241
  end
225
242
  end
226
243
  end
227
- end
244
+ end
data/lib/dsl.rb CHANGED
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
 
2
19
  module DtkCommon
3
20
  module DSL
@@ -16,8 +33,4 @@ module DtkCommon
16
33
  require File.expand_path('dsl/directory_parser', File.dirname(__FILE__))
17
34
  require File.expand_path('dsl/file_parser', File.dirname(__FILE__))
18
35
  end
19
- end
20
-
21
-
22
-
23
-
36
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  module DtkCommon
2
- VERSION="0.7.6"
19
+ VERSION="0.8.0"
3
20
  end
data/lib/dtk_common.rb CHANGED
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  module DTK
2
19
  module Common
3
20
 
@@ -33,4 +50,4 @@ module DTK
33
50
  require file unless file.include?('dtk-common.rb') || file.include?('file_access/') || file.include?('require_first.rb') || file.include?('postgres.rb') || file.include?('rugged/')
34
51
  end
35
52
  end
36
- end
53
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  require File.expand_path('common_patch',File.dirname(__FILE__))
2
19
  require 'thread'
3
20
 
@@ -24,5 +41,4 @@ module DtkCommon
24
41
  Aux.snake_to_camel_case(x.to_s)
25
42
  end
26
43
  end
27
- end
28
-
44
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  module DtkCommon
2
19
  class GitRepo::Adapter::Rugged
3
20
  class Blob < Obj
@@ -11,4 +28,4 @@ module DtkCommon
11
28
  end
12
29
  end
13
30
  end
14
- end
31
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  module DtkCommon
2
19
  class GitRepo::Adapter::Rugged
3
20
  class Commit < Obj
@@ -11,4 +28,4 @@ module DtkCommon
11
28
  end
12
29
  end
13
30
  end
14
- end
31
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  module DtkCommon
2
19
  class GitRepo::Adapter::Rugged
3
20
  class Branch
@@ -30,5 +47,4 @@ module DtkCommon
30
47
  end
31
48
  end
32
49
  end
33
- end
34
-
50
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  module DtkCommon
2
19
  class GitRepo::Adapter::Rugged
3
20
  class Tree < Obj
@@ -37,4 +54,4 @@ module DtkCommon
37
54
 
38
55
  end
39
56
  end
40
- end
57
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  require File.expand_path('../../git_repo.rb',File.dirname(__FILE__))
2
19
  require 'rugged'
3
20
  module DtkCommon
@@ -42,4 +59,4 @@ module DtkCommon
42
59
  end
43
60
  end
44
61
  end; end
45
- end
62
+ end
data/lib/git_repo.rb CHANGED
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  require File.expand_path('common_patch',File.dirname(__FILE__))
2
19
  require File.expand_path('dynamic_loader',File.dirname(__FILE__))
3
20
  #TODO: this will eventually replace the grit_adapter classes
@@ -86,8 +103,4 @@ module DtkCommon
86
103
  # :rugged => proc{!::Gem::Specification::find_all_by_name('rugged',::Gem::Requirement.new(NailedRuggedVersion)).empty?}
87
104
  }
88
105
  end
89
- end
90
-
91
-
92
-
93
-
106
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  module Gitolite
2
19
  class Configuration
3
20
 
@@ -32,4 +49,4 @@ module Gitolite
32
49
  "#{@home_dir}/repositories/#{repo_name}.git"
33
50
  end
34
51
  end
35
- end
52
+ end
@@ -1,5 +1,22 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  module Gitolite
2
19
  class Duplicate < StandardError; end
3
20
  class NotFound < StandardError; end
4
21
  class ParseError < StandardError; end
5
- end
22
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  require 'grit'
2
19
 
3
20
  module Gitolite
@@ -104,4 +121,4 @@ module Gitolite
104
121
 
105
122
  end
106
123
  end
107
- end
124
+ end
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  module Gitolite
2
19
  module Git
3
20
  class FileAccess < Adapter
data/lib/gitolite/init.rb CHANGED
@@ -1,3 +1,20 @@
1
+ #
2
+ # Copyright (C) 2010-2016 dtk contributors
3
+ #
4
+ # This file is part of the dtk project.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
1
18
  # use to require all needed files needed for running dtk-common gitolite lib
2
19
  require 'grit'; require 'erubis'
3
20