isodoc 2.6.1 → 2.6.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b66faaa134c306dcb9be32f7a587682d9910f0863d2d252824eb0df319735ee
|
4
|
+
data.tar.gz: 9f8b6559fa659841260b72430137ea8f93614f877a22089617e7976f7c2b61a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93267016a42a2f247bbbc9e6cd20d500fb3845fadcf32337e46cb94b84cea9939c11a3180c90355a5350928cc628cb0a88eaf36720775a7eae59adf74e3a70c9
|
7
|
+
data.tar.gz: deb0709eb785d832c3b3fe2602bd4d3549b2126731c6d44fcc9c752a8d38dab572c3926bed2d27d168bf9e47de65adff8b34699b941185f906742b16138b1d1d
|
data/lib/isodoc/css.rb
CHANGED
@@ -177,7 +177,8 @@ module IsoDoc
|
|
177
177
|
imgtype = imgtype.sub(/\+[a-z0-9]+$/, "") # svg+xml
|
178
178
|
imgtype = "png" unless /^[a-z0-9]+$/.match? imgtype
|
179
179
|
imgtype == "postscript" and imgtype = "eps"
|
180
|
-
Tempfile.open(["image", ".#{imgtype}"]
|
180
|
+
Tempfile.open(["image", ".#{imgtype}"],
|
181
|
+
mode: File::BINARY | File::SHARE_DELETE) do |f|
|
181
182
|
f.binmode
|
182
183
|
f.write(Base64.strict_decode64(imgdata))
|
183
184
|
@tempfile_cache << f # persist to the end
|
@@ -186,7 +187,8 @@ module IsoDoc
|
|
186
187
|
end
|
187
188
|
|
188
189
|
def save_svg(img)
|
189
|
-
Tempfile.open(["image", ".svg"]
|
190
|
+
Tempfile.open(["image", ".svg"],
|
191
|
+
mode: File::BINARY | File::SHARE_DELETE) do |f|
|
190
192
|
f.write(img.to_xml)
|
191
193
|
@tempfile_cache << f # persist to the end
|
192
194
|
f.path
|
data/lib/isodoc/version.rb
CHANGED
@@ -95,7 +95,9 @@ module IsoDoc
|
|
95
95
|
.merge(@meta.labels ? { labels: @meta.labels } : {})
|
96
96
|
meta[:filename] = filename
|
97
97
|
params = meta.transform_keys(&:to_s)
|
98
|
-
Tempfile.open(%w(header html),
|
98
|
+
Tempfile.open(%w(header html),
|
99
|
+
mode: File::BINARY | File::SHARE_DELETE,
|
100
|
+
encoding: "utf-8") do |f|
|
99
101
|
f.write(template.render(params))
|
100
102
|
f
|
101
103
|
end
|
data/lib/isodoc/xslfo_convert.rb
CHANGED
@@ -78,6 +78,7 @@ module IsoDoc
|
|
78
78
|
def input_xml_path(input_filename, xml_file, debug)
|
79
79
|
docxml, filename, dir = convert_init(xml_file, input_filename, debug)
|
80
80
|
input_filename = Tempfile.open([File.basename(filename), ".xml"],
|
81
|
+
mode: File::BINARY | File::SHARE_DELETE,
|
81
82
|
encoding: "utf-8") do |f|
|
82
83
|
f.write docxml
|
83
84
|
f
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isodoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: html2doc
|