lib/rtesseract/utils.rb in rtesseract-2.1.0 vs lib/rtesseract/utils.rb in rtesseract-2.2.0
- old
+ new
@@ -25,12 +25,12 @@
true
end
# Extract tesseract version number
def self.version_number
- out, err, st = Open3.capture3(RTesseract.default_command, "--version")
-
- version = err.split("\n")[0].split(" ")[1].split('.')[0, 2].join('.')
+ output, st = Open3.capture2e(RTesseract.default_command, "--version")
+
+ version = output.split("\n")[0].split(" ")[1].split('.')[0, 2].join('.')
Float(version) rescue nil
end
end
end