autoproj 2.0.0.rc24 → 2.0.0.rc25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/autoproj.gemspec +1 -1
- data/lib/autoproj/cli/base.rb +2 -1
- data/lib/autoproj/find_workspace.rb +12 -15
- data/lib/autoproj/ops/install.rb +1 -1
- data/lib/autoproj/package_managers/bundler_manager.rb +1 -0
- data/lib/autoproj/package_manifest.rb +13 -0
- data/lib/autoproj/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3a154afc488da79bd5b1ea99b71a2104e597a51
|
4
|
+
data.tar.gz: 63fd1ab12bb3da7c1df201232b0258b1e5e18fab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11a953e98a508631066821bb336e05201e4d136c9b07359cc2e48c916bfcb1c9e8a59b48df5e0beb88b31dac680681ded17396b7cb2e953d186b8852c84d4175
|
7
|
+
data.tar.gz: 5df95acb185feaacc83c145a0a6b1cb35834c459aec915d9bc5a01cb34502cb511b5c593e88e2bfa4c66b360d4a3fbbabe4c3e81acf9da9027fd9b1b74e14657
|
data/autoproj.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
22
|
|
23
23
|
s.add_runtime_dependency "autobuild", ">= 1.10.0.a"
|
24
|
-
s.add_runtime_dependency "utilrb", ">=
|
24
|
+
s.add_runtime_dependency "utilrb", ">= 3.0"
|
25
25
|
s.add_runtime_dependency "thor", '~> 0.19.0', '>= 0.19.1'
|
26
26
|
s.add_runtime_dependency 'concurrent-ruby'
|
27
27
|
s.add_runtime_dependency 'tty-color', '~> 0.3.0', '>= 0.3.0'
|
data/lib/autoproj/cli/base.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'tty/color'
|
1
2
|
require 'autoproj'
|
2
3
|
require 'autoproj/autobuild'
|
3
4
|
|
@@ -190,7 +191,7 @@ def self.validate_options(args, options)
|
|
190
191
|
remaining[:parallel] = Integer(level)
|
191
192
|
end
|
192
193
|
|
193
|
-
return args, remaining
|
194
|
+
return args, remaining.to_sym_keys
|
194
195
|
end
|
195
196
|
end
|
196
197
|
end
|
@@ -36,7 +36,7 @@ def self.find_prefix_dir(base_dir = default_find_base_dir)
|
|
36
36
|
def self.find_v2_root_dir(base_dir, config_field_name)
|
37
37
|
path = Pathname.new(base_dir).expand_path
|
38
38
|
while !path.root?
|
39
|
-
if (path + ".autoproj").exist?
|
39
|
+
if (path + ".autoproj" + "config.yml").exist?
|
40
40
|
break
|
41
41
|
end
|
42
42
|
path = path.parent
|
@@ -47,22 +47,19 @@ def self.find_v2_root_dir(base_dir, config_field_name)
|
|
47
47
|
end
|
48
48
|
|
49
49
|
config_path = path + ".autoproj" + "config.yml"
|
50
|
-
if config_path.exist?
|
51
|
-
config = YAML.load(config_path.read) || Hash.new
|
52
|
-
result = config[config_field_name] || path.to_s
|
53
|
-
result = File.expand_path(result, path.to_s)
|
54
|
-
if result == path.to_s
|
55
|
-
return result
|
56
|
-
end
|
57
|
-
resolved = find_v2_root_dir(result, config_field_name)
|
58
50
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
51
|
+
config = YAML.load(config_path.read) || Hash.new
|
52
|
+
result = config[config_field_name] || path.to_s
|
53
|
+
result = File.expand_path(result, path.to_s)
|
54
|
+
if result == path.to_s
|
55
|
+
return result
|
56
|
+
end
|
57
|
+
resolved = find_v2_root_dir(result, config_field_name)
|
58
|
+
|
59
|
+
if !resolved || (resolved != result)
|
60
|
+
raise ArgumentError, "found #{path} as possible workspace root for #{base_dir}, but it contains a configuration file in #{config_path} that points to #{result} and #{result} is not an autoproj workspace root"
|
65
61
|
end
|
62
|
+
resolved
|
66
63
|
end
|
67
64
|
|
68
65
|
# {#find_workspace_dir} for v2 workspaces
|
data/lib/autoproj/ops/install.rb
CHANGED
@@ -240,7 +240,7 @@ def install_bundler
|
|
240
240
|
|
241
241
|
result = system(
|
242
242
|
env_for_child.merge('GEM_PATH' => "", 'GEM_HOME' => bundler_gem_home),
|
243
|
-
Gem.ruby, gem_program, 'install', '--no-document', '--no-format-executable',
|
243
|
+
Gem.ruby, gem_program, 'install', '--env-shebang', '--no-document', '--no-format-executable',
|
244
244
|
*local,
|
245
245
|
"--bindir=#{File.join(bundler_gem_home, 'bin')}", 'bundler')
|
246
246
|
|
@@ -33,6 +33,7 @@ def initialize_environment
|
|
33
33
|
|
34
34
|
env.add_path 'PATH', File.join(ws.prefix_dir, 'gems', 'bin')
|
35
35
|
env.add_path 'PATH', File.join(config.bundler_gem_home, 'bin')
|
36
|
+
env.add_path 'PATH', File.join(config.gems_gem_home, 'bin')
|
36
37
|
env.add_path 'PATH', File.join(ws.dot_autoproj_dir, 'autoproj', 'bin')
|
37
38
|
env.set 'GEM_HOME', config.gems_gem_home
|
38
39
|
env.set 'GEM_PATH', config.bundler_gem_home
|
@@ -52,6 +52,19 @@ def documentation
|
|
52
52
|
return short_documentation
|
53
53
|
end
|
54
54
|
|
55
|
+
def has_short_documentation?
|
56
|
+
xml.elements.each('package/description') do |node|
|
57
|
+
doc = node.attributes['brief']
|
58
|
+
if doc
|
59
|
+
doc = doc.to_s.strip
|
60
|
+
end
|
61
|
+
if doc && !doc.empty?
|
62
|
+
return true
|
63
|
+
end
|
64
|
+
end
|
65
|
+
false
|
66
|
+
end
|
67
|
+
|
55
68
|
def short_documentation
|
56
69
|
xml.elements.each('package/description') do |node|
|
57
70
|
doc = node.attributes['brief']
|
data/lib/autoproj/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autoproj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0.
|
4
|
+
version: 2.0.0.rc25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvain Joyeux
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: autobuild
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '3.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: '
|
40
|
+
version: '3.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: thor
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -298,3 +298,4 @@ signing_key:
|
|
298
298
|
specification_version: 4
|
299
299
|
summary: Easy installation and management of sets of software packages
|
300
300
|
test_files: []
|
301
|
+
has_rdoc:
|