bake-toolkit 2.12.2 → 2.13.0

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.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/bin/bake +0 -1
  3. data/bin/bake-doc +2 -2
  4. data/documentation/_build/html/_sources/changelog.txt +29 -2
  5. data/documentation/_build/html/_sources/ide/vs/how_to_create_vs_projects.txt +1 -1
  6. data/documentation/_build/html/_sources/index.txt +1 -1
  7. data/documentation/_build/html/_sources/tips_and_tricks/static_code_analysis.txt +4 -4
  8. data/documentation/_build/html/_sources/tips_and_tricks/the_bakery.txt +7 -1
  9. data/documentation/_build/html/_static/syntax.html +10 -2
  10. data/documentation/_build/html/changelog.html +80 -5
  11. data/documentation/_build/html/commandline/commandline.html +3 -3
  12. data/documentation/_build/html/concepts/build_hierarchy.html +3 -3
  13. data/documentation/_build/html/concepts/concepts.html +3 -3
  14. data/documentation/_build/html/concepts/the_main_project.html +3 -3
  15. data/documentation/_build/html/concepts/the_project_meta_file.html +3 -3
  16. data/documentation/_build/html/genindex.html +3 -3
  17. data/documentation/_build/html/ide/eclipse/eclipse.html +3 -3
  18. data/documentation/_build/html/ide/eclipse/how_to_convert_existing_cdt_workspace.html +3 -3
  19. data/documentation/_build/html/ide/eclipse/how_to_create_a_new_project_in_eclipse.html +3 -3
  20. data/documentation/_build/html/ide/eclipse/how_to_create_a_workspace_in_eclipse.html +3 -3
  21. data/documentation/_build/html/ide/eclipse/how_to_install_eclipse_plugin.html +3 -3
  22. data/documentation/_build/html/ide/eclipse/how_to_use_bake_in_eclipse.html +3 -3
  23. data/documentation/_build/html/ide/ide_integrations.html +3 -3
  24. data/documentation/_build/html/ide/vs/how_to_create_vs_projects.html +4 -4
  25. data/documentation/_build/html/ide/vs/how_to_debug_in_vs.html +3 -3
  26. data/documentation/_build/html/ide/vs/how_to_used_bake_in_vs.html +3 -3
  27. data/documentation/_build/html/ide/vs/vs.html +3 -3
  28. data/documentation/_build/html/ide/vs/vs_install.html +3 -3
  29. data/documentation/_build/html/index.html +6 -6
  30. data/documentation/_build/html/install/install_bake.html +3 -3
  31. data/documentation/_build/html/internal.html +3 -3
  32. data/documentation/_build/html/known_issues.html +3 -3
  33. data/documentation/_build/html/license.html +3 -3
  34. data/documentation/_build/html/performance/performance.html +3 -3
  35. data/documentation/_build/html/quickstart/quickstart.html +3 -3
  36. data/documentation/_build/html/search.html +3 -3
  37. data/documentation/_build/html/searchindex.js +1 -1
  38. data/documentation/_build/html/syntax/derive_configs.html +3 -3
  39. data/documentation/_build/html/syntax/project_meta_syntax.html +13 -5
  40. data/documentation/_build/html/syntax/syntax.html +3 -3
  41. data/documentation/_build/html/syntax/variable_substitutions.html +3 -3
  42. data/documentation/_build/html/tips_and_tricks/how_to_use_bake_with_cygwin.html +3 -3
  43. data/documentation/_build/html/tips_and_tricks/static_code_analysis.html +7 -7
  44. data/documentation/_build/html/tips_and_tricks/the_bakery.html +8 -4
  45. data/documentation/_build/html/tips_and_tricks/the_clang.html +3 -3
  46. data/documentation/_build/html/tips_and_tricks/tips_and_tricks.html +3 -3
  47. data/documentation/_build/html/why_bake/why_bake.html +5 -5
  48. data/lib/bake/config/loader.rb +42 -0
  49. data/lib/bake/model/metamodel.rb +6 -0
  50. data/lib/bake/options/options.rb +63 -68
  51. data/lib/bake/options/showDoc.rb +0 -7
  52. data/lib/bake/options/usage.rb +16 -17
  53. data/lib/bakery/options/options.rb +9 -9
  54. data/lib/bakery/toBake.rb +1 -1
  55. data/lib/blocks/compile.rb +3 -5
  56. data/lib/blocks/executable.rb +6 -1
  57. data/lib/blocks/library.rb +6 -3
  58. data/lib/common/options/parser.rb +19 -14
  59. data/lib/common/version.rb +1 -1
  60. data/lib/vs/options.rb +9 -8
  61. metadata +2 -3
  62. data/lib/common/options/option.rb +0 -13
@@ -1,7 +1,7 @@
1
1
  module Bake
2
2
  class Version
3
3
  def self.number
4
- "2.12.2"
4
+ "2.13.0"
5
5
  end
6
6
  end
7
7
 
@@ -13,10 +13,11 @@ module Bake
13
13
  @rewriteSolution = false
14
14
  @roots = []
15
15
 
16
- add_option(Option.new("--version",true) { |x| set_version(x) })
17
- add_option(Option.new("--rewrite_solution",false) { set_rewrite_solution })
18
- add_option(Option.new("-w",true) { |x| set_root(x) })
19
- add_option(Option.new("-h",false) { usage; ExitHelper.exit(0) })
16
+ add_option(["--version" ], lambda { |x| set_version(x) })
17
+ add_option(["--rewrite", "--rewrite_solution"], lambda { set_rewrite_solution })
18
+ add_option(["-w", ], lambda { |x| set_root(x) })
19
+ add_option(["-h", "--help" ], lambda { usage; ExitHelper.exit(0) })
20
+ add_option(["" ], lambda { |x| puts "Error: invalid argument #{x}"; usage; ExitHelper.exit(1) })
20
21
  end
21
22
 
22
23
  def usage
@@ -24,13 +25,13 @@ module Bake
24
25
  puts " -w <root> Add a workspace root. Default is current directory."
25
26
  puts " This option can be used at multiple times."
26
27
  puts " Solution files will be created in the first root directory."
27
- puts " --version <year> Visual Studio version. Currently supported: 2010 and 2012 (default)."
28
- puts " --rewrite_solution Rewrites existing solution files instead of appending new projects."
29
- puts " -h Print this help."
28
+ puts " --version <year> Visual Studio version. Currently supported: 2010, 2012 (default) and 2013."
29
+ puts " --rewrite Rewrites existing solution files instead of appending new projects."
30
+ puts " -h, --help Print this help."
30
31
  end
31
32
 
32
33
  def parse_options()
33
- parse_internal(false)
34
+ parse_internal()
34
35
  @roots << Dir.pwd if @roots.length == 0
35
36
  end
36
37
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bake-toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.12.2
4
+ version: 2.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Schaal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-16 00:00:00.000000000 Z
11
+ date: 2015-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rtext
@@ -144,7 +144,6 @@ files:
144
144
  - lib/common/ext/file.rb
145
145
  - lib/common/ext/stdout.rb
146
146
  - lib/common/ide_interface.rb
147
- - lib/common/options/option.rb
148
147
  - lib/common/options/parser.rb
149
148
  - lib/common/process.rb
150
149
  - lib/common/utils.rb
@@ -1,13 +0,0 @@
1
- module Bake
2
-
3
- class Option
4
- attr_reader :param, :arg, :block
5
- def initialize(param, arg, &f)
6
- @param = param
7
- @arg = arg # true / false
8
- @block = f
9
- f
10
- end
11
- end
12
-
13
- end