autoproj 2.0.0.rc23 → 2.0.0.rc24

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 817b21d65c9eeeac6eae117f038a4d67d175bfbe
4
- data.tar.gz: 986a8083ddd65049128c60512d95f241babdaadd
3
+ metadata.gz: 91f23754f570b1d5e584512e527f2e0f546769e6
4
+ data.tar.gz: 8a01846ea05397a0831f2e7e390799f878be6e22
5
5
  SHA512:
6
- metadata.gz: 6a6378285a457d2ea2d74e619e9245cdd3ced190fef47873f22a02ed2d1cbdd39001d1f7d250dbac61ace64aa346b6b45e3ea16952c935d2e48608cc56ba1ddc
7
- data.tar.gz: a4c558ba8e077f1350ee447375c824ed0db62ded2b7e7cb7d0067eedf9c436c5e95e5f46f8ab1dcd4fa4cb914cb9b810fc72f796e5e22eb34231fcb37585a52c
6
+ metadata.gz: 54e4d351034d56840b6995da79bd34069fa782dbe7d63bcd9f44c0abff18663acf2ce1336abc91127ee570cb2267df59378028c3ef46d7532cc1b8c48dc7161c
7
+ data.tar.gz: 4e8146bb970912be4a8ca11d086991111e5122b618294360b58bb51f53491bf3fecd8b23e30302efcd6c2e67b9ec9a3145c8e340343278fe069a3ef52801236f
@@ -182,6 +182,8 @@ def reconfigure
182
182
  desc 'show [PACKAGES]', 'show informations about package(s)'
183
183
  option :mainline, type: :string,
184
184
  desc: "compare to the given baseline. if 'true', the comparison will ignore any override, otherwise it will take into account overrides only up to the given package set"
185
+ option :env, type: :boolean,
186
+ desc: "display the package's own environment", default: false
185
187
  def show(*packages)
186
188
  run_autoproj_cli(:show, :Show, Hash[], *packages)
187
189
  end
@@ -6,7 +6,7 @@ module CLI
6
6
  class Show < InspectionTool
7
7
  def run(user_selection, options = Hash.new)
8
8
  options = Kernel.validate_options options,
9
- mainline: false
9
+ mainline: false, env: false
10
10
 
11
11
  initialize_and_load(mainline: options.delete(:mainline))
12
12
  default_packages = ws.manifest.default_packages
@@ -24,14 +24,14 @@ def run(user_selection, options = Hash.new)
24
24
  revdeps = ws.manifest.compute_revdeps
25
25
 
26
26
  source_packages.each do |pkg_name|
27
- display_source_package(pkg_name, default_packages, revdeps)
27
+ display_source_package(pkg_name, default_packages, revdeps, env: options[:env])
28
28
  end
29
29
  osdep_packages.each do |pkg_name|
30
30
  display_osdep_package(pkg_name, default_packages, revdeps)
31
31
  end
32
32
  end
33
33
 
34
- def display_source_package(pkg_name, default_packages, revdeps)
34
+ def display_source_package(pkg_name, default_packages, revdeps, options = Hash.new)
35
35
  puts Autoproj.color("source package #{pkg_name}", :bold)
36
36
  pkg = ws.manifest.find_autobuild_package(pkg_name)
37
37
  if !File.directory?(pkg.srcdir)
@@ -77,6 +77,20 @@ def display_source_package(pkg_name, default_packages, revdeps)
77
77
  puts " directly depends on: #{pkg.dependencies.sort.join(", ")}"
78
78
  puts " optionally depends on: #{pkg.optional_dependencies.sort.join(", ")}"
79
79
  puts " dependencies on OS packages: #{pkg.os_packages.sort.join(", ")}"
80
+ if options[:env]
81
+ puts " environment"
82
+ pkg.resolved_env.sort_by(&:first).each do |name, v|
83
+ values = v.split(File::PATH_SEPARATOR)
84
+ if values.size == 1
85
+ puts " #{name}: #{values.first}"
86
+ else
87
+ puts " #{name}:"
88
+ values.each do |single_v|
89
+ puts " #{single_v}"
90
+ end
91
+ end
92
+ end
93
+ end
80
94
  end
81
95
 
82
96
  def display_osdep_package(pkg_name, default_packages, revdeps)
@@ -208,7 +208,9 @@ def merge_gemfiles(*path, unlock: [])
208
208
  end
209
209
  deps.each do |d|
210
210
  if d.source
211
- options = d.source.options.map { |k, v| "#{k}: \"#{v}\"" }
211
+ options = d.source.options.dup
212
+ options.delete 'root_path'
213
+ options = options.map { |k, v| "#{k}: \"#{v}\"" }
212
214
  end
213
215
  contents << [" #{platform_indent}gem \"#{d.name}\", \"#{d.requirement}\"", *options].join(", ")
214
216
  end
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "2.0.0.rc23"
2
+ VERSION = "2.0.0.rc24"
3
3
  end
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.rc23
4
+ version: 2.0.0.rc24
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-03-08 00:00:00.000000000 Z
11
+ date: 2016-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: autobuild
@@ -293,9 +293,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
293
293
  version: 1.3.1
294
294
  requirements: []
295
295
  rubyforge_project:
296
- rubygems_version: 2.2.3
296
+ rubygems_version: 2.5.1
297
297
  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: