forked from simonoff/roo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace CRLF line terminator for unix line terminators
- Loading branch information
Showing
2 changed files
with
2,102 additions
and
2,102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
require 'roo' | ||
Dir.glob("test/files/*.ods").each do |fn| | ||
begin | ||
oo = Roo::OpenOffice.new fn | ||
print File.basename(fn) + " " | ||
puts oo.officeversion | ||
rescue Zip::ZipError, Errno::ENOENT => e | ||
# file is not a real .ods spreadsheet file | ||
puts e.message | ||
end | ||
end | ||
require 'roo' | ||
Dir.glob("test/files/*.ods").each do |fn| | ||
begin | ||
oo = Roo::OpenOffice.new fn | ||
print File.basename(fn) + " " | ||
puts oo.officeversion | ||
rescue Zip::ZipError, Errno::ENOENT => e | ||
# file is not a real .ods spreadsheet file | ||
puts e.message | ||
end | ||
end |
Oops, something went wrong.