metanorma-plugin-lutaml 0.7.78 → 0.7.79

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: 44d568f541b3c0b09ff5b1df046d4f69ee3e4ce678ea613413fc12a85b68f7e9
4
- data.tar.gz: 212a3e398816cb9b3995a31523c7f979737cd9834605c66e7d6cf9ab30b9c857
3
+ metadata.gz: '028325b5abc812f039d2f573d4538c521a2b6742ffedf04af46914231fa8629e'
4
+ data.tar.gz: 43245d0f625aa5aa618d1afce0bf960275a7e30d0a68433029404249ea53d84d
5
5
  SHA512:
6
- metadata.gz: 8aa5fccb1b8e11143d7af97483f7bb80c4839476c224b4382b13ca0ddf3f8076a39917e168de99c9231ae764c800572e5d6d60e80b0427a27c6f01e644371ca0
7
- data.tar.gz: d332924baf9d3bcb3bf2cfc5adffb39f105e158990d2e7a89d95151dd4bc0fe50ed6a390d0100ce8cf9f33d099a011835670d610dc0b65fb5aa4e5be511e7a09
6
+ metadata.gz: b2af4244a3254697ec586878cfb0aac77216c3318e145879e85379a26f7db64a38d2c4f2c09c84b000302a24ab210d3ecbd7d1a3661233435251b0b0ed219420
7
+ data.tar.gz: 98a7e4542de80069ea995186fe64ca8810d784eeb932ede2514e999740e70e765269f0e76fe858e0a6d57bb1c005273b50280f40af45d4fc7242e836660a9b04
@@ -148,20 +148,16 @@ module Metanorma
148
148
  # directory as the document resolves it,
149
149
  # ExpressRemarkAdapter.schema_imagesdir).
150
150
  class TargetResolver
151
- # Asciidoctor's default imagesdir for a document that sets
152
- # none: bare image targets resolve against "images" under the
153
- # docfile directory.
154
- DEFAULT_IMAGESDIR = "images".freeze
155
-
156
151
  def initialize(docfile, imagesdir, schema_directory)
157
152
  docdir = File.dirname(File.expand_path(docfile.to_s))
158
153
  @docdir = docdir
159
- @imagesdir_directory =
160
- if imagesdir.nil? || imagesdir.empty?
161
- File.join(docdir, DEFAULT_IMAGESDIR)
162
- else
163
- File.expand_path(imagesdir, docdir)
164
- end
154
+ # Asciidoctor's default imagesdir is empty: a document that
155
+ # sets none resolves every bare image target against the
156
+ # docfile directory itself, and an explicit `:!imagesdir:`
157
+ # unset behaves identically. `File.expand_path` with an empty
158
+ # base returns the docdir, so both cases stage at the exact
159
+ # spot the bare target resolves to.
160
+ @imagesdir_directory = File.expand_path(imagesdir.to_s, docdir)
165
161
  @schema_directory = schema_directory
166
162
  @errors = []
167
163
  end
@@ -1,7 +1,7 @@
1
1
  module Metanorma
2
2
  module Plugin
3
3
  module Lutaml
4
- VERSION = "0.7.78".freeze
4
+ VERSION = "0.7.79".freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-plugin-lutaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.78
4
+ version: 0.7.79
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.