autoproj 2.8.7 → 2.8.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '06899cc513fc1e9db2ad848a7fbb41072c7e98da4edfcee416945795bf6b8073'
4
- data.tar.gz: 529ed7ee3173ba42d7ba283c20aa22ae1dd4dd8fdb86e98372766f2f78236c14
3
+ metadata.gz: 52887a2af332210cca2a14090350718f88ca070be1a5ab7493cc82af38f7ba59
4
+ data.tar.gz: b3d84d28e9a283f0cd9efd2cf0cd254382caffabbd7144aff55633e917466c9e
5
5
  SHA512:
6
- metadata.gz: 1fff56785550539d5f0192e648dd7e04714d123eb12c91517066e78f24ee31d11f1a294bed999ade50c76b8126cfefb3e1918588ecc0736c90b6091cd681fb7a
7
- data.tar.gz: 9ad7d2cf7f0101009276449bd8c33d274e29e6ee537455864cc2b369b621df7c0343b4a8dc9a2dabd92344c32286b852284a18475afc52d84534e5afcc90270e
6
+ metadata.gz: 03c32ce93aed3de8fad8bf3dfcbfe5529703315b83e0a8afe70bd1b54c3f0c91257a42f838e67866aca8beff348f4766b37eec82e70dfa04b243bc6d41df2747
7
+ data.tar.gz: 8fe58af39dd943a8841eadce3222cf32124d3befe1e909e683b34481d5211da660c1ba8d1ab25ee8fad6fbe5aca209cfe1d9927a1248fa8cf74bab99cd2e0198
@@ -291,16 +291,18 @@ module Autoproj
291
291
  end
292
292
 
293
293
  def find_bundler(gem_program)
294
- setup_path =
295
- IO.popen([env_for_child, Gem.ruby, gem_program, 'which', 'bundler/setup']) do |io|
294
+ setup_paths =
295
+ IO.popen([env_for_child, Gem.ruby, gem_program, 'which','-a', 'bundler/setup']) do |io|
296
296
  io.read
297
297
  end
298
298
  return unless $?.success?
299
-
300
299
  bundler_path = File.join(gems_gem_home, 'bin', 'bundle')
301
- if File.exist?(bundler_path) && setup_path.start_with?(gems_gem_home)
302
- bundler_path
300
+ setup_paths.each_line do |setup_path|
301
+ if File.exist?(bundler_path) && setup_path.start_with?(gems_gem_home)
302
+ return bundler_path
303
+ end
303
304
  end
305
+ return
304
306
  end
305
307
 
306
308
  def install_bundler(gem_program, silent: false)
@@ -291,16 +291,18 @@ module Autoproj
291
291
  end
292
292
 
293
293
  def find_bundler(gem_program)
294
- setup_path =
295
- IO.popen([env_for_child, Gem.ruby, gem_program, 'which', 'bundler/setup']) do |io|
294
+ setup_paths =
295
+ IO.popen([env_for_child, Gem.ruby, gem_program, 'which','-a', 'bundler/setup']) do |io|
296
296
  io.read
297
297
  end
298
298
  return unless $?.success?
299
-
300
299
  bundler_path = File.join(gems_gem_home, 'bin', 'bundle')
301
- if File.exist?(bundler_path) && setup_path.start_with?(gems_gem_home)
302
- bundler_path
300
+ setup_paths.each_line do |setup_path|
301
+ if File.exist?(bundler_path) && setup_path.start_with?(gems_gem_home)
302
+ return bundler_path
303
+ end
303
304
  end
305
+ return
304
306
  end
305
307
 
306
308
  def install_bundler(gem_program, silent: false)
@@ -3,67 +3,69 @@
3
3
  module Autoproj
4
4
  module CLI
5
5
  class Test < InspectionTool
6
- def enable(user_selection, options = Hash.new)
6
+ def enable(user_selection, options = {})
7
7
  if user_selection.empty?
8
8
  ws.load_config
9
9
  ws.config.utility_enable_all('test')
10
10
  else
11
11
  initialize_and_load
12
- selection, _ = finalize_setup(
12
+ selection, = finalize_setup(
13
13
  user_selection,
14
14
  recursive: options[:deps],
15
- non_imported_packages: :return)
15
+ non_imported_packages: :return
16
+ )
16
17
  ws.config.utility_enable('test', *selection)
17
18
  end
18
19
  ws.config.save
19
20
  end
20
21
 
21
- def disable(user_selection, options = Hash.new)
22
+ def disable(user_selection, options = {})
22
23
  if user_selection.empty?
23
24
  ws.load_config
24
25
  ws.config.utility_disable_all('test')
25
26
  else
26
27
  initialize_and_load
27
- selection, _ = finalize_setup(
28
+ selection, = finalize_setup(
28
29
  user_selection,
29
30
  recursive: options[:deps],
30
- non_imported_packages: :return)
31
+ non_imported_packages: :return
32
+ )
31
33
  ws.config.utility_disable('test', *selection)
32
34
  end
33
35
  ws.config.save
34
36
  end
35
37
 
36
- def list(user_selection, options = Hash.new)
38
+ def list(user_selection, options = {})
37
39
  initialize_and_load
38
- resolved_selection, _ = finalize_setup(
40
+ resolved_selection, = finalize_setup(
39
41
  user_selection,
40
42
  recursive: options[:deps],
41
- non_imported_packages: :return)
43
+ non_imported_packages: :return
44
+ )
42
45
 
43
- lines = Array.new
46
+ lines = []
44
47
  resolved_selection.each do |pkg_name|
45
48
  pkg = ws.manifest.find_package_definition(pkg_name).autobuild
46
49
  lines << [pkg.name, pkg.test_utility.enabled?, pkg.test_utility.available?]
47
50
  end
48
51
  lines = lines.sort_by { |name, _| name }
49
52
  w = lines.map { |name, _| name.length }.max
50
- format = "%-#{w}s %-7s %-9s"
51
- puts format % ["Package Name", "Enabled", "Available"]
53
+ out_format = "%-#{w}s %-7s %-9s"
54
+ puts format(out_format, 'Package Name', 'Enabled', 'Available')
52
55
  lines.each do |name, enabled, available|
53
- puts(format % [name, (!!enabled).to_s, (!!available).to_s])
56
+ puts(format(out_format, name, (!!enabled).to_s, (!!available).to_s))
54
57
  end
55
58
  end
56
59
 
57
60
  def run(user_selection, deps: true)
58
61
  initialize_and_load
59
- packages, _ =
60
- finalize_setup(user_selection, recursive: deps)
62
+ packages, =
63
+ finalize_setup(user_selection, recursive: user_selection.empty? || deps)
61
64
  packages.each do |pkg|
62
65
  ws.manifest.find_autobuild_package(pkg).disable_phases('import', 'prepare', 'install')
63
66
  end
64
- Autobuild.apply(packages, "autoproj-test", ['test'])
67
+ Autobuild.apply(packages, 'autoproj-test', ['test'])
65
68
  end
66
69
  end
67
70
  end
68
71
  end
69
-
@@ -281,16 +281,18 @@ def parse_options(args = ARGV)
281
281
  end
282
282
 
283
283
  def find_bundler(gem_program)
284
- setup_path =
285
- IO.popen([env_for_child, Gem.ruby, gem_program, 'which', 'bundler/setup']) do |io|
284
+ setup_paths =
285
+ IO.popen([env_for_child, Gem.ruby, gem_program, 'which','-a', 'bundler/setup']) do |io|
286
286
  io.read
287
287
  end
288
288
  return unless $?.success?
289
-
290
289
  bundler_path = File.join(gems_gem_home, 'bin', 'bundle')
291
- if File.exist?(bundler_path) && setup_path.start_with?(gems_gem_home)
292
- bundler_path
290
+ setup_paths.each_line do |setup_path|
291
+ if File.exist?(bundler_path) && setup_path.start_with?(gems_gem_home)
292
+ return bundler_path
293
+ end
293
294
  end
295
+ return
294
296
  end
295
297
 
296
298
  def install_bundler(gem_program, silent: false)
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "2.8.7"
2
+ VERSION = "2.8.8"
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.8.7
4
+ version: 2.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Joyeux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-04 00:00:00.000000000 Z
11
+ date: 2018-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler