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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c016c694244dff2b14010224ad4a7d73b392e888fbd88544fa861a39ab1703c5
4
- data.tar.gz: 037cc6b077f7d60371ad24a20812f5ca7cfca65fda12c63b3dd4f462dec088f7
3
+ metadata.gz: bae8e3ac24793e546c47c6bde3c3a74c8c49610130aa7b65725ebf4cafaf00d1
4
+ data.tar.gz: 81022e27e69ffacc9051f0c960cdec9e127ad5442a9e31679cc5c798f4813a32
5
5
  SHA512:
6
- metadata.gz: 43c40ec17e31e85c82cff49da650a8fa0ea72b059d82c7365439a6abba502dde0655ffa92c18d4875cfa2571b884f6c7cabc0d159a75f2d23c8115c6b86b16cb
7
- data.tar.gz: 5aeafa68457cda489f360be7b76c9ca1af07c69e940a4f6cc5ebc9098f414459ade7a20e1ca11353f3a244532fe370d027cd3634be5970b6a69b1a624b69d147
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
@@ -25,5 +25,5 @@
25
25
 
26
26
  module AsciidoctorDitaMap
27
27
  NAME = 'dita-map'
28
- VERSION = '0.9.16'
28
+ VERSION = '0.9.18'
29
29
  end
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.16
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.20
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: []