avm-eac_asciidoctor_base0 0.13.0 → 0.14.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a546422b3cb812c43b21966dba3eb6da211ff0409e821f8e26672acf78ed0aca
|
4
|
+
data.tar.gz: 2e1fd8ae8cbc6bac43888f7a03c9d14b4e4760c84605992bd3f3c5a1576ab879
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 840067f24eacedb4369ab18a86630b2380a21ba1d4726ebcba4cdf34b944a592fda7fa25e03d499c2d92a6e13fe21a4ac06463bcc3583316bef79febbe126ca0
|
7
|
+
data.tar.gz: e01bd7718fb4df7c95fef5be17b9197fb43a7071794961ee5fbf886cb24681d96979e9e1d36471969ba0570b29aed810557f7f4d3956cc839c677814cac04cfe
|
@@ -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
|
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.
|
4
|
+
version: 0.14.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:
|
11
|
+
date: 2023-01-09 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.
|
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.
|
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
|