Sha256: ef6cefa0396d6a468800ed559cc41211a8af8af1bcb6a670805502b321a75560
Contents?: true
Size: 527 Bytes
Versions: 7
Compression:
Stored size: 527 Bytes
Contents
#!/usr/bin/env ruby require_relative '../lib/spreadbase' require_relative 'utils_helpers' include UtilsHelpers def test_recoding_file(file_path) destination_file_path = file_path.sub(/\.ods$/, '.2.ods') document = SpreadBase::Document.new(file_path) document.document_path = destination_file_path document.save(prettify: true) open_office_document(destination_file_path) end if __FILE__ == $PROGRAM_NAME file_path = ARGV[0] || raise("Usage: test_recoding_file.rb <file>") test_recoding_file(file_path) end
Version data entries
7 entries across 7 versions & 1 rubygems