mnconvert 1.87.0 → 1.89.0

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: 69102a53f7eaccd2dc27542a7f2965f2ad7d6c8f5f6e89ced327a9365eaee675
4
- data.tar.gz: f21ffd8c33f779b77192d818f8066706584d634966bb7735a7d8894c74ccbc03
3
+ metadata.gz: e8e48822b7c094792cecdc9070a968ff9f3f377d7afb19c6ce03e58555b2fc19
4
+ data.tar.gz: d35508869ed3efd1f0d9573aa35466472260c4aee4edea54fbb9e3ab487e9660
5
5
  SHA512:
6
- metadata.gz: 738f37966011ca8757f17d67be3edbadfbe4d6694d340eebb17484869ef182dfad99e07d7e8c6e904121cd1e1cc04f58ede1211813fc6233f045ad083b4cfb0f
7
- data.tar.gz: c3ae420be74f59befad16540d7646f6f17d25f6d8eee5e6c3aea1d85f68beb1a0a15778b429d0463a3b641b0a0f685201f51bd5d1d53cb16a52dd3b3763addea
6
+ metadata.gz: 9723891261790bfdfe0f3f1adc75e6769b810f95bf3b98adc98907956c611f45120e61dc2fa27cd571cc960c78c6ae0c7afca18fcfd8b671abfb196aaa9ef624
7
+ data.tar.gz: 387a3885cae46013af6a2efe7239a42b2b45e2fd523f620c015abba3e1cc277245e37d2e786e8b8ac10d14ba8dd8ea6ed13b35e729c2523e156feca1cdb16e8a
@@ -1,16 +1,24 @@
1
1
  name: release
2
2
 
3
+ # Thin caller for metanorma/ci generic-release.yml (ci#82 / #393 / #400).
4
+ # Keeps local prepare-ieee job; release needs [prepare, prepare-ieee].
5
+
3
6
  on:
4
7
  push:
5
8
  tags:
6
- - '*'
9
+ - "*"
7
10
  workflow_dispatch:
8
11
  inputs:
9
12
  next_version:
10
13
  description: |
11
14
  Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
12
15
  required: true
13
- default: 'skip'
16
+ default: "skip"
17
+ type: string
18
+
19
+ permissions:
20
+ contents: write
21
+ id-token: write
14
22
 
15
23
  jobs:
16
24
  prepare:
@@ -22,43 +30,16 @@ jobs:
22
30
  pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
23
31
 
24
32
  release:
25
- runs-on: ubuntu-latest
26
- needs: [ prepare, prepare-ieee ]
27
- steps:
28
- - uses: actions/checkout@v3
29
-
30
- - run: |
31
- git config user.name "metanorma-ci"
32
- git config user.email "metanorma-ci@users.noreply.github.com"
33
-
34
- - uses: ruby/setup-ruby@v1
35
- with:
36
- ruby-version: ${{ needs.prepare.outputs.default-ruby-version }}
37
- bundler-cache: true
38
-
39
- - uses: actions/download-artifact@v4.1.7
40
- with:
41
- name: ieee-test-input
42
- path: ieee
43
-
44
- - run: gem install gem-release
45
-
46
- - if: github.event_name == 'workflow_dispatch' && inputs.next_version != 'skip'
47
- run: |
48
- gem bump --version ${{ inputs.next_version }} --no-commit
49
- rm -f bin/mnconvert.jar
50
- bundle exec rake bin/mnconvert.jar
51
-
52
- - run: bundle exec rake
53
-
54
- - if: github.event_name == 'workflow_dispatch' && inputs.next_version != 'skip'
55
- run: |
56
- git add -u bin/mnconvert.jar lib/mnconvert/version.rb
57
- git commit -m "Bump version to ${{ inputs.next_version }}"
58
- git tag v${{ inputs.next_version }}
59
- git push origin HEAD:${GITHUB_REF} --tags
60
-
61
- - uses: actions-mn/gem-release@main
62
- with:
63
- api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
64
- release-command: gem release
33
+ needs: [prepare, prepare-ieee]
34
+ uses: metanorma/ci/.github/workflows/generic-release.yml@main
35
+ with:
36
+ ruby_version: ${{ needs.prepare.outputs.default-ruby-version }}
37
+ jar_name: mnconvert.jar
38
+ version_file_path: lib/mnconvert/version.rb
39
+ next_version: ${{ inputs.next_version || 'skip' }}
40
+ download_artifact_name: ieee-test-input
41
+ download_artifact_path: ieee
42
+ jar_needs_rebuild: true
43
+ git_add_includes_jar: true
44
+ secrets:
45
+ pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
data/bin/mnconvert.jar CHANGED
Binary file
@@ -1,4 +1,4 @@
1
1
  module MnConvert
2
- VERSION = "1.87.0"
2
+ VERSION = "1.89.0"
3
3
  MNCONVERT_JAR_VERSION = VERSION
4
4
  end
data/lib/mnconvert.rb CHANGED
@@ -12,7 +12,13 @@ module MnConvert
12
12
  MNCONVERT_JAR_NAME)
13
13
 
14
14
  def self.jvm_options
15
- options = ["-Xss5m", "-Xmx1024m"]
15
+ # Java 24+ caps XML entity size at 100000 by default, which large
16
+ # Metanorma documents exceed; set no limits on the command line
17
+ # so users do not need JAVA_TOOL_OPTIONS (whose "Picked up ..." banner
18
+ # breaks Jing callers: metanorma/metanorma-pdfa#98).
19
+ options = ["-Xss5m", "-Xmx1024m",
20
+ "-Djdk.xml.maxGeneralEntitySizeLimit=0",
21
+ "-Djdk.xml.totalEntitySizeLimit=0"]
16
22
 
17
23
  if RbConfig::CONFIG["host_os"].match?(/darwin|mac os/)
18
24
  options << "-Dapple.awt.UIElement=true"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mnconvert
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.87.0
4
+ version: 1.89.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-07-20 00:00:00.000000000 Z
11
+ date: 2026-09-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  mnconvert converts Metanorma XML into NISO STS XML.