mn2pdf 1.29 → 1.32
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 +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60474e5e27d8b42fb366dd0f20b3f15c657c83647ec10ad2753647ec4e3149d6
|
4
|
+
data.tar.gz: 9a34a379f62759b625569478297daa41c9fa8ff12f58bec6a33527e53e6aae05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35f5eed24f2f3d4f17579dd8324a052b923db2f1b90262e75e0710dd8e15e8128e44fdc6518a25c251c0a44129755469aaddbc1ec066c22d9fd678a57e35b025
|
7
|
+
data.tar.gz: 417537a090309ed2f9d1190bce22c7fd39e64a584d2737a12f74bac72576ea13f1ea8fb47f6a83c46aaccf0ac7cdd6dbe8fd8b842ba4ac8a2e078b57c553be18
|
data/.github/workflows/rake.yml
CHANGED
@@ -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
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.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", "-
|
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.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-
|
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.
|