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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0519bc0cdea11bd73e5ef3c07236793fc46ade0f08e7c36258e8fe0918808907'
4
- data.tar.gz: 919f5ee2632c524b30a72f5eb9f1c647c386eda1946aab89ea7f74e603e90aa1
3
+ metadata.gz: 97746384a189f102b2ae9fb98ed39cd8371297d4f8a0567230137f7a1c7843c0
4
+ data.tar.gz: ab24fb45d0ed0622972b2e6e5bb9426f236cfdf652ebdabbe9c4a0cc74cbeefb
5
5
  SHA512:
6
- metadata.gz: 1c3c6b592ebff133758628ef1cd664a9c7e13390bd63551026c785992f0c6ae770d7593aa5052477e1aa08fedd033d749056857a9bb73b1e5babd4aa2e657ff4
7
- data.tar.gz: 907db4fb0ae7c64168c5b8436b1d2162591f05d9785928cb393d5e7ea4e7fddc086c96534a81e5d3f42df1c048df5c00b313e08f96dbb91a88b0dd95d3ee6774
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 # does not support emf
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]
@@ -1,3 +1,3 @@
1
1
  class Html2Doc
2
- VERSION = "1.4.4".freeze
2
+ VERSION = "1.4.5".freeze
3
3
  end
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
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: '0'
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: '0'
54
+ version: 3.2.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: mime-types
57
57
  requirement: !ruby/object:Gem::Requirement