autoproj 1.11.0.b3 → 1.11.0.rc1
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.
- checksums.yaml +4 -4
- data/bin/autoproj-bootstrap +2 -7
- data/bin/autoproj-show +1 -1
- data/lib/autoproj/package_manifest.rb +24 -0
- data/lib/autoproj/package_set.rb +32 -7
- data/lib/autoproj/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2355dd362e769ce1badfc7e1fee1fedfe9cdd0a8
|
|
4
|
+
data.tar.gz: 4240e201c16d859dae7c5694546407c150c2bbdb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ea9258e525c023bedb01672cb6b23384a5d55d77d6939153435e976a8009597db453cacabda6f7170fa140bb788c9dac15ea10528d9e4e595a8f360748dfe6e
|
|
7
|
+
data.tar.gz: 3cd7404f69a2d0d706ab170e8733123810867b58ef2256d1d351571b91df5671133e0f270169ec586a73b27117a100257cc7e99369219fbb2d9e6e8e9f94aa2b
|
data/bin/autoproj-bootstrap
CHANGED
|
@@ -43,13 +43,8 @@ EOTEXT
|
|
|
43
43
|
#{color('autoproj bootstrap failed', :red, :bold)}
|
|
44
44
|
To retry, first source the #{Autoproj::ENV_FILENAME} script with
|
|
45
45
|
source #{root_dir}/#{Autoproj::ENV_FILENAME}
|
|
46
|
-
and then re-run autoproj bootstrap
|
|
47
|
-
autoproj bootstrap
|
|
48
|
-
|
|
49
|
-
where
|
|
50
|
-
'vcs_type' is git, svn, darcs, cvs
|
|
51
|
-
'vcs_url' is the vcs-specific URL to the repository, and
|
|
52
|
-
'vcs_options' are optional values that can be given to the chosen VCS
|
|
46
|
+
and then re-run autoproj bootstrap
|
|
47
|
+
autoproj bootstrap '#{ARGV.join("'")}'
|
|
53
48
|
EOTEXT
|
|
54
49
|
|
|
55
50
|
raise
|
data/bin/autoproj-show
CHANGED
|
@@ -32,6 +32,16 @@ module Autoproj
|
|
|
32
32
|
result
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
def has_documentation?
|
|
36
|
+
xml.elements.each('package/description') do |node|
|
|
37
|
+
doc = (node.text || "").strip
|
|
38
|
+
if !doc.empty?
|
|
39
|
+
return true
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
return false
|
|
43
|
+
end
|
|
44
|
+
|
|
35
45
|
def documentation
|
|
36
46
|
xml.elements.each('package/description') do |node|
|
|
37
47
|
doc = (node.text || "").strip
|
|
@@ -102,6 +112,20 @@ module Autoproj
|
|
|
102
112
|
end
|
|
103
113
|
end
|
|
104
114
|
|
|
115
|
+
def each_maintainer
|
|
116
|
+
if !block_given?
|
|
117
|
+
return enum_for(:each_maintainer)
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
xml.elements.each('package/maintainer') do |maintainer|
|
|
121
|
+
(maintainer.text || "").strip.split(',').each do |str|
|
|
122
|
+
name, email = str.split('/').map(&:strip)
|
|
123
|
+
email = nil if email && email.empty?
|
|
124
|
+
yield(name, email)
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
105
129
|
# Enumerates the name and email of each author. If no email is present,
|
|
106
130
|
# yields (name, nil)
|
|
107
131
|
def each_author
|
data/lib/autoproj/package_set.rb
CHANGED
|
@@ -13,6 +13,20 @@ module Autoproj
|
|
|
13
13
|
end
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
+
@source_files = ["source.yml"]
|
|
17
|
+
class << self
|
|
18
|
+
attr_reader :source_files
|
|
19
|
+
|
|
20
|
+
def master_source_file
|
|
21
|
+
source_files.first
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def add_source_file(name)
|
|
25
|
+
source_files.delete(name)
|
|
26
|
+
source_files << name
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
16
30
|
# @return [Manifest] the manifest this package set is being used by
|
|
17
31
|
attr_reader :manifest
|
|
18
32
|
|
|
@@ -249,19 +263,30 @@ module Autoproj
|
|
|
249
263
|
raise InternalError, "source #{vcs} has not been fetched yet, cannot load description for it"
|
|
250
264
|
end
|
|
251
265
|
|
|
252
|
-
|
|
253
|
-
if !File.exists?(
|
|
266
|
+
master_source_file = File.join(raw_local_dir, PackageSet.master_source_file)
|
|
267
|
+
if !File.exists?(master_source_file)
|
|
254
268
|
raise ConfigError.new, "source #{vcs.type}:#{vcs.url} should have a source.yml file, but does not"
|
|
255
269
|
end
|
|
256
270
|
|
|
257
|
-
source_definition =
|
|
258
|
-
|
|
259
|
-
|
|
271
|
+
source_definition = Hash.new
|
|
272
|
+
PackageSet.source_files.each do |name|
|
|
273
|
+
source_file = File.join(raw_local_dir, name)
|
|
274
|
+
next if !File.file?(source_file)
|
|
260
275
|
|
|
261
|
-
|
|
262
|
-
|
|
276
|
+
newdefs = Autoproj.in_file(source_file, Autoproj::YAML_LOAD_ERROR) do
|
|
277
|
+
YAML.load(File.read(source_file))
|
|
278
|
+
end
|
|
279
|
+
source_definition.merge!(newdefs || Hash.new) do |k, old, new|
|
|
280
|
+
if old.respond_to?(:to_ary)
|
|
281
|
+
old + new
|
|
282
|
+
else new
|
|
283
|
+
end
|
|
284
|
+
end
|
|
263
285
|
end
|
|
264
286
|
|
|
287
|
+
if !source_definition['name']
|
|
288
|
+
raise ConfigError.new(master_source_file), "in #{master_source_file}: missing a 'name' field"
|
|
289
|
+
end
|
|
265
290
|
source_definition
|
|
266
291
|
end
|
|
267
292
|
|
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: 1.11.0.
|
|
4
|
+
version: 1.11.0.rc1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rock Core Developers
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-10-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: autobuild
|