mn2pdf 1.31 → 1.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +1 -11
- data/.hound.yml +5 -0
- data/.rubocop.yml +8 -4
- data/bin/mn2pdf.jar +0 -0
- data/lib/mn2pdf.rb +2 -2
- data/lib/mn2pdf/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 970fa92510b407061665361194f865f7ec68b80c197997d3e4329e9e3c8da078
|
4
|
+
data.tar.gz: b80ff6c3ed01a9c8f64a87fbc5bb0cd0ac0f48b60d23c3bd035e0e875e9580d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d25b5f266c67151fc2dca4e5441918ee3940713f0da50bc6e0bde0ee39636b0ada258681fef08c520913fd2b05eabbb5e2251c1d3cec4451972e2c383ecb965
|
7
|
+
data.tar.gz: ff0fecae8b2054da803ffb2ee9f8f27606b1382eb2c82c28d9cd14dd3a3effa7940b6f2d2162cbea56a7cab1d08b594bff1d7a3e4f07bb7f4abf6139db274ba5
|
data/.github/workflows/rake.yml
CHANGED
@@ -16,19 +16,9 @@ jobs:
|
|
16
16
|
strategy:
|
17
17
|
fail-fast: false
|
18
18
|
matrix:
|
19
|
-
ruby: [ '
|
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
data/.rubocop.yml
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
-
#
|
2
|
-
# https://github.com/
|
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", "-
|
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
|
data/lib/mn2pdf/version.rb
CHANGED
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.
|
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-
|
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
|