eac_tools 0.51.0 → 0.53.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (20) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +19 -19
  3. data/lib/eac_tools/version.rb +1 -1
  4. data/sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec +2 -2
  5. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base/file_resource_name.rb +37 -0
  6. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base.rb +17 -0
  7. data/sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/version.rb +1 -1
  8. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/file_formats/base_spec.rb +13 -0
  9. data/sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/source_generators/base_spec_files/no_options/theme/main.css +1 -0
  10. data/sub/avm-eac_asciidoctor_base0/template/avm/eac_asciidoctor_base0/source_generators/base/theme/main.css +1 -0
  11. data/sub/avm-eac_generic_base0/avm-eac_generic_base0.gemspec +2 -2
  12. data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/file_formats/base/file_resource_name_helper.rb +23 -0
  13. data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/file_formats/base.rb +3 -0
  14. data/sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/version.rb +1 -1
  15. data/sub/avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec +1 -1
  16. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats/base/file_resource_name.rb +3 -5
  17. data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +1 -1
  18. data/sub/avm-eac_webapp_base0/avm-eac_webapp_base0.gemspec +5 -5
  19. data/sub/avm-eac_webapp_base0/lib/avm/eac_webapp_base0/version.rb +1 -1
  20. metadata +22 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2dbc38a08966af86a3d17c50ad0788770045d7dcbd7c336fbbc31c9883b6a0aa
4
- data.tar.gz: '0979accd22c7b7651e8ee52d4798efad58550b74e21def1a2df600f4a557386f'
3
+ metadata.gz: 4292c7dafc8fea6004c6bd827f4bc17d03bf3c8027cb468f9484fa3a1410c0e8
4
+ data.tar.gz: f4c8f529510815f1eced983511935c96271332fb5bb64d9899037c8239b8970a
5
5
  SHA512:
6
- metadata.gz: f3c593fb8b4e163a02e42b7540022bc5180abc1883f1ee2a9b8608035243fe99b43cb484894e0fcc7b40a33b3b63d0b00651885ae4685ba59b7acc40259ff25e
7
- data.tar.gz: 65b5f4c7a7713ebe7e49892df82e18965fc32d47304b4afc2ca35af8c0a82a0a85df6b238e79645cd7c99002ef09f3a407357ef3089aa77e61e0defa3d24fdec
6
+ metadata.gz: 92c6761b6cf54fe18ac480e51e4acff82b581c81ce7fb9971e0dd4a3094edfa20e17c9172a48b9bede3a374b741a1fa3818e744fcc2134d59261ceff43761bd7
7
+ data.tar.gz: af5cefe3c7ee50134b44b63958412dbf23a4d2c76d5d6a354b5cbd544090e59aa578a1293bc3b508eb6ec5d053dc950097830c457a863ea158e67920f6b96eea
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eac_tools (0.51.0)
4
+ eac_tools (0.53.0)
5
5
  avm (~> 0.60)
6
- avm-eac_asciidoctor_base0 (~> 0.13)
7
- avm-eac_generic_base0 (~> 0.8)
6
+ avm-eac_asciidoctor_base0 (~> 0.15)
7
+ avm-eac_generic_base0 (~> 0.9)
8
8
  avm-eac_latex_base0 (~> 0.3)
9
9
  avm-eac_php_base0 (~> 0.4, >= 0.4.1)
10
10
  avm-eac_postgresql_base0 (~> 0.2, >= 0.2.3)
@@ -13,8 +13,8 @@ PATH
13
13
  avm-eac_rails_base1 (~> 0.8)
14
14
  avm-eac_redmine_base0 (~> 0.18)
15
15
  avm-eac_redmine_plugin_base0 (~> 0.4)
16
- avm-eac_ruby_base1 (~> 0.28)
17
- avm-eac_webapp_base0 (~> 0.13)
16
+ avm-eac_ruby_base1 (~> 0.28, >= 0.28.1)
17
+ avm-eac_webapp_base0 (~> 0.13, >= 0.13.1)
18
18
  avm-eac_wordpress_base0 (~> 0.3)
19
19
  avm-tools (~> 0.143)
20
20
  eac_ruby_utils (~> 0.110, >= 0.110.1)
@@ -35,19 +35,19 @@ PATH
35
35
  PATH
36
36
  remote: sub/avm-eac_asciidoctor_base0
37
37
  specs:
38
- avm-eac_asciidoctor_base0 (0.13.0)
38
+ avm-eac_asciidoctor_base0 (0.15.0)
39
39
  asciidoctor (~> 2.0, >= 2.0.18)
40
- avm-eac_webapp_base0 (~> 0.13)
41
- eac_ruby_utils (~> 0.109)
40
+ avm-eac_webapp_base0 (~> 0.13, >= 0.13.1)
41
+ eac_ruby_utils (~> 0.110, >= 0.110.1)
42
42
  os (~> 1.1, >= 1.1.4)
43
43
  rouge (~> 3.30)
44
44
 
45
45
  PATH
46
46
  remote: sub/avm-eac_generic_base0
47
47
  specs:
48
- avm-eac_generic_base0 (0.8.0)
49
- avm (~> 0.53)
50
- eac_ruby_utils (~> 0.106, >= 0.106.1)
48
+ avm-eac_generic_base0 (0.9.0)
49
+ avm (~> 0.60)
50
+ eac_ruby_utils (~> 0.110, >= 0.110.1)
51
51
 
52
52
  PATH
53
53
  remote: sub/avm-eac_latex_base0
@@ -118,9 +118,9 @@ PATH
118
118
  PATH
119
119
  remote: sub/avm-eac_ruby_base1
120
120
  specs:
121
- avm-eac_ruby_base1 (0.28.0)
121
+ avm-eac_ruby_base1 (0.28.1)
122
122
  avm (~> 0.60)
123
- avm-eac_generic_base0 (~> 0.8)
123
+ avm-eac_generic_base0 (~> 0.9)
124
124
  eac_ruby_utils (~> 0.110, >= 0.110.1)
125
125
 
126
126
  PATH
@@ -134,13 +134,13 @@ PATH
134
134
  PATH
135
135
  remote: sub/avm-eac_webapp_base0
136
136
  specs:
137
- avm-eac_webapp_base0 (0.13.0)
138
- avm (~> 0.57)
139
- avm-eac_generic_base0 (~> 0.8)
140
- avm-eac_postgresql_base0 (~> 0.2, >= 0.2.2)
141
- avm-eac_ubuntu_base0 (~> 0.3)
137
+ avm-eac_webapp_base0 (0.13.1)
138
+ avm (~> 0.60)
139
+ avm-eac_generic_base0 (~> 0.9)
140
+ avm-eac_postgresql_base0 (~> 0.2, >= 0.2.3)
141
+ avm-eac_ubuntu_base0 (~> 0.4)
142
142
  avm-files (~> 0.6)
143
- eac_ruby_utils (~> 0.109)
143
+ eac_ruby_utils (~> 0.110, >= 0.110.1)
144
144
 
145
145
  PATH
146
146
  remote: sub/avm-eac_wordpress_base0
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacTools
4
- VERSION = '0.51.0'
4
+ VERSION = '0.53.0'
5
5
  end
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  s.files = Dir['{lib,template}/**/*']
14
14
 
15
15
  s.add_dependency 'asciidoctor', '~> 2.0', '>= 2.0.18'
16
- s.add_dependency 'avm-eac_webapp_base0', '~> 0.13'
17
- s.add_dependency 'eac_ruby_utils', '~> 0.109'
16
+ s.add_dependency 'avm-eac_webapp_base0', '~> 0.13', '>= 0.13.1'
17
+ s.add_dependency 'eac_ruby_utils', '~> 0.110', '>= 0.110.1'
18
18
  s.add_dependency 'os', '~> 1.1', '>= 1.1.4'
19
19
  s.add_dependency 'rouge', '~> 3.30'
20
20
 
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/eac_generic_base0/file_formats/base'
4
+ require 'eac_ruby_utils/core_ext'
5
+
6
+ module Avm
7
+ module EacAsciidoctorBase0
8
+ module FileFormats
9
+ class Base < ::Avm::EacGenericBase0::FileFormats::Base
10
+ class FileResourceName
11
+ enable_method_class
12
+ common_constructor :file_format, :path do
13
+ self.path = path.to_pathname
14
+ end
15
+
16
+ CONTENT_PATTERNS = [%r{content/(.+)\z}].freeze
17
+
18
+ # @param path [Pathname]
19
+ # @return [Avm::FileFormats::FileWith]
20
+ def result
21
+ result_from_content || file_format.result_from_superclass(path)
22
+ end
23
+
24
+ private
25
+
26
+ def result_from_content
27
+ file_format.result_from_patterns(CONTENT_PATTERNS, path) do |m|
28
+ r = ::File.dirname(m[1])
29
+ r = '' if r == '.'
30
+ "Content[/#{r}]"
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/eac_generic_base0/file_formats/base'
4
+ require 'eac_ruby_utils/core_ext'
5
+
6
+ module Avm
7
+ module EacAsciidoctorBase0
8
+ module FileFormats
9
+ class Base < ::Avm::EacGenericBase0::FileFormats::Base
10
+ require_sub __FILE__
11
+
12
+ VALID_BASENAMES = %w[*.adoc title].freeze
13
+ VALID_TYPES = %w[].freeze
14
+ end
15
+ end
16
+ end
17
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacAsciidoctorBase0
5
- VERSION = '0.13.0'
5
+ VERSION = '0.15.0'
6
6
  end
7
7
  end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'avm/eac_asciidoctor_base0/file_formats/base'
4
+
5
+ ::RSpec.describe ::Avm::EacAsciidoctorBase0::FileFormats::Base do
6
+ include_examples 'avm_file_format_file_resource_name', {
7
+ 'content/title' => 'Content[/]',
8
+ 'content/body.adoc' => 'Content[/]',
9
+ 'content/abc/title' => 'Content[/abc]',
10
+ 'content/abc/body.adoc' => 'Content[/abc]',
11
+ 'content/abc/sub/body.adoc' => 'Content[/abc/sub]'
12
+ }
13
+ end
@@ -0,0 +1 @@
1
+ @import "https://darshandsoni.com/asciidoctor-skins/css/adoc-colony.css";
@@ -0,0 +1 @@
1
+ @import "https://darshandsoni.com/asciidoctor-skins/css/adoc-colony.css";
@@ -12,8 +12,8 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib,locale}/**/*']
14
14
 
15
- s.add_dependency 'avm', '~> 0.53'
16
- s.add_dependency 'eac_ruby_utils', '~> 0.106', '>= 0.106.1'
15
+ s.add_dependency 'avm', '~> 0.60'
16
+ s.add_dependency 'eac_ruby_utils', '~> 0.110', '>= 0.110.1'
17
17
 
18
18
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.5.1'
19
19
  end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module Avm
6
+ module EacGenericBase0
7
+ class FileFormats
8
+ class Base < ::Avm::FileFormats::Base
9
+ module FileResourceNameHelper
10
+ def result_from_patterns(patterns, path)
11
+ patterns.lazy.map { |pattern| pattern.to_parser.parse(path.to_path) }
12
+ .find(&:present?).if_present { |v| yield(v) }
13
+ end
14
+
15
+ def result_from_superclass(path)
16
+ self.class.superclass.instance_method(:file_resource_name)
17
+ .bind_call(self, path)
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -1,11 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'avm/file_formats/base'
4
+ require 'eac_ruby_utils/core_ext'
4
5
 
5
6
  module Avm
6
7
  module EacGenericBase0
7
8
  class FileFormats
8
9
  class Base < ::Avm::FileFormats::Base
10
+ require_sub __FILE__, include_modules: true
11
+
9
12
  VALID_BASENAMES = %w[*.asm *.bat *.coffee *.java *.js *.rb *.s *.sql *.tex *.url *.yml
10
13
  *.yaml].freeze
11
14
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacGenericBase0
5
- VERSION = '0.8.0'
5
+ VERSION = '0.9.0'
6
6
  end
7
7
  end
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.files = Dir['{lib,locale,template}/**/*']
14
14
 
15
15
  s.add_dependency 'avm', '~> 0.60'
16
- s.add_dependency 'avm-eac_generic_base0', '~> 0.8'
16
+ s.add_dependency 'avm-eac_generic_base0', '~> 0.9'
17
17
  s.add_dependency 'eac_ruby_utils', '~> 0.110', '>= 0.110.1'
18
18
 
19
19
  s.add_development_dependency 'aranha-parsers', '~> 0.14', '>= 0.14.1'
@@ -29,9 +29,8 @@ module Avm
29
29
  result_from_patterns(LIBRARY_PATTERNS) { |m| m[1].camelize }
30
30
  end
31
31
 
32
- def result_from_patterns(patterns)
33
- patterns.lazy.map { |pattern| pattern.to_parser.parse(path.to_path) }
34
- .find(&:present?).if_present { |v| yield(v) }
32
+ def result_from_patterns(patterns, &block)
33
+ file_format.result_from_patterns(patterns, path, &block)
35
34
  end
36
35
 
37
36
  def result_from_spec
@@ -39,8 +38,7 @@ module Avm
39
38
  end
40
39
 
41
40
  def result_from_superclass
42
- file_format.class.superclass.instance_method(:file_resource_name)
43
- .bind_call(file_format, path)
41
+ file_format.result_from_superclass(path)
44
42
  end
45
43
  end
46
44
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacRubyBase1
5
- VERSION = '0.28.0'
5
+ VERSION = '0.28.1'
6
6
  end
7
7
  end
@@ -12,12 +12,12 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.files = Dir['{lib,template}/**/*']
14
14
 
15
- s.add_dependency 'avm', '~> 0.57'
16
- s.add_dependency 'avm-eac_generic_base0', '~> 0.8'
17
- s.add_dependency 'avm-eac_postgresql_base0', '~> 0.2', '>= 0.2.2'
18
- s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.3'
15
+ s.add_dependency 'avm', '~> 0.60'
16
+ s.add_dependency 'avm-eac_generic_base0', '~> 0.9'
17
+ s.add_dependency 'avm-eac_postgresql_base0', '~> 0.2', '>= 0.2.3'
18
+ s.add_dependency 'avm-eac_ubuntu_base0', '~> 0.4'
19
19
  s.add_dependency 'avm-files', '~> 0.6'
20
- s.add_dependency 'eac_ruby_utils', '~> 0.109'
20
+ s.add_dependency 'eac_ruby_utils', '~> 0.110', '>= 0.110.1'
21
21
 
22
22
  s.add_development_dependency 'eac_ruby_gem_support', '~> 0.2'
23
23
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Avm
4
4
  module EacWebappBase0
5
- VERSION = '0.13.0'
5
+ VERSION = '0.13.1'
6
6
  end
7
7
  end
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.51.0
4
+ version: 0.53.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-01-09 00:00:00.000000000 Z
11
+ date: 2023-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.13'
33
+ version: '0.15'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.13'
40
+ version: '0.15'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: avm-eac_generic_base0
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.8'
47
+ version: '0.9'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.8'
54
+ version: '0.9'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: avm-eac_latex_base0
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -189,6 +189,9 @@ dependencies:
189
189
  - - "~>"
190
190
  - !ruby/object:Gem::Version
191
191
  version: '0.28'
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: 0.28.1
192
195
  type: :runtime
193
196
  prerelease: false
194
197
  version_requirements: !ruby/object:Gem::Requirement
@@ -196,6 +199,9 @@ dependencies:
196
199
  - - "~>"
197
200
  - !ruby/object:Gem::Version
198
201
  version: '0.28'
202
+ - - ">="
203
+ - !ruby/object:Gem::Version
204
+ version: 0.28.1
199
205
  - !ruby/object:Gem::Dependency
200
206
  name: avm-eac_webapp_base0
201
207
  requirement: !ruby/object:Gem::Requirement
@@ -203,6 +209,9 @@ dependencies:
203
209
  - - "~>"
204
210
  - !ruby/object:Gem::Version
205
211
  version: '0.13'
212
+ - - ">="
213
+ - !ruby/object:Gem::Version
214
+ version: 0.13.1
206
215
  type: :runtime
207
216
  prerelease: false
208
217
  version_requirements: !ruby/object:Gem::Requirement
@@ -210,6 +219,9 @@ dependencies:
210
219
  - - "~>"
211
220
  - !ruby/object:Gem::Version
212
221
  version: '0.13'
222
+ - - ">="
223
+ - !ruby/object:Gem::Version
224
+ version: 0.13.1
213
225
  - !ruby/object:Gem::Dependency
214
226
  name: avm-eac_wordpress_base0
215
227
  requirement: !ruby/object:Gem::Requirement
@@ -329,6 +341,8 @@ files:
329
341
  - sub/avm-eac_asciidoctor_base0/Gemfile
330
342
  - sub/avm-eac_asciidoctor_base0/avm-eac_asciidoctor_base0.gemspec
331
343
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0.rb
344
+ - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base.rb
345
+ - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/file_formats/base/file_resource_name.rb
332
346
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances.rb
333
347
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/apache_host.rb
334
348
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/instances/apache_path.rb
@@ -350,6 +364,7 @@ files:
350
364
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners.rb
351
365
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/sources/runners/build.rb
352
366
  - sub/avm-eac_asciidoctor_base0/lib/avm/eac_asciidoctor_base0/version.rb
367
+ - sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/file_formats/base_spec.rb
353
368
  - sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build/document_spec.rb
354
369
  - sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build/document_spec_files/pre_processed_root_body.adoc
355
370
  - sub/avm-eac_asciidoctor_base0/spec/lib/avm/eac_asciidoctor_base0/instances/build_spec.rb
@@ -372,6 +387,7 @@ files:
372
387
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0.rb
373
388
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/file_formats.rb
374
389
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/file_formats/base.rb
390
+ - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/file_formats/base/file_resource_name_helper.rb
375
391
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/instances.rb
376
392
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/instances/base.rb
377
393
  - sub/avm-eac_generic_base0/lib/avm/eac_generic_base0/sources.rb