asciidoctor-dita-map 0.9.16 → 0.9.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dita-map/cli.rb +5 -1
- data/lib/dita-map/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bae8e3ac24793e546c47c6bde3c3a74c8c49610130aa7b65725ebf4cafaf00d1
|
|
4
|
+
data.tar.gz: 81022e27e69ffacc9051f0c960cdec9e127ad5442a9e31679cc5c798f4813a32
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2680764d275e29d347781494aedf947b7d68eed954a3321caa1a86ee1de018022b32348ff13233d16c00636be7e5826bf06b7c9801ed8b44f4623348b391d773
|
|
7
|
+
data.tar.gz: 22c7e909b4949dd2881621ab710abbf2d24eef094ea00e6fe93e4ca678e3784fd79d047e707b4822a5cd56f958a769a4ee912092b0d3c2d07b9fc0986a62a2a8
|
data/lib/dita-map/cli.rb
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
require 'optparse'
|
|
25
25
|
require 'pathname'
|
|
26
|
+
require 'asciidoctor'
|
|
26
27
|
require_relative 'convert'
|
|
27
28
|
require_relative 'version'
|
|
28
29
|
|
|
@@ -56,6 +57,9 @@ module AsciidoctorDitaMap
|
|
|
56
57
|
|
|
57
58
|
@converter.prep << File.read(file)
|
|
58
59
|
@converter.prep << "\n"
|
|
60
|
+
|
|
61
|
+
@converter.prep.gsub!(Asciidoctor::IncludeDirectiveRx, '')
|
|
62
|
+
@converter.prep.gsub!(/^:_(mod-docs-content|content|module)-type:\s.*$/, '')
|
|
59
63
|
end
|
|
60
64
|
|
|
61
65
|
opt.on('-i', '--include-self', 'make the supplied file the toplevel topicref') do
|
|
@@ -156,7 +160,7 @@ module AsciidoctorDitaMap
|
|
|
156
160
|
input.gsub!(/^(?:ifn?def|ifeval|endif)::\S*\[(.*)\]\s*$/, '\1') if not @conditionals
|
|
157
161
|
|
|
158
162
|
if @converter.opts[:self] and file != $stdin
|
|
159
|
-
result = @converter.run input, base_dir, file
|
|
163
|
+
result = @converter.run input, base_dir, Pathname.new(file).basename.to_s
|
|
160
164
|
else
|
|
161
165
|
result = @converter.run input, base_dir
|
|
162
166
|
end
|
data/lib/dita-map/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: asciidoctor-dita-map
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jaromir Hradilek
|
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
144
144
|
- !ruby/object:Gem::Version
|
|
145
145
|
version: '0'
|
|
146
146
|
requirements: []
|
|
147
|
-
rubygems_version: 4.0.
|
|
147
|
+
rubygems_version: 4.0.21
|
|
148
148
|
specification_version: 4
|
|
149
149
|
summary: Convert an AsciiDoc file to a DITA map
|
|
150
150
|
test_files: []
|