mn2pdf 1.29 → 1.32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 143b5e801666557e86807fa8e13ea84b046e0e1d89882ef26dc52cf35ea9391b
4
- data.tar.gz: d249dba0fecdde0eac0ad7e2a1342a5f00b29125554ededd4be38f5c6168ba9b
3
+ metadata.gz: 60474e5e27d8b42fb366dd0f20b3f15c657c83647ec10ad2753647ec4e3149d6
4
+ data.tar.gz: 9a34a379f62759b625569478297daa41c9fa8ff12f58bec6a33527e53e6aae05
5
5
  SHA512:
6
- metadata.gz: 0634edb8a030f927ddf220f528dc31d2747f5afcbda4ac340ed7d35824a05568247f27be5bd31fdddcdc65a5ab988266232f1364c669ddbcb27204ca5d06903a
7
- data.tar.gz: bb0b1e822cde0ea63b05d339dd1000f6f05118c1d1503cc4cd4cf5f72e402183ed5ada4ae0896299d135c793b1040414154bae3ca50c980122b8ccb1dae67429
6
+ metadata.gz: 35f5eed24f2f3d4f17579dd8324a052b923db2f1b90262e75e0710dd8e15e8128e44fdc6518a25c251c0a44129755469aaddbc1ec066c22d9fd678a57e35b025
7
+ data.tar.gz: 417537a090309ed2f9d1190bce22c7fd39e64a584d2737a12f74bac72576ea13f1ea8fb47f6a83c46aaccf0ac7cdd6dbe8fd8b842ba4ac8a2e078b57c553be18
@@ -16,19 +16,9 @@ jobs:
16
16
  strategy:
17
17
  fail-fast: false
18
18
  matrix:
19
- ruby: [ '2.7', '2.6', '2.5', '2.4' ]
19
+ ruby: [ '3.0', '2.7', '2.6', '2.5', '2.4' ]
20
20
  os: [ ubuntu-latest, windows-latest, macos-latest ]
21
21
  experimental: [ false ]
22
- include:
23
- - ruby: '3.0'
24
- os: 'ubuntu-latest'
25
- experimental: true
26
- - ruby: '3.0'
27
- os: 'windows-latest'
28
- experimental: true
29
- - ruby: '3.0'
30
- os: 'macos-latest'
31
- experimental: true
32
22
  steps:
33
23
  - uses: actions/checkout@v2
34
24
  with:
data/.hound.yml ADDED
@@ -0,0 +1,5 @@
1
+ # Auto-generated by Cimas: Do not edit it manually!
2
+ # See https://github.com/metanorma/cimas
3
+ ruby:
4
+ enabled: true
5
+ config_file: .rubocop.yml
data/.rubocop.yml CHANGED
@@ -1,6 +1,10 @@
1
- # This project follows the Ribose OSS style guide.
2
- # https://github.com/riboseinc/oss-guides
3
- # All project-specific additions and overrides should be specified in this file.
4
-
1
+ # Auto-generated by Cimas: Do not edit it manually!
2
+ # See https://github.com/metanorma/cimas
5
3
  inherit_from:
6
4
  - https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
5
+
6
+ # local repo-specific modifications
7
+ # ...
8
+
9
+ AllCops:
10
+ TargetRubyVersion: 2.4
data/bin/mn2pdf.jar CHANGED
Binary file
data/lib/mn2pdf.rb CHANGED
@@ -30,7 +30,7 @@ module Mn2pdf
30
30
  def self.convert(url_path, output_path, xsl_stylesheet, options = "")
31
31
  return if url_path.nil? || output_path.nil? || xsl_stylesheet.nil?
32
32
 
33
- cmd = ["java", "-Xss5m", "-Xmx1024m", *jvm_options,
33
+ cmd = ["java", "-Xss5m", "-Xmx2048m", *jvm_options,
34
34
  "-jar", MN2PDF_JAR_PATH, "--xml-file", url_path,
35
35
  "--xsl-file", xsl_stylesheet, "--pdf-file", output_path, options].join(" ")
36
36
 
@@ -43,6 +43,6 @@ module Mn2pdf
43
43
  def self.prepare_error_msg(stdout_str, error_str)
44
44
  # Strip default mn2pdf message
45
45
  stdout_str = stdout_str.gsub("Preparing...", "").strip
46
- [stdout_str, error_str].join(" ").strip
46
+ ["[mn2pdf] Fatal:", stdout_str, error_str].join(" ").strip
47
47
  end
48
48
  end
@@ -1,3 +1,3 @@
1
1
  module Mn2pdf
2
- VERSION = '1.29'
2
+ VERSION = "1.32".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mn2pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.29'
4
+ version: '1.32'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-27 00:00:00.000000000 Z
11
+ date: 2021-06-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  mn2pdf converts Metanorma XML into PDF.
@@ -24,6 +24,7 @@ files:
24
24
  - ".github/workflows/release-tag.yml"
25
25
  - ".github/workflows/release.yml"
26
26
  - ".gitignore"
27
+ - ".hound.yml"
27
28
  - ".rspec"
28
29
  - ".rubocop.yml"
29
30
  - CODE_OF_CONDUCT.md
@@ -55,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
56
  - !ruby/object:Gem::Version
56
57
  version: '0'
57
58
  requirements: []
58
- rubygems_version: 3.0.3
59
+ rubygems_version: 3.0.3.1
59
60
  signing_key:
60
61
  specification_version: 4
61
62
  summary: mn2pdf converts Metanorma XML into PDF.