autoproj 2.0.0 → 2.0.1

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: 76bc72f60bd12fb8626be1bd3b750deea75f4613
4
- data.tar.gz: e69bc9fc35160b4e1c57ead90e4f18424a0ba456
3
+ metadata.gz: 25acae3976b79a7315a31833d05307dcb4895f54
4
+ data.tar.gz: d9d1ab21a7aabc251e31f315f5c07d07fb068950
5
5
  SHA512:
6
- metadata.gz: 2db69c1d9d67720fcf69b916b023678ba1c50a8484925f1e0722e982d5d71de7f03a8520556779afa86bb5793059f994fc46a0de358698d4f156707e00ae3d96
7
- data.tar.gz: 0fe40287446c20df8759ca1d1675ad1e451505d9d5ffbf0d796e43b7b13964287e76331a241667bd23b23be7aa639151c1a26117fc37229bce80ffd6e8dd61ad
6
+ metadata.gz: 42e0965907323cdeff72cc1b5754b4b5f35202ac295d603348d669d868d31df9170a242cdf901ac6ecba0c43d3e0bede54c9b2f368e0d0f0e79c23f4e39ada70
7
+ data.tar.gz: 2903a67c90039c2fa5f0d4101477815559b77586edc3fbe11fb6722515b499a0fac346c6b009a1924af85a98daa20be837181fe02a93bdcc965b08dd01d3a146
@@ -3,15 +3,10 @@
3
3
  module Autoproj
4
4
  module CLI
5
5
  class Doc < InspectionTool
6
- def run(selected_packages, options = Hash.new)
6
+ def run(user_selection, deps: true)
7
7
  initialize_and_load
8
- options = Kernel.validate_options options,
9
- with_deps: true
10
-
11
- selected_packages, _ =
12
- normalize_command_line_package_selection(selected_packages)
13
- package_names, _ = resolve_selection(selected_packages, recursive: options[:with_deps])
14
-
8
+ packages, _ =
9
+ finalize_setup(user_selection, recursive: deps)
15
10
  packages.each do |pkg|
16
11
  ws.manifest.find_autobuild_package(pkg).disable_phases('import', 'prepare', 'install')
17
12
  end
@@ -84,7 +84,8 @@ def status(*packages)
84
84
  end
85
85
 
86
86
  desc 'doc [PACKAGES]', 'generate API documentation for packages that support it'
87
- option :without_deps, desc: 'generate documentation for the packages given on the command line, and not for their dependencies'
87
+ option :deps, desc: 'control whether documentation should be generated only for the packages given on the command line, or also for their dependencies',
88
+ type: :boolean, default: true
88
89
  def doc(*packages)
89
90
  run_autoproj_cli(:doc, :Doc, Hash[], *packages)
90
91
  end
@@ -62,7 +62,7 @@ def exec(*packages)
62
62
  cli = Test.new
63
63
  Autobuild.pass_test_errors = options[:fail]
64
64
  Autobuild::TestUtility.coverage_enabled = options[:coverage]
65
- args = cli.validate_options(packages, options)
65
+ args = cli.validate_options(packages, deps: options[:deps])
66
66
  cli.run(*args)
67
67
  end
68
68
  end
@@ -54,13 +54,12 @@ def list(user_selection, options = Hash.new)
54
54
  end
55
55
  end
56
56
 
57
- def run(user_selection, options = Hash.new)
57
+ def run(user_selection, deps: true)
58
58
  initialize_and_load
59
- packages, _ = finalize_setup(user_selection,
60
- recursive: options[:deps])
61
-
59
+ packages, _ =
60
+ finalize_setup(user_selection, recursive: deps)
62
61
  packages.each do |pkg|
63
- Autobuild::Package[pkg].disable_phases('import', 'prepare', 'install')
62
+ ws.manifest.find_autobuild_package(pkg).disable_phases('import', 'prepare', 'install')
64
63
  end
65
64
  Autobuild.apply(packages, "autoproj-test", ['test'])
66
65
  end
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
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
4
+ version: 2.0.1
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-12-22 00:00:00.000000000 Z
11
+ date: 2017-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -337,4 +337,3 @@ signing_key:
337
337
  specification_version: 4
338
338
  summary: Easy installation and management of sets of software packages
339
339
  test_files: []
340
- has_rdoc: