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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a0c240f5a70e4ac365e0a73680af079529857cf58260bfa430dd84367b73e0c
4
- data.tar.gz: a327cd5eca2ee959345b8c32701868d24082fb9e2718f52ec7191c9b43e17547
3
+ metadata.gz: 0f6b75a4c0cb45a4c674233bd1375d83636d08428d0a85dfa7c4b49cd84f0a96
4
+ data.tar.gz: 26caeb9c3f8a3f7ad24c565e9515aad2701e248dc2a97efab5e139f5adb3c1a3
5
5
  SHA512:
6
- metadata.gz: a11c040d8123f84e6686d42021fbcc51d72d3a17d16a1af762f0d5d895b0d1f557f9bb39d1cf40d6fb883fcffa3197fcf0ff8af54779e5786fc683eca603b287
7
- data.tar.gz: aed4221c3d24355f347d5a89fdba8c45a8ff8a8eb06e6ccad84c4c8180387f17e5e952cf6614505de6840f73946b260e313a3c62b5826e2e825ee7151325777b
6
+ metadata.gz: 15b8bfc72495756a092fe272037a1bbe988054fcde62e7398694e0c04d664f6c949416274496f7970b199ebdc4c047d8c443f635d4ccbdb26a92385373283082
7
+ data.tar.gz: 95073bc9550325ac5435e71c21249a992ffdcb74118f87631c81c84086809c08a481484e3089405439cf85403c0b4455d8d82c95ffcbba6a15d060b3738e7572
@@ -23,7 +23,7 @@ jobs:
23
23
  ruby-version: '2.6'
24
24
  bundler-cache: true
25
25
 
26
- - run: rm -f bin/mn2pdf.jar && rake bin/mn2pdf.jar
26
+ - run: rm -f bin/mn2pdf.jar && bundle exec rake bin/mn2pdf.jar
27
27
 
28
28
  - run: bundle exec rake
29
29
 
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::VERSION
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
@@ -1,3 +1,4 @@
1
1
  module Mn2pdf
2
- VERSION = "1.41".freeze
2
+ VERSION = "1.41.1".freeze
3
+ MN2PDF_JAR_VERSION = "1.41".freeze
3
4
  end
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
- cmd << "#{k} #{quote(v)}"
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: '1.41'
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-10 00:00:00.000000000 Z
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.