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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '028325b5abc812f039d2f573d4538c521a2b6742ffedf04af46914231fa8629e'
|
|
4
|
+
data.tar.gz: 43245d0f625aa5aa618d1afce0bf960275a7e30d0a68433029404249ea53d84d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
24
|
-
|
|
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
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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
|