mn2pdf 1.31 → 1.33

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: 55ea33d8683ee2cef108879b9011b34a85f71bd1a190f3cfb02f2303b94cf42a
4
- data.tar.gz: be56956b7b502f51fe481db6acd4466dcfcdbf3902b5bdea4d1f903b2b4ce7e3
3
+ metadata.gz: 970fa92510b407061665361194f865f7ec68b80c197997d3e4329e9e3c8da078
4
+ data.tar.gz: b80ff6c3ed01a9c8f64a87fbc5bb0cd0ac0f48b60d23c3bd035e0e875e9580d6
5
5
  SHA512:
6
- metadata.gz: b92fea3d06801a57b7ea61a1acd27c0ab63b3b06227e7c131beeb23f3b69d2bbac8b569369f16ea58b9ce1f4395584a9294bf711033e270d5082e3b515b5ae3a
7
- data.tar.gz: 12061e8ee977178c83314e6598847b7a8d3c0f9356834f235c454e4e9a5a332b38dc57394dee9eaf3ab42eb4e77e4d9e67f70de5bdd9c977baed411c242da45f
6
+ metadata.gz: 4d25b5f266c67151fc2dca4e5441918ee3940713f0da50bc6e0bde0ee39636b0ada258681fef08c520913fd2b05eabbb5e2251c1d3cec4451972e2c383ecb965
7
+ data.tar.gz: ff0fecae8b2054da803ffb2ee9f8f27606b1382eb2c82c28d9cd14dd3a3effa7940b6f2d2162cbea56a7cab1d08b594bff1d7a3e4f07bb7f4abf6139db274ba5
@@ -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' ]
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.5
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.31'
2
+ VERSION = "1.33".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.31'
4
+ version: '1.33'
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-04-19 00:00:00.000000000 Z
11
+ date: 2021-07-15 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