html2doc 1.4.4 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/html2doc.gemspec +2 -2
- data/lib/html2doc/base.rb +0 -1
- data/lib/html2doc/lists.rb +0 -1
- data/lib/html2doc/math.rb +4 -4
- data/lib/html2doc/mathml2omml.xsl +3822 -0
- data/lib/html2doc/mime.rb +1 -3
- data/lib/html2doc/version.rb +1 -1
- metadata +20 -19
data/lib/html2doc/mime.rb
CHANGED
@@ -92,10 +92,8 @@ class Html2Doc
|
|
92
92
|
end
|
93
93
|
|
94
94
|
def get_image_size(img, path)
|
95
|
-
realsize = ImageSize.path(path).size
|
95
|
+
realsize = ImageSize.path(path).size
|
96
96
|
s = [img["width"].to_i, img["height"].to_i]
|
97
|
-
return [s, s] if /\.emf$/.match?(path)
|
98
|
-
|
99
97
|
s = realsize if s[0].zero? && s[1].zero?
|
100
98
|
s = [nil, nil] if realsize.nil? || realsize[0].nil? || realsize[1].nil?
|
101
99
|
[s, realsize]
|
data/lib/html2doc/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html2doc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: asciimath
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 2.0.2
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 2.0.2
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: htmlentities
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +30,14 @@ dependencies:
|
|
44
30
|
requirements:
|
45
31
|
- - ">="
|
46
32
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
33
|
+
version: 3.2.0
|
48
34
|
type: :runtime
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
38
|
- - ">="
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
40
|
+
version: 3.2.0
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: mime-types
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,6 +80,20 @@ dependencies:
|
|
94
80
|
- - "~>"
|
95
81
|
- !ruby/object:Gem::Version
|
96
82
|
version: 0.0.1
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: plurimath
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: thread_safe
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -287,6 +287,7 @@ files:
|
|
287
287
|
- lib/html2doc/base.rb
|
288
288
|
- lib/html2doc/lists.rb
|
289
289
|
- lib/html2doc/math.rb
|
290
|
+
- lib/html2doc/mathml2omml.xsl
|
290
291
|
- lib/html2doc/mime.rb
|
291
292
|
- lib/html2doc/mml2omml.xsl
|
292
293
|
- lib/html2doc/notes.rb
|
@@ -312,7 +313,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
312
313
|
- !ruby/object:Gem::Version
|
313
314
|
version: '0'
|
314
315
|
requirements: []
|
315
|
-
rubygems_version: 3.
|
316
|
+
rubygems_version: 3.3.26
|
316
317
|
signing_key:
|
317
318
|
specification_version: 4
|
318
319
|
summary: Convert HTML document to Microsoft Word document
|