autoproj 1.6.2 → 1.7.0.b1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +22 -1
- data/Rakefile +1 -1
- data/bin/autoproj +19 -6
- data/doc/guide/src/autoproj_bootstrap +68 -64
- data/lib/autoproj/autobuild.rb +38 -2
- data/lib/autoproj/base.rb +23 -1
- data/lib/autoproj/cmdline.rb +135 -61
- data/lib/autoproj/manifest.rb +441 -188
- data/lib/autoproj/options.rb +2 -2
- data/lib/autoproj/osdeps.rb +11 -10
- data/lib/autoproj/version.rb +1 -1
- metadata +19 -16
data/lib/autoproj/options.rb
CHANGED
@@ -14,7 +14,7 @@ module Autoproj
|
|
14
14
|
@name, @type, @options = name.to_str, type.to_str, options.to_hash
|
15
15
|
@validator = validator.to_proc if validator
|
16
16
|
if !BuildOption.respond_to?("validate_#{type}")
|
17
|
-
raise ConfigError, "invalid option type #{type}"
|
17
|
+
raise ConfigError.new, "invalid option type #{type}"
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
@@ -154,7 +154,7 @@ module Autoproj
|
|
154
154
|
@user_config[option_name] = [value, true]
|
155
155
|
value
|
156
156
|
else
|
157
|
-
raise ConfigError, "undeclared option '#{option_name}'"
|
157
|
+
raise ConfigError.new, "undeclared option '#{option_name}'"
|
158
158
|
end
|
159
159
|
end
|
160
160
|
|
data/lib/autoproj/osdeps.rb
CHANGED
@@ -7,7 +7,7 @@ module Autoproj
|
|
7
7
|
data = YAML.load(File.read(file)) || Hash.new
|
8
8
|
verify_definitions(data)
|
9
9
|
rescue ArgumentError => e
|
10
|
-
raise ConfigError, "error in #{file}: #{e.message}"
|
10
|
+
raise ConfigError.new, "error in #{file}: #{e.message}"
|
11
11
|
end
|
12
12
|
|
13
13
|
OSDependencies.new(data, file)
|
@@ -144,8 +144,9 @@ module Autoproj
|
|
144
144
|
return @operating_system
|
145
145
|
elsif Autoproj.has_config_key?('operating_system')
|
146
146
|
os = Autoproj.user_config('operating_system')
|
147
|
-
if
|
148
|
-
@operating_system =
|
147
|
+
if os.respond_to?(:to_ary) # upgrade from previous format
|
148
|
+
@operating_system = os
|
149
|
+
return os
|
149
150
|
end
|
150
151
|
end
|
151
152
|
|
@@ -335,7 +336,7 @@ fi
|
|
335
336
|
elsif data.respond_to?(:to_str)
|
336
337
|
return [PACKAGES, [data.to_str]]
|
337
338
|
else
|
338
|
-
raise ConfigError, "invalid package specificiation #{data} in #{source_of(name)}"
|
339
|
+
raise ConfigError.new, "invalid package specificiation #{data} in #{source_of(name)}"
|
339
340
|
end
|
340
341
|
end
|
341
342
|
|
@@ -350,11 +351,11 @@ fi
|
|
350
351
|
dependencies.each do |name|
|
351
352
|
result = resolve_package(name)
|
352
353
|
if result == NO_PACKAGE
|
353
|
-
raise ConfigError, "there is no osdeps definition for #{name}"
|
354
|
+
raise ConfigError.new, "there is no osdeps definition for #{name}"
|
354
355
|
elsif result == WRONG_OS
|
355
|
-
raise ConfigError, "there is an osdeps definition for #{name}, but not for this operating system"
|
356
|
+
raise ConfigError.new, "there is an osdeps definition for #{name}, but not for this operating system"
|
356
357
|
elsif result == WRONG_OS_VERSION
|
357
|
-
raise ConfigError, "there is an osdeps definition for #{name}, but not for this particular operating system version"
|
358
|
+
raise ConfigError.new, "there is an osdeps definition for #{name}, but not for this particular operating system version"
|
358
359
|
elsif result == IGNORE
|
359
360
|
next
|
360
361
|
elsif result[0] == PACKAGES
|
@@ -363,7 +364,7 @@ fi
|
|
363
364
|
end
|
364
365
|
|
365
366
|
if !os_names.any? { |os_name| OS_AUTO_PACKAGE_INSTALL.has_key?(os_name) }
|
366
|
-
raise ConfigError, "I don't know how to install packages on #{os_names.first}"
|
367
|
+
raise ConfigError.new, "I don't know how to install packages on #{os_names.first}"
|
367
368
|
end
|
368
369
|
|
369
370
|
return os_packages
|
@@ -446,7 +447,7 @@ fi
|
|
446
447
|
# This is *not* handled later, as is the absence of a
|
447
448
|
# package definition. The reason is that it is a bad
|
448
449
|
# configuration file, and should be fixed by the user
|
449
|
-
raise ConfigError, "unknown OS-independent package management type #{pkg_def} for #{name}"
|
450
|
+
raise ConfigError.new, "unknown OS-independent package management type #{pkg_def} for #{name}"
|
450
451
|
end
|
451
452
|
else
|
452
453
|
pkg_def.delete_if do |distrib_name, defs|
|
@@ -510,7 +511,7 @@ fi
|
|
510
511
|
installed_version = installed.map(&:version).max
|
511
512
|
available_version = available.map { |(name, v), source| v }.max
|
512
513
|
if !available_version
|
513
|
-
raise ConfigError, "cannot find any gem with the name '#{name}'"
|
514
|
+
raise ConfigError.new, "cannot find any gem with the name '#{name}'"
|
514
515
|
end
|
515
516
|
needs_update = (available_version > installed_version)
|
516
517
|
!needs_update
|
data/lib/autoproj/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autoproj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 6629751
|
5
|
+
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
-
|
10
|
-
|
8
|
+
- 7
|
9
|
+
- 0
|
10
|
+
- b1
|
11
|
+
version: 1.7.0.b1
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
14
|
- Sylvain Joyeux
|
@@ -15,7 +16,7 @@ autorequire:
|
|
15
16
|
bindir: bin
|
16
17
|
cert_chain: []
|
17
18
|
|
18
|
-
date: 2010-11-
|
19
|
+
date: 2010-11-18 00:00:00 +01:00
|
19
20
|
default_executable:
|
20
21
|
dependencies:
|
21
22
|
- !ruby/object:Gem::Dependency
|
@@ -26,12 +27,12 @@ dependencies:
|
|
26
27
|
requirements:
|
27
28
|
- - ">="
|
28
29
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
30
|
+
hash: 51
|
30
31
|
segments:
|
31
32
|
- 1
|
32
33
|
- 5
|
33
|
-
-
|
34
|
-
version: 1.5.
|
34
|
+
- 24
|
35
|
+
version: 1.5.24
|
35
36
|
type: :runtime
|
36
37
|
version_requirements: *id001
|
37
38
|
- !ruby/object:Gem::Dependency
|
@@ -157,9 +158,9 @@ dependencies:
|
|
157
158
|
hash: 19
|
158
159
|
segments:
|
159
160
|
- 2
|
160
|
-
-
|
161
|
-
-
|
162
|
-
version: 2.
|
161
|
+
- 7
|
162
|
+
- 0
|
163
|
+
version: 2.7.0
|
163
164
|
type: :development
|
164
165
|
version_requirements: *id009
|
165
166
|
description: |-
|
@@ -276,12 +277,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
276
277
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
277
278
|
none: false
|
278
279
|
requirements:
|
279
|
-
- - "
|
280
|
+
- - ">"
|
280
281
|
- !ruby/object:Gem::Version
|
281
|
-
hash:
|
282
|
+
hash: 25
|
282
283
|
segments:
|
283
|
-
-
|
284
|
-
|
284
|
+
- 1
|
285
|
+
- 3
|
286
|
+
- 1
|
287
|
+
version: 1.3.1
|
285
288
|
requirements: []
|
286
289
|
|
287
290
|
rubyforge_project: autobuild
|