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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09057eeb233c7a7834dd70e9a15e0ceddaf166687a0878d3f2a23942f22400d0'
4
- data.tar.gz: 93b1ba5a3d6be89b90c200f901f8c38382dd2abc46cd4b8ce1955a2dcfd2ae39
3
+ metadata.gz: c3e05e40b48cb5fd12904dfbe339d432aa805b6f7c35952738d02901105b8b05
4
+ data.tar.gz: bb94be8898d2ff595799da686679bf478ea83efe2a24fbc675340d3a1dc48d62
5
5
  SHA512:
6
- metadata.gz: a959a3661ee68c4e8c476a878e7f5f830fac0fa8e6c9280dd477e8576b28fb1f8e66c363325c24fd88f67246f5ef0564fe15350e637db2955005bc9b59e4410d
7
- data.tar.gz: 9e4bc16a4fb89d0690fff40d438959655a37ac7064d86c42155076a4483191afe98b04d939921ae9f0436f5858f8168ff078d70bf6d714f7e51430c20b7270e1
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
- Metanorma::Utils.image_resize(i, local_filename, maxwidth, maxheight)
101
+ Vectory.image_resize(i, local_filename, maxwidth, maxheight)
102
102
  else
103
- Metanorma::Utils.image_resize(i, local_filename, maxheight, maxwidth)
103
+ Vectory.image_resize(i, local_filename, maxheight, maxwidth)
104
104
  end
105
105
  end
106
106
  docxml
@@ -1,3 +1,3 @@
1
1
  class Html2Doc
2
- VERSION = "1.8.0".freeze
2
+ VERSION = "1.8.1".freeze
3
3
  end
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.0
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-01-07 00:00:00.000000000 Z
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