eac_tools 0.60.2 → 0.61.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +34 -29
  3. data/lib/eac_tools/version.rb +1 -1
  4. data/sub/avm/avm.gemspec +1 -1
  5. data/sub/avm/lib/avm/version.rb +1 -1
  6. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/header_lines.rb +1 -1
  7. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/pre_process_line.rb +16 -4
  8. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document.rb +23 -1
  9. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/base.rb +21 -0
  10. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/breadcrumbs.rb +55 -0
  11. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/child_docs/document_builder.rb +63 -0
  12. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/child_docs.rb +35 -0
  13. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/default_body.rb +21 -0
  14. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros.rb +13 -0
  15. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/base.rb +5 -1
  16. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/version.rb +1 -1
  17. data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +2 -2
  18. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base.rb +2 -2
  19. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
  20. data/sub/avm-eac_ubuntu_base0/Gemfile +3 -0
  21. data/sub/avm-eac_ubuntu_base0/avm-eac_ubuntu_base0.gemspec +1 -1
  22. data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/docker_image.rb +1 -1
  23. data/sub/avm-eac_ubuntu_base0/lib/avm/eac_ubuntu_base0/version.rb +1 -1
  24. data/sub/avm-files/avm-files.gemspec +5 -5
  25. data/sub/avm-files/lib/avm/files/appendable/templatized_directory.rb +2 -2
  26. data/sub/avm-files/lib/avm/files/version.rb +1 -1
  27. data/sub/eac_templates/Gemfile +8 -0
  28. data/sub/eac_templates/eac_templates.gemspec +19 -0
  29. data/sub/eac_templates/lib/eac_templates/core_ext.rb +4 -0
  30. data/sub/eac_templates/lib/eac_templates/interface_methods.rb +12 -0
  31. data/sub/eac_templates/lib/eac_templates/modules/ancestor/directory.rb +15 -0
  32. data/sub/eac_templates/lib/eac_templates/modules/ancestor/file.rb +15 -0
  33. data/sub/eac_templates/lib/eac_templates/modules/ancestor/fs_object.rb +32 -0
  34. data/sub/eac_templates/lib/eac_templates/modules/ancestor.rb +48 -0
  35. data/sub/eac_templates/lib/eac_templates/modules/base.rb +35 -0
  36. data/sub/eac_templates/lib/eac_templates/modules.rb +9 -0
  37. data/sub/eac_templates/lib/eac_templates/patches/module/erb_template.rb +9 -0
  38. data/sub/eac_templates/lib/eac_templates/patches/module/template.rb +9 -0
  39. data/sub/eac_templates/lib/eac_templates/patches/module.rb +4 -0
  40. data/sub/eac_templates/lib/eac_templates/patches/object/erb_template.rb +9 -0
  41. data/sub/eac_templates/lib/eac_templates/patches/object/template.rb +9 -0
  42. data/sub/eac_templates/lib/eac_templates/patches/object.rb +4 -0
  43. data/sub/eac_templates/lib/eac_templates/patches.rb +4 -0
  44. data/sub/eac_templates/lib/eac_templates/sources/directory.rb +24 -0
  45. data/sub/eac_templates/lib/eac_templates/sources/file.rb +24 -0
  46. data/sub/eac_templates/lib/eac_templates/sources/from_all_gems.rb +4 -0
  47. data/sub/eac_templates/lib/eac_templates/sources/from_gem.rb +37 -0
  48. data/sub/eac_templates/lib/eac_templates/sources/fs_object.rb +53 -0
  49. data/sub/eac_templates/lib/eac_templates/sources/internal_set.rb +22 -0
  50. data/sub/eac_templates/lib/eac_templates/sources/set.rb +54 -0
  51. data/sub/eac_templates/lib/eac_templates/sources/single.rb +29 -0
  52. data/sub/eac_templates/lib/eac_templates/sources.rb +9 -0
  53. data/sub/eac_templates/lib/eac_templates/variables/directory.rb +47 -0
  54. data/sub/eac_templates/lib/eac_templates/variables/file.rb +50 -0
  55. data/sub/eac_templates/lib/eac_templates/variables/fs_object.rb +65 -0
  56. data/sub/eac_templates/lib/eac_templates/variables/not_found_error.rb +7 -0
  57. data/sub/eac_templates/lib/eac_templates/variables/providers/base.rb +23 -0
  58. data/sub/eac_templates/lib/eac_templates/variables/providers/config_reader.rb +29 -0
  59. data/sub/eac_templates/lib/eac_templates/variables/providers/entries_reader.rb +25 -0
  60. data/sub/eac_templates/lib/eac_templates/variables/providers/generic.rb +25 -0
  61. data/sub/eac_templates/lib/eac_templates/variables/providers/hash.rb +29 -0
  62. data/sub/eac_templates/lib/eac_templates/variables/providers.rb +25 -0
  63. data/sub/eac_templates/lib/eac_templates/variables.rb +9 -0
  64. data/sub/eac_templates/lib/eac_templates/version.rb +5 -0
  65. data/sub/eac_templates/lib/eac_templates.rb +7 -0
  66. data/sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec.rb +120 -0
  67. data/sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec_files/path1/a_module/a/a_a +1 -0
  68. data/sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec_files/path1/a_module/b +1 -0
  69. data/sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec_files/path1/super_class/a/a_b +1 -0
  70. data/sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec_files/path1/super_class/b +1 -0
  71. data/sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec_files/path2/a_module/a/a_b +1 -0
  72. data/sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec_files/path2/a_module/b +1 -0
  73. data/sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec_files/path2/a_module/c +1 -0
  74. data/sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec_files/path2/sub_class/b +1 -0
  75. data/sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec_files/path2/super_class/a/a_b +1 -0
  76. data/sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec_files/path2/super_class/b +1 -0
  77. data/sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb +26 -0
  78. data/sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec_files/path/my_stub_with_template +1 -0
  79. data/sub/eac_templates/spec/lib/eac_templates/sources/set_spec.rb +42 -0
  80. data/sub/eac_templates/spec/lib/eac_templates/sources/set_spec_files/path1/subdir1/file1.template +1 -0
  81. data/sub/eac_templates/spec/lib/eac_templates/sources/set_spec_files/path1/subdir1/file2 +1 -0
  82. data/sub/eac_templates/spec/lib/eac_templates/sources/set_spec_files/path2/subdir1/file3.template +1 -0
  83. data/sub/eac_templates/spec/lib/eac_templates/variables/file_spec.rb +35 -0
  84. data/sub/eac_templates/spec/lib/eac_templates/variables/file_spec_files/expected_content +2 -0
  85. data/sub/eac_templates/spec/lib/eac_templates/variables/file_spec_files/source.template +2 -0
  86. data/sub/eac_templates/spec/rubocop_spec.rb +3 -0
  87. data/sub/eac_templates/spec/spec_helper.rb +4 -0
  88. metadata +79 -14
  89. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/breadcrumbs_macro_value.rb +0 -59
  90. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/child_docs_macro_value.rb +0 -49
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.60.2
4
+ version: 0.61.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Put here the authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-26 00:00:00.000000000 Z
11
+ date: 2023-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm
@@ -17,6 +17,9 @@ dependencies:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.67'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.67.1
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -24,26 +27,23 @@ dependencies:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0.67'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.67.1
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: avm-eac_asciidoctor_base0
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: '0.18'
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: 0.18.1
39
+ version: '0.19'
37
40
  type: :runtime
38
41
  prerelease: false
39
42
  version_requirements: !ruby/object:Gem::Requirement
40
43
  requirements:
41
44
  - - "~>"
42
45
  - !ruby/object:Gem::Version
43
- version: '0.18'
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: 0.18.1
46
+ version: '0.19'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: avm-eac_generic_base0
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -221,7 +221,7 @@ dependencies:
221
221
  version: '0.30'
222
222
  - - ">="
223
223
  - !ruby/object:Gem::Version
224
- version: 0.30.1
224
+ version: 0.30.2
225
225
  type: :runtime
226
226
  prerelease: false
227
227
  version_requirements: !ruby/object:Gem::Requirement
@@ -231,7 +231,7 @@ dependencies:
231
231
  version: '0.30'
232
232
  - - ">="
233
233
  - !ruby/object:Gem::Version
234
- version: 0.30.1
234
+ version: 0.30.2
235
235
  - !ruby/object:Gem::Dependency
236
236
  name: avm-eac_webapp_base0
237
237
  requirement: !ruby/object:Gem::Requirement
@@ -406,12 +406,16 @@ files:
406
406
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/base.rb
407
407
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build.rb
408
408
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document.rb
409
- - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/breadcrumbs_macro_value.rb
410
- - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/child_docs_macro_value.rb
411
409
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/header_lines.rb
412
410
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/media.rb
413
411
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/build/document/pre_process_line.rb
414
412
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/deploy.rb
413
+ - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros.rb
414
+ - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/base.rb
415
+ - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/breadcrumbs.rb
416
+ - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/child_docs.rb
417
+ - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/child_docs/document_builder.rb
418
+ - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/macros/default_body.rb
415
419
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/source_generators.rb
416
420
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/source_generators/base.rb
417
421
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources.rb
@@ -1962,6 +1966,67 @@ files:
1962
1966
  - sub/eac_ruby_utils/spec/locales/pt-BR.yml
1963
1967
  - sub/eac_ruby_utils/spec/rubocop_check_spec.rb
1964
1968
  - sub/eac_ruby_utils/spec/spec_helper.rb
1969
+ - sub/eac_templates/Gemfile
1970
+ - sub/eac_templates/eac_templates.gemspec
1971
+ - sub/eac_templates/lib/eac_templates.rb
1972
+ - sub/eac_templates/lib/eac_templates/core_ext.rb
1973
+ - sub/eac_templates/lib/eac_templates/interface_methods.rb
1974
+ - sub/eac_templates/lib/eac_templates/modules.rb
1975
+ - sub/eac_templates/lib/eac_templates/modules/ancestor.rb
1976
+ - sub/eac_templates/lib/eac_templates/modules/ancestor/directory.rb
1977
+ - sub/eac_templates/lib/eac_templates/modules/ancestor/file.rb
1978
+ - sub/eac_templates/lib/eac_templates/modules/ancestor/fs_object.rb
1979
+ - sub/eac_templates/lib/eac_templates/modules/base.rb
1980
+ - sub/eac_templates/lib/eac_templates/patches.rb
1981
+ - sub/eac_templates/lib/eac_templates/patches/module.rb
1982
+ - sub/eac_templates/lib/eac_templates/patches/module/erb_template.rb
1983
+ - sub/eac_templates/lib/eac_templates/patches/module/template.rb
1984
+ - sub/eac_templates/lib/eac_templates/patches/object.rb
1985
+ - sub/eac_templates/lib/eac_templates/patches/object/erb_template.rb
1986
+ - sub/eac_templates/lib/eac_templates/patches/object/template.rb
1987
+ - sub/eac_templates/lib/eac_templates/sources.rb
1988
+ - sub/eac_templates/lib/eac_templates/sources/directory.rb
1989
+ - sub/eac_templates/lib/eac_templates/sources/file.rb
1990
+ - sub/eac_templates/lib/eac_templates/sources/from_all_gems.rb
1991
+ - sub/eac_templates/lib/eac_templates/sources/from_gem.rb
1992
+ - sub/eac_templates/lib/eac_templates/sources/fs_object.rb
1993
+ - sub/eac_templates/lib/eac_templates/sources/internal_set.rb
1994
+ - sub/eac_templates/lib/eac_templates/sources/set.rb
1995
+ - sub/eac_templates/lib/eac_templates/sources/single.rb
1996
+ - sub/eac_templates/lib/eac_templates/variables.rb
1997
+ - sub/eac_templates/lib/eac_templates/variables/directory.rb
1998
+ - sub/eac_templates/lib/eac_templates/variables/file.rb
1999
+ - sub/eac_templates/lib/eac_templates/variables/fs_object.rb
2000
+ - sub/eac_templates/lib/eac_templates/variables/not_found_error.rb
2001
+ - sub/eac_templates/lib/eac_templates/variables/providers.rb
2002
+ - sub/eac_templates/lib/eac_templates/variables/providers/base.rb
2003
+ - sub/eac_templates/lib/eac_templates/variables/providers/config_reader.rb
2004
+ - sub/eac_templates/lib/eac_templates/variables/providers/entries_reader.rb
2005
+ - sub/eac_templates/lib/eac_templates/variables/providers/generic.rb
2006
+ - sub/eac_templates/lib/eac_templates/variables/providers/hash.rb
2007
+ - sub/eac_templates/lib/eac_templates/version.rb
2008
+ - sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec.rb
2009
+ - sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec_files/path1/a_module/a/a_a
2010
+ - sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec_files/path1/a_module/b
2011
+ - sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec_files/path1/super_class/a/a_b
2012
+ - sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec_files/path1/super_class/b
2013
+ - sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec_files/path2/a_module/a/a_b
2014
+ - sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec_files/path2/a_module/b
2015
+ - sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec_files/path2/a_module/c
2016
+ - sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec_files/path2/sub_class/b
2017
+ - sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec_files/path2/super_class/a/a_b
2018
+ - sub/eac_templates/spec/lib/eac_templates/patches/module/template_spec_files/path2/super_class/b
2019
+ - sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb
2020
+ - sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec_files/path/my_stub_with_template
2021
+ - sub/eac_templates/spec/lib/eac_templates/sources/set_spec.rb
2022
+ - sub/eac_templates/spec/lib/eac_templates/sources/set_spec_files/path1/subdir1/file1.template
2023
+ - sub/eac_templates/spec/lib/eac_templates/sources/set_spec_files/path1/subdir1/file2
2024
+ - sub/eac_templates/spec/lib/eac_templates/sources/set_spec_files/path2/subdir1/file3.template
2025
+ - sub/eac_templates/spec/lib/eac_templates/variables/file_spec.rb
2026
+ - sub/eac_templates/spec/lib/eac_templates/variables/file_spec_files/expected_content
2027
+ - sub/eac_templates/spec/lib/eac_templates/variables/file_spec_files/source.template
2028
+ - sub/eac_templates/spec/rubocop_spec.rb
2029
+ - sub/eac_templates/spec/spec_helper.rb
1965
2030
  homepage:
1966
2031
  licenses: []
1967
2032
  metadata: {}
@@ -1,59 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Avm
6
- module EacAsciidoctorBase0
7
- module Instances
8
- class Build
9
- class Document
10
- class BreadcrumbsMacroValue
11
- enable_method_class
12
- common_constructor :document
13
-
14
- NODE_SEPARATOR = ' » '
15
- ROOT_DOCUMENT_TITLE = 'Home'
16
-
17
- # @return [Array<String>]
18
- def result
19
- trail_nodes.join(NODE_SEPARATOR)
20
- end
21
-
22
- def trail_nodes
23
- r = []
24
- current = document
25
- while current.present?
26
- r.unshift(Node.new(document, current))
27
- current = current.parent_document
28
- end
29
- r
30
- end
31
-
32
- class Node
33
- common_constructor :current, :document
34
-
35
- # @return [String]
36
- def address
37
- current.href_to_other_body(document)
38
- end
39
-
40
- # @return [String]
41
- def title
42
- if document.parent_document.present?
43
- document.source_document.title
44
- else
45
- ROOT_DOCUMENT_TITLE
46
- end
47
- end
48
-
49
- # @return [String]
50
- def to_s
51
- "link:#{address}[#{title}]"
52
- end
53
- end
54
- end
55
- end
56
- end
57
- end
58
- end
59
- end
@@ -1,49 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Avm
6
- module EacAsciidoctorBase0
7
- module Instances
8
- class Build
9
- class Document
10
- class ChildDocsMacroValue
11
- enable_method_class
12
- common_constructor :document
13
-
14
- # @return [Array<String>]
15
- def result
16
- document.children.map { |child_doc| ChildDocLine.new(document, child_doc) }.sort
17
- .map(&:result)
18
- end
19
-
20
- class ChildDocLine
21
- common_constructor :document, :child
22
- compare_by :title, :address
23
-
24
- # @return [Pathname]
25
- def address
26
- document.href_to_other_body(child)
27
- end
28
-
29
- # @return [String]
30
- def link
31
- "link:#{address}[#{title}]"
32
- end
33
-
34
- # @return [String]
35
- def result
36
- "* #{link}"
37
- end
38
-
39
- # @return [String]
40
- def title
41
- child.source_document.title
42
- end
43
- end
44
- end
45
- end
46
- end
47
- end
48
- end
49
- end