asciidoctor-dita-map 0.9.15 → 0.9.17

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: e10278e445c7ebb802fd7b59b0f2d59833ef3cf15daac9f5401a21ffa5004cf5
4
- data.tar.gz: db2bfadc8deb15cddac4f2edc10c2e84edaae52532eb85539046376f310f6736
3
+ metadata.gz: beb98054b1b010f0fbb0929fbdb572658eb9cd7e9738f0d80bb6386f5a25eca6
4
+ data.tar.gz: aab9bf4c60b4cdf0920b34ebaad979636a2956cfbd4a1c5e22bbf84efd4659e7
5
5
  SHA512:
6
- metadata.gz: 8e6b6ab31781f9cba233fbc62194a738e3db56746c8dcb134d4ce4288119ead15cf13af4f985812688caa7195dcbd76204290e0c03a39b880c0ccb4f22626267
7
- data.tar.gz: 7274e2d7e1f79bbefae1500e1530ad7ed167e6a814d58ed6aa977914ebb12ebd455668bd72cabb7fb07bb807dfc778ad474ebb5e457e6b15d644cd1b15625bae
6
+ metadata.gz: faffbea1c05a45e042be9aa524741b3d7b4b771141023c491fa1cd990ed760fde8fd3586d93ddd9be94db52e9549bf6a83e52fbb6b9342ab6563ed35b727ca1c
7
+ data.tar.gz: 41023bf201038a49aa8dd5eae10872b9844363b512bcc81aafad608748063dcd060028b986fc6e3d833ac81202ced8e747c30180965fb05343defff8f13803f2
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,7 @@ module AsciidoctorDitaMap
56
57
 
57
58
  @converter.prep << File.read(file)
58
59
  @converter.prep << "\n"
60
+ @converter.prep.gsub!(Asciidoctor::IncludeDirectiveRx, '')
59
61
  end
60
62
 
61
63
  opt.on('-i', '--include-self', 'make the supplied file the toplevel topicref') do
@@ -156,7 +158,7 @@ module AsciidoctorDitaMap
156
158
  input.gsub!(/^(?:ifn?def|ifeval|endif)::\S*\[(.*)\]\s*$/, '\1') if not @conditionals
157
159
 
158
160
  if @converter.opts[:self] and file != $stdin
159
- result = @converter.run input, base_dir, file
161
+ result = @converter.run input, base_dir, Pathname.new(file).basename.to_s
160
162
  else
161
163
  result = @converter.run input, base_dir
162
164
  end
@@ -71,8 +71,6 @@ module AsciidoctorDitaMap
71
71
 
72
72
  if file_info[:navtitle]
73
73
  element.add_attribute REXML::Attribute.new('navtitle', file_info[:navtitle]) if @opts[:navtitle]
74
- else
75
- element.add_attribute REXML::Attribute.new('navtitle', title) if @opts[:navtitle] and title
76
74
  end
77
75
 
78
76
  element.add_attribute 'locktitle', 'yes' if @opts[:locktitle] and element['navtitle']
@@ -25,5 +25,5 @@
25
25
 
26
26
  module AsciidoctorDitaMap
27
27
  NAME = 'dita-map'
28
- VERSION = '0.9.15'
28
+ VERSION = '0.9.17'
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.15
4
+ version: 0.9.17
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.19
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: []