dtk-common 0.7.6 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -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
  require 'fileutils'
3
20
 
data/lib/gitolite/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
  # This class is used to read gitolite repo config file. File is loaded and paramters are accessible via
2
19
  # class members. After needed manipulation class will be saved as gitolite conf file.
3
20
 
@@ -190,4 +207,4 @@ module Gitolite
190
207
 
191
208
  end
192
209
 
193
- end
210
+ 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 UserGroup
3
20
 
@@ -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 Utils
3
20
  def validate_gitolite_conf_file(content)
@@ -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
  class DTK::Common::GritAdapter::FileAccess
2
19
  module DiffMixin
3
20
  def diff(*args)
@@ -79,4 +96,4 @@ class DTK::Common::GritAdapter::FileAccess
79
96
  attr_writer(*Attributes)
80
97
  end
81
98
  end
82
- end
99
+ 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 DTK::Common; class GritAdapter; class FileAccess
2
19
  module StatusMixin
3
20
  def status()
@@ -22,4 +39,4 @@ module DTK::Common; class GritAdapter; class FileAccess
22
39
  FileStates = [:added,:deleted,:changed,:untracked]
23
40
  end
24
41
  end
25
- end; end; end
42
+ 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 'colorize'
2
19
 
3
20
  module DTK; module Common; class GritAdapter
@@ -293,5 +310,4 @@ module DTK; module Common; class GritAdapter
293
310
  end
294
311
 
295
312
  end
296
- end;end;end
297
-
313
+ 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 DTK::Common; class GritAdapter
2
19
  class ObjectAccess < self
3
20
  def initialize(repo_dir,branch=nil)
@@ -36,4 +53,4 @@ module DTK::Common; class GritAdapter
36
53
  commit(commit_msg)
37
54
  end
38
55
  end
39
- end;end
56
+ end;end
data/lib/grit_adapter.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: should I move all methods that user grit.git to file_access?
2
19
  require 'grit'
3
20
  require 'fileutils'
@@ -209,4 +226,4 @@ module DTK
209
226
  end
210
227
  end
211
228
  end
212
- end
229
+ 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 'yaml'
2
19
 
3
20
  module DTK
@@ -127,4 +144,4 @@ module DTK
127
144
 
128
145
  end
129
146
  end
130
- end
147
+ 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 ModuleVersion
3
20
 
data/lib/require_first.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
  def self.r8_require_common(path)
@@ -15,4 +32,4 @@ module DTK
15
32
  end
16
33
  end
17
34
  end
18
-
35
+
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtk-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rich PELAVIN
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-10 00:00:00.000000000 Z
11
+ date: 2016-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rugged
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.17.0.b7
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.17.0.b7
27
27
  - !ruby/object:Gem::Dependency
@@ -30,26 +30,26 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.7.3
33
+ version: 0.8.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.7.3
40
+ version: 0.8.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: colorize
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.5.8
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.5.8
55
55
  description: Dtk common is needed to use dtk-client gem, provides common libraries
@@ -60,11 +60,13 @@ executables: []
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
- - .gitignore
63
+ - ".gitignore"
64
+ - ".license_header"
64
65
  - Gemfile
65
66
  - Gemfile.lock
66
67
  - LICENSE
67
68
  - README.md
69
+ - Rakefile
68
70
  - dtk-common.gemspec
69
71
  - lib/common_patch.rb
70
72
  - lib/dsl.rb
@@ -188,17 +190,17 @@ require_paths:
188
190
  - lib
189
191
  required_ruby_version: !ruby/object:Gem::Requirement
190
192
  requirements:
191
- - - ! '>='
193
+ - - ">="
192
194
  - !ruby/object:Gem::Version
193
195
  version: '0'
194
196
  required_rubygems_version: !ruby/object:Gem::Requirement
195
197
  requirements:
196
- - - ! '>='
198
+ - - ">="
197
199
  - !ruby/object:Gem::Version
198
200
  version: '0'
199
201
  requirements: []
200
202
  rubyforge_project:
201
- rubygems_version: 2.4.8
203
+ rubygems_version: 2.4.1
202
204
  signing_key:
203
205
  specification_version: 4
204
206
  summary: Common libraries used for DTK CLI client.