html2doc 1.8.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/html2doc.gemspec +1 -0
- data/lib/html2doc/mime.rb +3 -3
- data/lib/html2doc/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3e05e40b48cb5fd12904dfbe339d432aa805b6f7c35952738d02901105b8b05
|
4
|
+
data.tar.gz: bb94be8898d2ff595799da686679bf478ea83efe2a24fbc675340d3a1dc48d62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a70ab4dc2ebfc1e75bdf903ce603d67f0a869beccffe755a56988b44e84e3f89b902d6d6359280e14fd4f0896d5da03603a0c08519848b407a5d70dd0858c0c4
|
7
|
+
data.tar.gz: 4c2438244dde8622e7ab8c9c1341c27a12744647fbe8be925940e3861d30bf0dad959f09c82e86c45bfaa43cad46d5a9722664a58ed2d919fa1b3a7a8175b3b9
|
data/html2doc.gemspec
CHANGED
@@ -35,6 +35,7 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.add_dependency "thread_safe"
|
36
36
|
spec.add_dependency "uuidtools"
|
37
37
|
spec.add_dependency "unitsml"
|
38
|
+
spec.add_dependency "vectory", "~> 0.6"
|
38
39
|
|
39
40
|
spec.add_development_dependency "debug"
|
40
41
|
spec.add_development_dependency "equivalent-xml", "~> 0.6"
|
data/lib/html2doc/mime.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
require "uuidtools"
|
2
2
|
require "base64"
|
3
3
|
require "mime/types"
|
4
|
-
require "image_size"
|
5
4
|
require "fileutils"
|
5
|
+
require "vectory"
|
6
6
|
|
7
7
|
class Html2Doc
|
8
8
|
def mime_preamble(boundary, filename, result)
|
@@ -98,9 +98,9 @@ class Html2Doc
|
|
98
98
|
local_filename = rename_image(i, dir, localdir)
|
99
99
|
i["width"], i["height"] =
|
100
100
|
if landscape?(i)
|
101
|
-
|
101
|
+
Vectory.image_resize(i, local_filename, maxwidth, maxheight)
|
102
102
|
else
|
103
|
-
|
103
|
+
Vectory.image_resize(i, local_filename, maxheight, maxwidth)
|
104
104
|
end
|
105
105
|
end
|
106
106
|
docxml
|
data/lib/html2doc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html2doc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: htmlentities
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: vectory
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0.6'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0.6'
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: debug
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|