avm-eac_asciidoctor_base0 0.13.0 → 0.15.0

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
  SHA256:
3
- metadata.gz: bce06fc28656156949473438b7da99a0b2bf92cb7f831f6a2cb4c4d787694ef0
4
- data.tar.gz: cfc9ffbc638e1aebdf84e75ed645c7bddaa5ccb03d21b17c83ca09b3b6b31174
3
+ metadata.gz: 03a8e128511aed4baea69daef29d25282fe0ed17af270c8e4d1feb37bdc5a389
4
+ data.tar.gz: 8c37deedbf87a82c09127ebeb567a0b65b621ec99497a441864cb938a0d64423
5
5
  SHA512:
6
- metadata.gz: 6ac6bb3faca6ed2312310a11f893526a7ee28c0213bb0d4b65349a2da54646f9a0654df1ff6cfd9341790b01344b11c0485248f40dec90370968964df48c7029
7
- data.tar.gz: 58153e3f2b5c8c95b6e5b972d1307eac5b769340ab3d323809613917531991983a75705638c086ba3bdab3b0a75ce7e261e1a0c19cd0095cdd67704846436537
6
+ metadata.gz: e4c05d9c6a1b657b9f83dad51d72c10830cdb0e28f937c43ab26f3d4845197123388503ee0960ad8568846921661cc308113bf75c332cf4913df6b356b1a5f53
7
+ data.tar.gz: b9a9a1f5952c4a97c7e311c0cd1fa86cadf69666c0170fe384ced948598eff86680885d8be3a3f98989c6db482b09d9cc9afb77a2a4b69665347f289e807c594
@@ -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 @@
1
+ @import "https://darshandsoni.com/asciidoctor-skins/css/adoc-colony.css";
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avm-eac_asciidoctor_base0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.15.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: 2022-12-10 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: asciidoctor
@@ -37,6 +37,9 @@ dependencies:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0.13'
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 0.13.1
40
43
  type: :runtime
41
44
  prerelease: false
42
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -44,20 +47,29 @@ dependencies:
44
47
  - - "~>"
45
48
  - !ruby/object:Gem::Version
46
49
  version: '0.13'
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: 0.13.1
47
53
  - !ruby/object:Gem::Dependency
48
54
  name: eac_ruby_utils
49
55
  requirement: !ruby/object:Gem::Requirement
50
56
  requirements:
51
57
  - - "~>"
52
58
  - !ruby/object:Gem::Version
53
- version: '0.109'
59
+ version: '0.110'
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 0.110.1
54
63
  type: :runtime
55
64
  prerelease: false
56
65
  version_requirements: !ruby/object:Gem::Requirement
57
66
  requirements:
58
67
  - - "~>"
59
68
  - !ruby/object:Gem::Version
60
- version: '0.109'
69
+ version: '0.110'
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: 0.110.1
61
73
  - !ruby/object:Gem::Dependency
62
74
  name: os
63
75
  requirement: !ruby/object:Gem::Requirement
@@ -127,6 +139,8 @@ extensions: []
127
139
  extra_rdoc_files: []
128
140
  files:
129
141
  - lib/avm/eac_asciidoctor_base0.rb
142
+ - lib/avm/eac_asciidoctor_base0/file_formats/base.rb
143
+ - lib/avm/eac_asciidoctor_base0/file_formats/base/file_resource_name.rb
130
144
  - lib/avm/eac_asciidoctor_base0/instances.rb
131
145
  - lib/avm/eac_asciidoctor_base0/instances/apache_host.rb
132
146
  - lib/avm/eac_asciidoctor_base0/instances/apache_path.rb