metanorma-plugin-lutaml 0.7.77 → 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: 6fd6252359c80c97f0826f2adec96194db94183aee821b9f47bbe6ca4b508ede
4
- data.tar.gz: 8b7758d447ace366ed495552b9b6ed8f272a0ae3440066a102dd4abd697b0793
3
+ metadata.gz: '028325b5abc812f039d2f573d4538c521a2b6742ffedf04af46914231fa8629e'
4
+ data.tar.gz: 43245d0f625aa5aa618d1afce0bf960275a7e30d0a68433029404249ea53d84d
5
5
  SHA512:
6
- metadata.gz: c5df36f9ffffee8976f0f6b91451eda83206a52301213500fc01284353f0a141318363e07bbb87dbafbc52389b580d57b99f49028f5ba1bee1eec599e0144365
7
- data.tar.gz: 9b88d1d8f3760871fdc88dfb54a40441fb2a0c5409db68598121682090c6874cde263a15c906bef46aa53446a48ea20892634068a393b7ee1276c1f6d00d9fca
6
+ metadata.gz: b2af4244a3254697ec586878cfb0aac77216c3318e145879e85379a26f7db64a38d2c4f2c09c84b000302a24ab210d3ecbd7d1a3661233435251b0b0ed219420
7
+ data.tar.gz: 98a7e4542de80069ea995186fe64ca8810d784eeb932ede2514e999740e70e765269f0e76fe858e0a6d57bb1c005273b50280f40af45d4fc7242e836660a9b04
@@ -13,15 +13,25 @@ on:
13
13
  default: 'skip'
14
14
  repository_dispatch:
15
15
  types: [ do-release ]
16
+ # The publish leg: when the release PR (head branch release/v*) merges,
17
+ # metanorma/ci tags the merge commit and publishes (metanorma/ci#515).
18
+ # Ordinary PR closes are skipped inside the reusable.
19
+ pull_request:
20
+ types:
21
+ - closed
16
22
 
17
23
  jobs:
18
24
  release:
19
25
  uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
26
+ permissions:
27
+ id-token: write
28
+ contents: write
29
+ pull-requests: write
20
30
  with:
21
31
  next_version: ${{ github.event.inputs.next_version }}
22
- release_command: |
23
- bundle install
24
- bundle exec rake release
32
+ # release_command removed (metanorma/ci#515): the reusable's generic
33
+ # build+push handles the gem on both legs; bundler's git machinery
34
+ # cannot run on the publish leg's detached merge-commit checkout.
25
35
  secrets:
26
36
  rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
27
37
  pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
@@ -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.77".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.77
4
+ version: 0.7.79
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.