mn2pdf 1.41 → 1.41.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +1 -1
- data/Rakefile +1 -1
- data/lib/mn2pdf/version.rb +2 -1
- data/lib/mn2pdf.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f6b75a4c0cb45a4c674233bd1375d83636d08428d0a85dfa7c4b49cd84f0a96
|
4
|
+
data.tar.gz: 26caeb9c3f8a3f7ad24c565e9515aad2701e248dc2a97efab5e139f5adb3c1a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15b8bfc72495756a092fe272037a1bbe988054fcde62e7398694e0c04d664f6c949416274496f7970b199ebdc4c047d8c443f635d4ccbdb26a92385373283082
|
7
|
+
data.tar.gz: 95073bc9550325ac5435e71c21249a992ffdcb74118f87631c81c84086809c08a481484e3089405439cf85403c0b4455d8d82c95ffcbba6a15d060b3738e7572
|
data/Rakefile
CHANGED
@@ -9,7 +9,7 @@ task :default => :spec
|
|
9
9
|
require 'open-uri'
|
10
10
|
|
11
11
|
file 'bin/mn2pdf.jar' do |file|
|
12
|
-
ver = Mn2pdf::
|
12
|
+
ver = Mn2pdf::MN2PDF_JAR_VERSION
|
13
13
|
url = "https://github.com/metanorma/mn2pdf/releases/download/v#{ver}/mn2pdf-#{ver}.jar"
|
14
14
|
File.open(file.name, 'wb') do |file|
|
15
15
|
file.write open(url).read
|
data/lib/mn2pdf/version.rb
CHANGED
data/lib/mn2pdf.rb
CHANGED
@@ -3,8 +3,6 @@ require "rbconfig"
|
|
3
3
|
require "tempfile"
|
4
4
|
require "yaml"
|
5
5
|
|
6
|
-
require "mn2pdf/version"
|
7
|
-
|
8
6
|
module Mn2pdf
|
9
7
|
MN2PDF_JAR_PATH = File.join(File.dirname(__FILE__), "../bin/mn2pdf.jar")
|
10
8
|
DEFAULT_JAVA_OPTS = ["-Xss5m", "-Xmx2048m"].freeze
|
@@ -47,7 +45,8 @@ module Mn2pdf
|
|
47
45
|
manifest = options.delete(FONTS_MANIFEST)
|
48
46
|
|
49
47
|
options.each do |k, v|
|
50
|
-
|
48
|
+
sep = k.to_s.end_with?("=") ? "" : " "
|
49
|
+
cmd << "#{k}#{sep}#{quote(v)}"
|
51
50
|
end
|
52
51
|
if manifest
|
53
52
|
dump_fontist_manifest_locations(manifest) do |manifest_path|
|
@@ -87,6 +86,7 @@ module Mn2pdf
|
|
87
86
|
end
|
88
87
|
|
89
88
|
def self.quote(str)
|
89
|
+
return "" if str.nil? || str.empty?
|
90
90
|
return str if /^'.*'$/.match(str) || /^".*"$/.match(str)
|
91
91
|
|
92
92
|
%("#{str}")
|
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:
|
4
|
+
version: 1.41.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |
|
14
14
|
mn2pdf converts Metanorma XML into PDF.
|
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
56
|
- !ruby/object:Gem::Version
|
57
57
|
version: '0'
|
58
58
|
requirements: []
|
59
|
-
rubygems_version: 3.0.3
|
59
|
+
rubygems_version: 3.0.3.1
|
60
60
|
signing_key:
|
61
61
|
specification_version: 4
|
62
62
|
summary: mn2pdf converts Metanorma XML into PDF.
|