roo-rb / roo

Roo provides an interface to spreadsheets of several sorts.
MIT License
2.79k stars 501 forks source link

ArgumentError: Unknown key generation algorithm SHA1 #468

Open emplumb opened 6 years ago

emplumb commented 6 years ago

Steps to reproduce

ods = Roo::OpenOffice.new("#{Rails.root}/public/assets/data/2018-10_updated_terms.ods", password: "a")

(2..ods.last_row).each do |row|
    name = ods.cell(row, 'A')
    definition = ods.cell(row, 'E')

    Term.create!(:name => name, :definition => definition)
end

Issue

I cannot open ods files that are password protected. When the file does not have a password, it's parsed correctly and object is created when I check the database.

System configuration

Roo version: 2.7.1

Rails version: 5.0.0.1