eac_tools 0.81.0 → 0.83.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +50 -45
  3. data/lib/eac_tools/version.rb +1 -1
  4. data/sub/avm/avm.gemspec +6 -5
  5. data/sub/avm/lib/avm/data/rotate.rb +1 -1
  6. data/sub/avm/lib/avm/launcher/instances/base/publishing.rb +1 -1
  7. data/sub/avm/lib/avm/registry/from_gems.rb +2 -2
  8. data/sub/avm/lib/avm/rspec/shared_examples/avm_file_formats_with_fixtures.rb +0 -1
  9. data/sub/avm/lib/avm/source_generators/base.rb +1 -0
  10. data/sub/avm/lib/avm/source_generators/runner.rb +6 -0
  11. data/sub/avm/lib/avm/sources/base/sub/remove.rb +38 -0
  12. data/sub/avm/lib/avm/sources/base/sub.rb +26 -0
  13. data/sub/avm/lib/avm/sources/base/subs.rb +7 -0
  14. data/sub/avm/lib/avm/sources/tests/builder.rb +1 -1
  15. data/sub/avm/lib/avm/version.rb +1 -1
  16. data/sub/avm/locale/en.yml +6 -0
  17. data/sub/avm/locale/pt-BR.yml +6 -0
  18. data/sub/avm/spec/lib/avm/launcher/instances/base_spec_files/projects/avm-tools_stub/avm-tools.gemspec +1 -0
  19. data/sub/avm/spec/lib/avm/launcher/instances/base_spec_files/projects/ruby_gem_stub/ruby_gem_stub.gemspec +1 -0
  20. data/sub/avm-eac_asciidoctor_base0/Gemfile +2 -2
  21. data/sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec +6 -5
  22. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/header_lines.rb +5 -3
  23. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document.rb +2 -2
  24. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base/document.rb +2 -2
  25. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base.rb +1 -3
  26. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/version.rb +1 -1
  27. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/file_formats/base_spec.rb +1 -1
  28. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build/document_spec.rb +18 -18
  29. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build/document_spec_files/pre_processed_root_body.adoc +1 -0
  30. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec.rb +3 -3
  31. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec.rb +1 -1
  32. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/sources/base_spec.rb +2 -2
  33. data/sub/avm-eac_asciidoctor_base0/spec/rubocop_spec.rb +1 -1
  34. data/sub/avm-eac_asciidoctor_base0/spec/spec_helper/eac_asciidoctor_base0_stubs.rb +1 -1
  35. data/sub/avm-eac_asciidoctor_base0/spec/spec_helper.rb +3 -3
  36. data/sub/avm-eac_python_base0/Gemfile +2 -2
  37. data/sub/avm-eac_python_base0/avm-eac_python_base0.gemspec +5 -4
  38. data/sub/avm-eac_python_base0/lib/avm/eac_python_base0/executables.rb +1 -1
  39. data/sub/avm-eac_python_base0/lib/avm/eac_python_base0/version.rb +1 -1
  40. data/sub/avm-eac_python_base0/spec/lib/avm/eac_python_base0/file_formats/base_spec.rb +1 -1
  41. data/sub/avm-eac_python_base0/spec/lib/avm/eac_python_base0/file_formats/base_spec_files/python_code.source +1 -1
  42. data/sub/avm-eac_python_base0/spec/lib/avm/eac_python_base0/file_formats/base_spec_files/python_code.target +1 -1
  43. data/sub/avm-eac_python_base0/spec/rubocop_spec.rb +1 -1
  44. data/sub/avm-eac_python_base0/spec/spec_helper.rb +1 -1
  45. data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +2 -2
  46. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop_command.rb +2 -1
  47. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
  48. data/sub/avm-tools/avm-tools.gemspec +1 -1
  49. data/sub/avm-tools/lib/avm/tools/runner/source/sub/remove.rb +22 -0
  50. data/sub/avm-tools/lib/avm/tools/runner/source/sub.rb +29 -0
  51. data/sub/avm-tools/lib/avm/tools/version.rb +1 -1
  52. metadata +22 -145
  53. data/sub/eac_cli/Gemfile +0 -8
  54. data/sub/eac_cli/eac_cli.gemspec +0 -22
  55. data/sub/eac_cli/lib/eac_cli/config/entry/options.rb +0 -58
  56. data/sub/eac_cli/lib/eac_cli/config/entry/undefined.rb +0 -31
  57. data/sub/eac_cli/lib/eac_cli/config/entry.rb +0 -60
  58. data/sub/eac_cli/lib/eac_cli/config.rb +0 -17
  59. data/sub/eac_cli/lib/eac_cli/core_ext.rb +0 -6
  60. data/sub/eac_cli/lib/eac_cli/default_runner.rb +0 -14
  61. data/sub/eac_cli/lib/eac_cli/definition/alternative.rb +0 -105
  62. data/sub/eac_cli/lib/eac_cli/definition/argument_option.rb +0 -21
  63. data/sub/eac_cli/lib/eac_cli/definition/base_option/initialize_args_parser.rb +0 -48
  64. data/sub/eac_cli/lib/eac_cli/definition/base_option.rb +0 -68
  65. data/sub/eac_cli/lib/eac_cli/definition/boolean_option.rb +0 -28
  66. data/sub/eac_cli/lib/eac_cli/definition/default_value.rb +0 -17
  67. data/sub/eac_cli/lib/eac_cli/definition/error.rb +0 -8
  68. data/sub/eac_cli/lib/eac_cli/definition/positional_argument.rb +0 -61
  69. data/sub/eac_cli/lib/eac_cli/definition.rb +0 -95
  70. data/sub/eac_cli/lib/eac_cli/enum.rb +0 -45
  71. data/sub/eac_cli/lib/eac_cli/old_configs/entry_reader.rb +0 -80
  72. data/sub/eac_cli/lib/eac_cli/old_configs/password_entry_reader.rb +0 -16
  73. data/sub/eac_cli/lib/eac_cli/old_configs/read_entry_options.rb +0 -44
  74. data/sub/eac_cli/lib/eac_cli/old_configs/store_passwords_entry_reader.rb +0 -25
  75. data/sub/eac_cli/lib/eac_cli/old_configs.rb +0 -35
  76. data/sub/eac_cli/lib/eac_cli/parser/alternative/any_options.rb +0 -19
  77. data/sub/eac_cli/lib/eac_cli/parser/alternative/argv.rb +0 -17
  78. data/sub/eac_cli/lib/eac_cli/parser/alternative/double_dash.rb +0 -24
  79. data/sub/eac_cli/lib/eac_cli/parser/alternative/long_options.rb +0 -37
  80. data/sub/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb +0 -29
  81. data/sub/eac_cli/lib/eac_cli/parser/alternative/options.rb +0 -29
  82. data/sub/eac_cli/lib/eac_cli/parser/alternative/positionals.rb +0 -30
  83. data/sub/eac_cli/lib/eac_cli/parser/alternative/short_options.rb +0 -45
  84. data/sub/eac_cli/lib/eac_cli/parser/alternative.rb +0 -83
  85. data/sub/eac_cli/lib/eac_cli/parser/collector.rb +0 -46
  86. data/sub/eac_cli/lib/eac_cli/parser/error.rb +0 -15
  87. data/sub/eac_cli/lib/eac_cli/parser.rb +0 -34
  88. data/sub/eac_cli/lib/eac_cli/patches/object/runner_with.rb +0 -26
  89. data/sub/eac_cli/lib/eac_cli/patches/object.rb +0 -5
  90. data/sub/eac_cli/lib/eac_cli/patches.rb +0 -4
  91. data/sub/eac_cli/lib/eac_cli/rspec/setup.rb +0 -42
  92. data/sub/eac_cli/lib/eac_cli/rspec.rb +0 -9
  93. data/sub/eac_cli/lib/eac_cli/runner/after_class_methods.rb +0 -38
  94. data/sub/eac_cli/lib/eac_cli/runner/class_runner.rb +0 -36
  95. data/sub/eac_cli/lib/eac_cli/runner/context.rb +0 -63
  96. data/sub/eac_cli/lib/eac_cli/runner/context_responders/base.rb +0 -24
  97. data/sub/eac_cli/lib/eac_cli/runner/context_responders/parent.rb +0 -27
  98. data/sub/eac_cli/lib/eac_cli/runner/context_responders/runner.rb +0 -20
  99. data/sub/eac_cli/lib/eac_cli/runner/context_responders/runner_missing_method.rb +0 -32
  100. data/sub/eac_cli/lib/eac_cli/runner/context_responders/set.rb +0 -44
  101. data/sub/eac_cli/lib/eac_cli/runner/context_responders.rb +0 -11
  102. data/sub/eac_cli/lib/eac_cli/runner/exit.rb +0 -14
  103. data/sub/eac_cli/lib/eac_cli/runner/for_context.rb +0 -40
  104. data/sub/eac_cli/lib/eac_cli/runner/instance_methods.rb +0 -45
  105. data/sub/eac_cli/lib/eac_cli/runner.rb +0 -50
  106. data/sub/eac_cli/lib/eac_cli/runner_with/confirmation.rb +0 -44
  107. data/sub/eac_cli/lib/eac_cli/runner_with/help/builder/alternative.rb +0 -63
  108. data/sub/eac_cli/lib/eac_cli/runner_with/help/builder.rb +0 -81
  109. data/sub/eac_cli/lib/eac_cli/runner_with/help/layout.rb +0 -40
  110. data/sub/eac_cli/lib/eac_cli/runner_with/help.rb +0 -53
  111. data/sub/eac_cli/lib/eac_cli/runner_with/input.rb +0 -36
  112. data/sub/eac_cli/lib/eac_cli/runner_with/output.rb +0 -58
  113. data/sub/eac_cli/lib/eac_cli/runner_with/output_item/base_formatter.rb +0 -15
  114. data/sub/eac_cli/lib/eac_cli/runner_with/output_item/csv_formatter.rb +0 -23
  115. data/sub/eac_cli/lib/eac_cli/runner_with/output_item/yaml_formatter.rb +0 -18
  116. data/sub/eac_cli/lib/eac_cli/runner_with/output_item.rb +0 -42
  117. data/sub/eac_cli/lib/eac_cli/runner_with/output_list/base_formatter.rb +0 -30
  118. data/sub/eac_cli/lib/eac_cli/runner_with/output_list/csv_formatter.rb +0 -26
  119. data/sub/eac_cli/lib/eac_cli/runner_with/output_list/yaml_formatter.rb +0 -23
  120. data/sub/eac_cli/lib/eac_cli/runner_with/output_list.rb +0 -42
  121. data/sub/eac_cli/lib/eac_cli/runner_with/subcommands/definition_concern.rb +0 -10
  122. data/sub/eac_cli/lib/eac_cli/runner_with/subcommands.rb +0 -129
  123. data/sub/eac_cli/lib/eac_cli/runner_with.rb +0 -9
  124. data/sub/eac_cli/lib/eac_cli/runner_with_set.rb +0 -56
  125. data/sub/eac_cli/lib/eac_cli/speaker/constants.rb +0 -13
  126. data/sub/eac_cli/lib/eac_cli/speaker/input_blocked.rb +0 -16
  127. data/sub/eac_cli/lib/eac_cli/speaker/input_requested.rb +0 -8
  128. data/sub/eac_cli/lib/eac_cli/speaker/list.rb +0 -61
  129. data/sub/eac_cli/lib/eac_cli/speaker/options.rb +0 -38
  130. data/sub/eac_cli/lib/eac_cli/speaker.rb +0 -127
  131. data/sub/eac_cli/lib/eac_cli/version.rb +0 -5
  132. data/sub/eac_cli/lib/eac_cli.rb +0 -7
  133. data/sub/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb +0 -18
  134. data/sub/eac_cli/spec/lib/eac_cli/old_configs_spec.rb +0 -14
  135. data/sub/eac_cli/spec/lib/eac_cli/parser/alternative_spec.rb +0 -140
  136. data/sub/eac_cli/spec/lib/eac_cli/runner/for_context_spec.rb +0 -79
  137. data/sub/eac_cli/spec/lib/eac_cli/runner_spec.rb +0 -129
  138. data/sub/eac_cli/spec/lib/eac_cli/runner_with/confirmation_spec.rb +0 -42
  139. data/sub/eac_cli/spec/lib/eac_cli/runner_with/help/layout_spec.rb +0 -21
  140. data/sub/eac_cli/spec/lib/eac_cli/runner_with/help_spec.rb +0 -51
  141. data/sub/eac_cli/spec/lib/eac_cli/runner_with/output_spec.rb +0 -81
  142. data/sub/eac_cli/spec/lib/eac_cli/runner_with/subcommands_spec.rb +0 -98
  143. data/sub/eac_cli/spec/lib/eac_cli/speaker_spec.rb +0 -32
  144. data/sub/eac_cli/spec/rubocop_spec.rb +0 -3
  145. data/sub/eac_cli/spec/spec_helper.rb +0 -4
  146. data/sub/eac_config/Gemfile +0 -8
  147. data/sub/eac_config/eac_config.gemspec +0 -19
  148. data/sub/eac_config/lib/eac_config/entries.rb +0 -35
  149. data/sub/eac_config/lib/eac_config/entry/not_found_error.rb +0 -13
  150. data/sub/eac_config/lib/eac_config/entry.rb +0 -64
  151. data/sub/eac_config/lib/eac_config/entry_path.rb +0 -89
  152. data/sub/eac_config/lib/eac_config/envvars_node/entry.rb +0 -54
  153. data/sub/eac_config/lib/eac_config/envvars_node.rb +0 -35
  154. data/sub/eac_config/lib/eac_config/load_nodes_search.rb +0 -39
  155. data/sub/eac_config/lib/eac_config/load_path.rb +0 -28
  156. data/sub/eac_config/lib/eac_config/node.rb +0 -81
  157. data/sub/eac_config/lib/eac_config/node_entry.rb +0 -28
  158. data/sub/eac_config/lib/eac_config/node_uri/instanciate_single.rb +0 -29
  159. data/sub/eac_config/lib/eac_config/node_uri.rb +0 -45
  160. data/sub/eac_config/lib/eac_config/old_configs/base.rb +0 -43
  161. data/sub/eac_config/lib/eac_config/old_configs/file.rb +0 -47
  162. data/sub/eac_config/lib/eac_config/old_configs.rb +0 -75
  163. data/sub/eac_config/lib/eac_config/paths_hash/entry_key_error.rb +0 -8
  164. data/sub/eac_config/lib/eac_config/paths_hash/node.rb +0 -67
  165. data/sub/eac_config/lib/eac_config/paths_hash/path_search.rb +0 -39
  166. data/sub/eac_config/lib/eac_config/paths_hash.rb +0 -63
  167. data/sub/eac_config/lib/eac_config/prefixed_path_node/entry.rb +0 -25
  168. data/sub/eac_config/lib/eac_config/prefixed_path_node.rb +0 -19
  169. data/sub/eac_config/lib/eac_config/rspec/setup.rb +0 -65
  170. data/sub/eac_config/lib/eac_config/rspec.rb +0 -9
  171. data/sub/eac_config/lib/eac_config/version.rb +0 -5
  172. data/sub/eac_config/lib/eac_config/yaml_file_node/entry.rb +0 -36
  173. data/sub/eac_config/lib/eac_config/yaml_file_node/self_entries.rb +0 -72
  174. data/sub/eac_config/lib/eac_config/yaml_file_node.rb +0 -54
  175. data/sub/eac_config/lib/eac_config.rb +0 -7
  176. data/sub/eac_config/spec/lib/eac_config/entry_path_spec.rb +0 -30
  177. data/sub/eac_config/spec/lib/eac_config/envvars_node/entry_spec.rb +0 -14
  178. data/sub/eac_config/spec/lib/eac_config/envvars_node_spec.rb +0 -51
  179. data/sub/eac_config/spec/lib/eac_config/old_configs_spec.rb +0 -46
  180. data/sub/eac_config/spec/lib/eac_config/paths_hash_spec.rb +0 -88
  181. data/sub/eac_config/spec/lib/eac_config/yaml_file_node_spec.rb +0 -88
  182. data/sub/eac_config/spec/lib/eac_config/yaml_file_node_spec_files/storage1.yaml +0 -10
  183. data/sub/eac_config/spec/lib/eac_config/yaml_file_node_spec_files/storage1_1.yaml +0 -4
  184. data/sub/eac_config/spec/lib/eac_config/yaml_file_node_spec_files/storage1_2/storage1_2_1.yaml +0 -4
  185. data/sub/eac_config/spec/lib/eac_config/yaml_file_node_spec_files/storage1_2.yaml +0 -10
  186. data/sub/eac_config/spec/rubocop_spec.rb +0 -3
  187. data/sub/eac_config/spec/spec_helper.rb +0 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d2e685c6164fa7bbf8b6c8aff6f6b893482bb469306379210cc7d54d8ea3f05
4
- data.tar.gz: acedb29f75ec68d89fe776ea05976050519ec549f9f328f4de56835109c32710
3
+ metadata.gz: 833289c0854aa34e840b31da37d349d002d8d541cdc50ff14983852730bd80f6
4
+ data.tar.gz: d6f22ddba4381b075bc4c716155faaa5a086433ce7318609fc6651fce75b6bc4
5
5
  SHA512:
6
- metadata.gz: eb5a6a90e7655ac953173526517d7de438f76f25d8f11f9ecc0a64d013d260311cb8779595a773416e22dd3fc6fbf01f0002eefbcaf7eaf0df874c38e140b186
7
- data.tar.gz: 45a9f8b13ac0a309fe00568f4ee4911a84eb9d8a9caaac14c3412c02f489d8802ce82362e2c4fd9e742e260d2bf5cfc56e61e05010f833e8bb327a1d7b87aee3
6
+ metadata.gz: c72425cd752eaba71ccfb13148f1918110ffd7360d9c156df18f87343f29f12c93c21e53a35ff9f3ee3efd09b3404e68f76f78523c67359c00187b7a7926217a
7
+ data.tar.gz: 844fb173354f08332c19f6118cfddb5f385ecccf6f9ed13c7895dcd2f1ba7c196261068ba292e3e18de1262dffdc3d77d5ef96806ac866433afc952923117d56
data/Gemfile.lock CHANGED
@@ -1,33 +1,33 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eac_tools (0.81.0)
5
- avm (~> 0.82)
6
- avm-eac_asciidoctor_base0 (~> 0.19)
4
+ eac_tools (0.83.0)
5
+ avm (~> 0.84)
6
+ avm-eac_asciidoctor_base0 (~> 0.20)
7
7
  avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
8
8
  avm-eac_github_base0 (~> 0.3)
9
9
  avm-eac_latex_base0 (~> 0.3, >= 0.3.1)
10
10
  avm-eac_php_base0 (~> 0.4, >= 0.4.2)
11
11
  avm-eac_postgresql_base0 (~> 0.5, >= 0.5.2)
12
- avm-eac_python_base0 (~> 0.2, >= 0.2.1)
12
+ avm-eac_python_base0 (~> 0.2, >= 0.2.2)
13
13
  avm-eac_rails_base0 (~> 0.11)
14
14
  avm-eac_rails_base1 (~> 0.10)
15
15
  avm-eac_redmine_base0 (~> 0.22)
16
16
  avm-eac_redmine_plugin_base0 (~> 0.4)
17
- avm-eac_ruby_base1 (~> 0.33)
17
+ avm-eac_ruby_base1 (~> 0.33, >= 0.33.1)
18
18
  avm-eac_webapp_base0 (~> 0.18, >= 0.18.2)
19
19
  avm-eac_wordpress_base0 (~> 0.3, >= 0.3.1)
20
20
  avm-git (~> 0.14)
21
- avm-tools (~> 0.158)
21
+ avm-tools (~> 0.159)
22
22
  eac_ruby_utils (~> 0.119, >= 0.119.2)
23
23
 
24
24
  PATH
25
25
  remote: sub/avm-eac_asciidoctor_base0
26
26
  specs:
27
- avm-eac_asciidoctor_base0 (0.19.0)
28
- asciidoctor (~> 2.0, >= 2.0.18)
29
- avm-eac_webapp_base0 (~> 0.15)
30
- eac_ruby_utils (~> 0.112)
27
+ avm-eac_asciidoctor_base0 (0.20.0)
28
+ asciidoctor (~> 2.0, >= 2.0.20)
29
+ avm-eac_webapp_base0 (~> 0.18, >= 0.18.2)
30
+ eac_ruby_utils (~> 0.119, >= 0.119.2)
31
31
  os (~> 1.1, >= 1.1.4)
32
32
  rouge (~> 3.30)
33
33
 
@@ -80,9 +80,9 @@ PATH
80
80
  PATH
81
81
  remote: sub/avm-eac_python_base0
82
82
  specs:
83
- avm-eac_python_base0 (0.2.1)
84
- avm-eac_generic_base0 (~> 0.8)
85
- eac_ruby_utils (~> 0.109)
83
+ avm-eac_python_base0 (0.2.2)
84
+ avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
85
+ eac_ruby_utils (~> 0.119, >= 0.119.2)
86
86
 
87
87
  PATH
88
88
  remote: sub/avm-eac_rails_base0
@@ -123,9 +123,9 @@ PATH
123
123
  PATH
124
124
  remote: sub/avm-eac_ruby_base1
125
125
  specs:
126
- avm-eac_ruby_base1 (0.33.0)
127
- aranha-parsers (~> 0.21)
128
- avm (~> 0.81)
126
+ avm-eac_ruby_base1 (0.33.1)
127
+ aranha-parsers (~> 0.22)
128
+ avm (~> 0.84)
129
129
  avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
130
130
  eac_envs-http (~> 0.4, >= 0.4.1)
131
131
  eac_ruby_utils (~> 0.119, >= 0.119.2)
@@ -180,9 +180,9 @@ PATH
180
180
  PATH
181
181
  remote: sub/avm-tools
182
182
  specs:
183
- avm-tools (0.158.0)
183
+ avm-tools (0.159.0)
184
184
  aranha-parsers (~> 0.21)
185
- avm (~> 0.82)
185
+ avm (~> 0.83)
186
186
  avm-eac_ruby_base1 (~> 0.33)
187
187
  avm-eac_ubuntu_base0 (~> 0.5)
188
188
  avm-files (~> 0.6, >= 0.6.2)
@@ -198,9 +198,9 @@ PATH
198
198
  PATH
199
199
  remote: sub/avm
200
200
  specs:
201
- avm (0.82.0)
201
+ avm (0.84.0)
202
202
  aranha-parsers (~> 0.21)
203
- eac_cli (~> 0.38)
203
+ eac_cli (~> 0.38, >= 0.38.1)
204
204
  eac_config (~> 0.14, >= 0.14.1)
205
205
  eac_docker (~> 0.7)
206
206
  eac_fs (~> 0.16)
@@ -211,21 +211,6 @@ PATH
211
211
  htmlbeautifier (~> 1.4, >= 1.4.2)
212
212
  minitar (~> 0.9)
213
213
 
214
- PATH
215
- remote: sub/eac_cli
216
- specs:
217
- eac_cli (0.38.0)
218
- colorize (~> 0.8, >= 0.8.1)
219
- eac_config (~> 0.14)
220
- eac_ruby_utils (~> 0.119, >= 0.119.2)
221
-
222
- PATH
223
- remote: sub/eac_config
224
- specs:
225
- eac_config (0.14.1)
226
- addressable (~> 2.8, >= 2.8.5)
227
- eac_ruby_utils (~> 0.119, >= 0.119.2)
228
-
229
214
  PATH
230
215
  remote: sub/eac_git
231
216
  specs:
@@ -244,16 +229,16 @@ GEM
244
229
  zeitwerk (~> 2.3)
245
230
  addressable (2.8.5)
246
231
  public_suffix (>= 2.0.2, < 6.0)
247
- aranha-parsers (0.21.0)
232
+ aranha-parsers (0.22.0)
248
233
  activesupport (>= 4.0.0)
249
- addressable (~> 2.8, >= 2.8.4)
250
- eac_envs-http (~> 0.4)
251
- eac_ruby_utils (~> 0.117, >= 0.117.1)
252
- nokogiri (~> 1.15, >= 1.15.2)
234
+ addressable (~> 2.8, >= 2.8.5)
235
+ eac_envs-http (~> 0.4, >= 0.4.1)
236
+ eac_ruby_utils (~> 0.119, >= 0.119.2)
237
+ nokogiri (~> 1.15, >= 1.15.4)
253
238
  ofx-parser (~> 1.1)
254
239
  asciidoctor (2.0.20)
255
240
  ast (2.4.2)
256
- base64 (0.1.1)
241
+ base64 (0.2.0)
257
242
  clipboard (1.3.6)
258
243
  colorize (0.8.1)
259
244
  concurrent-ruby (1.2.2)
@@ -261,6 +246,14 @@ GEM
261
246
  parslet (~> 2.0)
262
247
  curb (0.9.11)
263
248
  diff-lcs (1.5.0)
249
+ eac_cli (0.39.0)
250
+ colorize (~> 0.8, >= 0.8.1)
251
+ eac_config (~> 0.14, >= 0.14.1)
252
+ eac_ruby_utils (~> 0.119, >= 0.119.2)
253
+ tty-table (~> 0.12)
254
+ eac_config (0.14.1)
255
+ addressable (~> 2.8, >= 2.8.5)
256
+ eac_ruby_utils (~> 0.119, >= 0.119.2)
264
257
  eac_docker (0.7.0)
265
258
  eac_ruby_utils (~> 0.112)
266
259
  eac_templates (~> 0.3, >= 0.3.2)
@@ -328,7 +321,7 @@ GEM
328
321
  minitest (5.20.0)
329
322
  multipart-post (2.3.0)
330
323
  net-ssh (4.2.0)
331
- nokogiri (1.15.4-x86_64-linux)
324
+ nokogiri (1.15.5-x86_64-linux)
332
325
  racc (~> 1.4)
333
326
  ofx-parser (1.1.0)
334
327
  hpricot (>= 0.6)
@@ -339,7 +332,9 @@ GEM
339
332
  ast (~> 2.4.1)
340
333
  racc
341
334
  parslet (2.0.0)
342
- public_suffix (5.0.3)
335
+ pastel (0.8.0)
336
+ tty-color (~> 0.5)
337
+ public_suffix (5.0.4)
343
338
  racc (1.7.3)
344
339
  rack (3.0.8)
345
340
  rainbow (3.1.1)
@@ -388,9 +383,21 @@ GEM
388
383
  ruby-filemagic (0.7.3)
389
384
  ruby-progressbar (1.13.0)
390
385
  ruby2_keywords (0.0.5)
386
+ strings (0.2.1)
387
+ strings-ansi (~> 0.2)
388
+ unicode-display_width (>= 1.5, < 3.0)
389
+ unicode_utils (~> 1.4)
390
+ strings-ansi (0.2.0)
391
+ tty-color (0.6.0)
392
+ tty-screen (0.8.1)
393
+ tty-table (0.12.0)
394
+ pastel (~> 0.8)
395
+ strings (~> 0.2.0)
396
+ tty-screen (~> 0.8)
391
397
  tzinfo (2.0.6)
392
398
  concurrent-ruby (~> 1.0)
393
399
  unicode-display_width (2.5.0)
400
+ unicode_utils (1.4.0)
394
401
  zeitwerk (2.6.12)
395
402
  zlib (2.1.1)
396
403
 
@@ -418,8 +425,6 @@ DEPENDENCIES
418
425
  avm-files!
419
426
  avm-git!
420
427
  avm-tools!
421
- eac_cli!
422
- eac_config!
423
428
  eac_git!
424
429
  eac_ruby_gem_support (~> 0.8.0)
425
430
  eac_tools!
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacTools
4
- VERSION = '0.81.0'
4
+ VERSION = '0.83.0'
5
5
  end
data/sub/avm/avm.gemspec CHANGED
@@ -10,10 +10,11 @@ Gem::Specification.new do |s|
10
10
  s.authors = ['Eduardo H. Bogoni']
11
11
  s.summary = 'Ruby base library for Agora Vai! Methodology (https://avm.esquiloazul.tech).'
12
12
 
13
- s.files = Dir['{lib}/**/*']
13
+ s.files = Dir['{lib, locale}/**/*']
14
+ s.required_ruby_version = '>= 2.7'
14
15
 
15
16
  s.add_dependency 'aranha-parsers', '~> 0.21'
16
- s.add_dependency 'eac_cli', '~> 0.38'
17
+ s.add_dependency 'eac_cli', '~> 0.38', '>= 0.38.1'
17
18
  s.add_dependency 'eac_config', '~> 0.14', '>= 0.14.1'
18
19
  s.add_dependency 'eac_docker', '~> 0.7'
19
20
  s.add_dependency 'eac_fs', '~> 0.16'
@@ -24,7 +25,7 @@ Gem::Specification.new do |s|
24
25
  s.add_dependency 'htmlbeautifier', '~> 1.4', '>= 1.4.2'
25
26
  s.add_dependency 'minitar', '~> 0.9'
26
27
 
27
- s.add_development_dependency 'avm-eac_ruby_base1', '~> 0.24'
28
- s.add_development_dependency 'avm-git', '~> 0.7'
29
- s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
28
+ s.add_development_dependency 'avm-eac_ruby_base1', '~> 0.33'
29
+ s.add_development_dependency 'avm-git', '~> 0.14'
30
+ s.add_development_dependency 'eac_ruby_gem_support', '~> 0.9'
30
31
  end
@@ -52,7 +52,7 @@ module Avm
52
52
  file = oldest_rotated_file
53
53
  unless file
54
54
  raise 'oldest_rotated_file returned nil ' \
55
- "(Limit: #{space_limit}, used: #{space_used})"
55
+ "(Limit: #{space_limit}, used: #{space_used})"
56
56
  end
57
57
  ::File.delete(file)
58
58
  end
@@ -34,7 +34,7 @@ module Avm
34
34
  next unless publish?(s)
35
35
 
36
36
  puts "#{name.to_s.cyan}|#{s.label}|" \
37
- "#{s.publish_class.new(self).check}"
37
+ "#{s.publish_class.new(self).check}"
38
38
  end
39
39
  end
40
40
 
@@ -47,8 +47,8 @@ module Avm
47
47
  private
48
48
 
49
49
  def raise_not_found(*args)
50
- raise("No registered module valid for #{args}" \
51
- " (Module suffix: #{module_suffix}, Available: #{available.join(', ')})")
50
+ raise("No registered module valid for #{args} " \
51
+ "(Module suffix: #{module_suffix}, Available: #{available.join(', ')})")
52
52
  end
53
53
 
54
54
  def registered_modules_uncached
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'aranha/parsers/source_target_fixtures'
4
3
  require 'avm/file_formats/search_formatter'
5
4
  require 'eac_ruby_utils/core_ext'
6
5
 
@@ -7,6 +7,7 @@ require 'eac_ruby_utils/core_ext'
7
7
  module Avm
8
8
  module SourceGenerators
9
9
  class Base
10
+ acts_as_abstract
10
11
  include ::Avm::With::ApplicationStereotype
11
12
 
12
13
  class << self
@@ -25,6 +25,12 @@ module Avm
25
25
  success "Source generated in \"#{generator.target_path}\""
26
26
  end
27
27
 
28
+ # @return [String]
29
+ def help_extra_text
30
+ help_list_section('Stereotypes', ::Avm::Registry.source_generators.available
31
+ .map(&:application_stereotype_name))
32
+ end
33
+
28
34
  def start_banner
29
35
  infov 'Stereotype', stereotype_name
30
36
  infov 'Target path', target_path
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module Sources
7
+ class Base
8
+ class Sub
9
+ class Remove
10
+ acts_as_instance_method
11
+
12
+ # !method initialize(sub)
13
+ # @param sub [Avm::Sources::Base::Sub]
14
+ common_constructor :sub
15
+ delegate :source, to: :sub
16
+
17
+ # @return [void]
18
+ def result
19
+ source.scm.commit_if_change(commit_message) { do_changes }
20
+ end
21
+
22
+ private
23
+
24
+ # @return [String]
25
+ def commit_message
26
+ sub.i18n_translate(:remove_commit_message, sub_path: sub.sub_path)
27
+ end
28
+
29
+ # @return [void]
30
+ def do_changes
31
+ ::FileUtils.rm_rf(sub.absolute_path)
32
+ source.on_sub_updated
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/sources/base/subs_paths'
4
+ require 'eac_ruby_utils/core_ext'
5
+
6
+ module Avm
7
+ module Sources
8
+ class Base
9
+ class Sub
10
+ # !method initialize(source, sub_path)
11
+ # @param source [Avm::Sources::Base]
12
+ # @param sub_path [Pathname]
13
+ common_constructor :source, :sub_path do
14
+ self.sub_path = sub_path.to_pathname
15
+ end
16
+
17
+ # @return [Pathname]
18
+ def absolute_path
19
+ sub_path.expand_path(source.path)
20
+ end
21
+
22
+ require_sub __FILE__, require_mode: :kernel
23
+ end
24
+ end
25
+ end
26
+ end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'avm/sources/base/sub'
3
4
  require 'avm/sources/base/subs_paths'
4
5
  require 'eac_ruby_utils/core_ext'
5
6
 
@@ -17,6 +18,12 @@ module Avm
17
18
  subs.lazy.map { |sub| path.expand_path.child_of?(sub.path) ? sub : nil }.find(&:present?)
18
19
  end
19
20
 
21
+ # @param sub_path [Pathname]
22
+ # @return [Avm::Sources::Base::Sub]
23
+ def sub(sub_path)
24
+ ::Avm::Sources::Base::Sub.new(self, sub_path)
25
+ end
26
+
20
27
  # @return [Enumerable<Avm::Sources::Base>]
21
28
  def subs
22
29
  subs_paths_to_search
@@ -73,7 +73,7 @@ module Avm
73
73
  return r if r.any?
74
74
 
75
75
  raise ::ArgumentError, "Source not found with ID=#{source_id}" \
76
- "(Available: #{available_units.map(&:id).join(', ')})"
76
+ "(Available: #{available_units.map(&:id).join(', ')})"
77
77
  end
78
78
 
79
79
  # @return [Array<Avm::Sources::Tests::Single>]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Avm
4
- VERSION = '0.82.0'
4
+ VERSION = '0.84.0'
5
5
  end
@@ -0,0 +1,6 @@
1
+ en:
2
+ avm:
3
+ sources:
4
+ base:
5
+ sub:
6
+ remove_commit_message: 'Sub[%{sub_path}]: remove.'
@@ -0,0 +1,6 @@
1
+ pt-BR:
2
+ avm:
3
+ sources:
4
+ base:
5
+ sub:
6
+ remove_commit_message: 'Sub[%{sub_path}]: remove.'
@@ -16,6 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.files = Dir['{exe,lib}/**/*', 'Gemfile', 'MIT-LICENSE', 'README.rdoc']
17
17
  s.bindir = 'exe'
18
18
  s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
+ s.required_ruby_version = '>= 2.7'
19
20
 
20
21
  s.add_dependency 'activesupport', '~> 4.2', '>= 4.2.10'
21
22
  s.add_dependency 'colorize', '~> 0.8.1'
@@ -12,4 +12,5 @@ Gem::Specification.new do |s|
12
12
  s.authors = ['Esquilo Azul Company']
13
13
  s.summary = 'Ruby gem stub for tests.'
14
14
  s.files = Dir['{lib}/**/*']
15
+ s.required_ruby_version = '>= 2.7'
15
16
  end
@@ -4,5 +4,5 @@ source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
6
 
7
- local_gemfile = ::File.join(::File.dirname(__FILE__), 'Gemfile.local')
8
- eval_gemfile local_gemfile if ::File.exist?(local_gemfile)
7
+ local_gemfile = File.join(File.dirname(__FILE__), 'Gemfile.local')
8
+ eval_gemfile local_gemfile if File.exist?(local_gemfile)
@@ -11,13 +11,14 @@ Gem::Specification.new do |s|
11
11
  s.summary = 'Put here de description.'
12
12
 
13
13
  s.files = Dir['{lib,template}/**/*']
14
+ s.required_ruby_version = '>= 2.7'
14
15
 
15
- s.add_dependency 'asciidoctor', '~> 2.0', '>= 2.0.18'
16
- s.add_dependency 'avm-eac_webapp_base0', '~> 0.15'
17
- s.add_dependency 'eac_ruby_utils', '~> 0.112'
16
+ s.add_dependency 'asciidoctor', '~> 2.0', '>= 2.0.20'
17
+ s.add_dependency 'avm-eac_webapp_base0', '~> 0.18', '>= 0.18.2'
18
+ s.add_dependency 'eac_ruby_utils', '~> 0.119', '>= 0.119.2'
18
19
  s.add_dependency 'os', '~> 1.1', '>= 1.1.4'
19
20
  s.add_dependency 'rouge', '~> 3.30'
20
21
 
21
- s.add_development_dependency 'eac_fs', '~> 0.14'
22
- s.add_development_dependency 'eac_ruby_gem_support', '~> 0.2'
22
+ s.add_development_dependency 'eac_fs', '~> 0.16'
23
+ s.add_development_dependency 'eac_ruby_gem_support', '~> 0.9'
23
24
  end
@@ -17,14 +17,16 @@ module Avm
17
17
  delegate :instance, to: :build
18
18
  delegate :author_email, :author_name, to: :instance
19
19
 
20
- ATTRIBUTES = ['Author Initials', 'toc', 'icons', 'numbered', 'website'].freeze
20
+ ATTRIBUTES = ['Author Initials', 'toc', 'icons', 'numbered', 'source-highlighter',
21
+ 'website'].freeze
21
22
  TOC = 'left'
22
23
  ICONS = ''
23
24
  NUMBERED = ''
25
+ SOURCE_HIGHLIGHTER = 'rouge'
24
26
 
25
27
  # @return [String]
26
28
  def attribute_line(name, value)
27
- [":#{name}:", value].reject(&:blank?).join(' ')
29
+ [":#{name}:", value].compact_blank.join(' ')
28
30
  end
29
31
 
30
32
  def attributes_lines
@@ -62,7 +64,7 @@ module Avm
62
64
  # @return [Pathname]
63
65
  def stylesheet_path
64
66
  source_document.source.theme_stylesheet_path
65
- .relative_path_from(document.convert_base_dir)
67
+ .relative_path_from(document.convert_base_dir)
66
68
  end
67
69
 
68
70
  # @return [String]
@@ -75,7 +75,7 @@ module Avm
75
75
  # @return [Array<String>]
76
76
  def macro_lines(name, arguments = [])
77
77
  ::Avm::EacAsciidoctorBase0::Instances::Macros.const_get(name.to_s.camelize)
78
- .new(self, arguments).result
78
+ .new(self, arguments).result
79
79
  end
80
80
 
81
81
  def perform
@@ -109,7 +109,7 @@ module Avm
109
109
 
110
110
  def children_uncached
111
111
  source_document.children
112
- .map { |source_child| self.class.new(build, self, source_child) }
112
+ .map { |source_child| self.class.new(build, self, source_child) }
113
113
  end
114
114
  end
115
115
  end
@@ -38,8 +38,8 @@ module Avm
38
38
 
39
39
  def children_uncached
40
40
  root_path.children.select(&:directory?)
41
- .reject { |path| path.basename.to_path == MEDIA_DIRECTORY_BASENAME }
42
- .map { |path| self.class.new(source, self, path.basename) }
41
+ .reject { |path| path.basename.to_path == MEDIA_DIRECTORY_BASENAME }
42
+ .map { |path| self.class.new(source, self, path.basename) }
43
43
  end
44
44
  end
45
45
  end
@@ -8,7 +8,7 @@ module Avm
8
8
  module EacAsciidoctorBase0
9
9
  module Sources
10
10
  class Base < ::Avm::EacWebappBase0::Sources::Base
11
- require_sub __FILE__
11
+ require_sub __FILE__, include_modules: true
12
12
 
13
13
  CONTENT_DIRECTORY_SUBPATH = ::Pathname.new('content')
14
14
  CONTENT_DOCUMENT_BASENAME = ::Pathname.new('body.adoc')
@@ -16,8 +16,6 @@ module Avm
16
16
  ::Avm::EacAsciidoctorBase0::Sources::Base::Document::TITLE_BASENAME
17
17
  )
18
18
 
19
- require_sub __FILE__, include_modules: true
20
-
21
19
  def content_directory
22
20
  path.join(CONTENT_DIRECTORY_SUBPATH)
23
21
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacAsciidoctorBase0
5
- VERSION = '0.19.0'
5
+ VERSION = '0.20.0'
6
6
  end
7
7
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'avm/eac_asciidoctor_base0/file_formats/base'
4
4
 
5
- ::RSpec.describe ::Avm::EacAsciidoctorBase0::FileFormats::Base do
5
+ RSpec.describe Avm::EacAsciidoctorBase0::FileFormats::Base do
6
6
  include_examples 'avm_file_format_file_resource_name', {
7
7
  'content/title' => 'Content[/]',
8
8
  'content/body.adoc' => 'Content[/]',
@@ -2,16 +2,16 @@
2
2
 
3
3
  require 'avm/eac_asciidoctor_base0/instances/build'
4
4
 
5
- ::RSpec.describe ::Avm::EacAsciidoctorBase0::Instances::Build::Document do # rubocop:disable Metrics/BlockLength
5
+ RSpec.describe Avm::EacAsciidoctorBase0::Instances::Build::Document do
6
6
  let(:app_director) { eac_asciidoctor_base0_stubs }
7
- let(:build) { ::Avm::EacAsciidoctorBase0::Instances::Build.new(app_director.instance) }
7
+ let(:build) { Avm::EacAsciidoctorBase0::Instances::Build.new(app_director.instance) }
8
8
  let(:fixtures_dir) { __dir__.to_pathname.join('document_spec_files') }
9
- let(:instance) { build_doc_child(build.root_document, :c1, :c1_1, :c1_1_1) }
9
+ let(:instance) { build_doc_child(build.root_document, :c1, :c1_1, :c1_1_1) } # rubocop:disable Naming/VariableNumber
10
10
  let(:target_file) { fixtures_dir.join('pre_processed_root_body.adoc') }
11
11
  let(:source) { app_director.source }
12
12
  let(:doc_template) do
13
13
  r = temp_dir
14
- ::FileUtils.copy_entry(source.root_document.root_path, r)
14
+ FileUtils.copy_entry(source.root_document.root_path, r)
15
15
  r
16
16
  end
17
17
 
@@ -19,19 +19,19 @@ require 'avm/eac_asciidoctor_base0/instances/build'
19
19
  copy_template_hash(
20
20
  source.root_document,
21
21
  c1: {
22
- c1_1: {
23
- c1_1_1: {
24
- c1_1_1_1: {},
25
- c1_1_1_2: {}
22
+ c1_1: { # rubocop:disable Naming/VariableNumber
23
+ c1_1_1: { # rubocop:disable Naming/VariableNumber
24
+ c1_1_1_1: {}, # rubocop:disable Naming/VariableNumber
25
+ c1_1_1_2: {} # rubocop:disable Naming/VariableNumber
26
26
  },
27
- c1_1_2: {
28
- c1_1_2_1: {},
29
- c1_1_2_2: {}
27
+ c1_1_2: { # rubocop:disable Naming/VariableNumber
28
+ c1_1_2_1: {}, # rubocop:disable Naming/VariableNumber
29
+ c1_1_2_2: {} # rubocop:disable Naming/VariableNumber
30
30
  }
31
31
  }
32
32
  },
33
33
  c2: {
34
- c2_1: {}
34
+ c2_1: {} # rubocop:disable Naming/VariableNumber
35
35
  }
36
36
  )
37
37
  end
@@ -42,19 +42,19 @@ require 'avm/eac_asciidoctor_base0/instances/build'
42
42
 
43
43
  # @return [Avm::EacAsciidoctorBase0::Sources::Base::Document]
44
44
  def copy_template_doc(parent, basename)
45
- parent.assert_argument(::Avm::EacAsciidoctorBase0::Sources::Base::Document, 'parent')
45
+ parent.assert_argument(Avm::EacAsciidoctorBase0::Sources::Base::Document, 'parent')
46
46
 
47
47
  root_target = parent.root_path.join(basename.to_s)
48
- ::FileUtils.copy_entry(doc_template, root_target)
48
+ FileUtils.copy_entry(doc_template, root_target)
49
49
  root_target.join('title').write(root_target.basename.to_path)
50
- ::Avm::EacAsciidoctorBase0::Sources::Base::Document.new(parent.source, parent,
51
- root_target.basename)
50
+ Avm::EacAsciidoctorBase0::Sources::Base::Document.new(parent.source, parent,
51
+ root_target.basename)
52
52
  end
53
53
 
54
54
  # @return [Array<Avm::EacAsciidoctorBase0::Sources::Base::Document>]
55
55
  def copy_template_hash(parent, hash)
56
- parent.assert_argument(::Avm::EacAsciidoctorBase0::Sources::Base::Document, 'parent')
57
- hash.assert_argument(::Hash, 'hash')
56
+ parent.assert_argument(Avm::EacAsciidoctorBase0::Sources::Base::Document, 'parent')
57
+ hash.assert_argument(Hash, 'hash')
58
58
 
59
59
  hash.map do |k, v|
60
60
  r = copy_template_doc(parent, k)
@@ -5,6 +5,7 @@ The Author <theauthor@example.net>
5
5
  :toc: left
6
6
  :icons:
7
7
  :numbered:
8
+ :source-highlighter: rouge
8
9
  :website: https://www.example.net
9
10
 
10
11
  [.normal]