html2doc 1.4.4 → 1.4.5
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 -1
- data/lib/html2doc/mime.rb +1 -3
- data/lib/html2doc/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97746384a189f102b2ae9fb98ed39cd8371297d4f8a0567230137f7a1c7843c0
|
4
|
+
data.tar.gz: ab24fb45d0ed0622972b2e6e5bb9426f236cfdf652ebdabbe9c4a0cc74cbeefb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a76a86bff1df66a467f5d40e60506709bb9fb2f003f6d06c121bab14384394f97c46e89b2130d86d14c49e82e8ceb7e9c155805604330c07ce3351bd19a4aa53
|
7
|
+
data.tar.gz: ddeb932fdd1f3c55a3411a7349180f6f58f23e5048acb7d81c0193b9ae991c04c9ba1555c8e3e459e60bf8230bd310c9d0a0c2c5684e98f16186b086016d7b54
|
data/html2doc.gemspec
CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
|
29
29
|
spec.add_dependency "asciimath", "~> 2.0.2"
|
30
30
|
spec.add_dependency "htmlentities", "~> 4.3.4"
|
31
|
-
spec.add_dependency "image_size"
|
31
|
+
spec.add_dependency "image_size", ">= 3.2.0"
|
32
32
|
spec.add_dependency "mime-types"
|
33
33
|
spec.add_dependency "nokogiri", "~> 1.13"
|
34
34
|
spec.add_dependency "plane1converter", "~> 0.0.1"
|
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,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html2doc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 3.2.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 3.2.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: mime-types
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|