diff --git a/html2doc.gemspec b/html2doc.gemspec index dcb7c9d..1eef5b0 100644 --- a/html2doc.gemspec +++ b/html2doc.gemspec @@ -31,7 +31,7 @@ Gem::Specification.new do |spec| spec.add_dependency "mime-types" spec.add_dependency "nokogiri", "~> 1.15" spec.add_dependency "plane1converter", "~> 0.0.1" - spec.add_dependency "plurimath", "~> 0.7.0" + spec.add_dependency "plurimath", "~> 0.8.0" spec.add_dependency "thread_safe" spec.add_dependency "uuidtools" spec.add_dependency "unitsml" @@ -43,7 +43,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency "guard-rspec", "~> 4.7" spec.add_development_dependency "rake", "~> 12.0" spec.add_development_dependency "rspec", "~> 3.6" - spec.add_development_dependency "rspec-match_fuzzy", "~> 0.1.3" + spec.add_development_dependency "rspec-match_fuzzy", "~> 0.2.0" spec.add_development_dependency "rubocop", "~> 1.5.2" spec.add_development_dependency "simplecov", "~> 0.15" spec.add_development_dependency "timecop", "~> 0.9" diff --git a/lib/html2doc/mime.rb b/lib/html2doc/mime.rb index 64d70e9..5a15af3 100644 --- a/lib/html2doc/mime.rb +++ b/lib/html2doc/mime.rb @@ -124,7 +124,7 @@ def rename_image(img, dir, localdir) def skip_image_cleanup?(img) src = img["src"] - (img.element? && %w(img v:imagedata).include?(img.name)) or return true + (img.element? && %w(img imagedata).include?(img.name)) or return true (src.nil? || src.empty? || /^http/.match?(src) || %r{^data:(image|application)/[^;]+;base64}.match?(src)) and return true false diff --git a/spec/html2doc_spec.rb b/spec/html2doc_spec.rb index 07e2468..67c92c1 100644 --- a/spec/html2doc_spec.rb +++ b/spec/html2doc_spec.rb @@ -2,7 +2,7 @@ def html_input(xml) <<~HTML -