gilt/rubyXL — Issue #6: Saving parsed file does not work
Author: klobuczek
Created: 2011-11-04 22:13:40+00:00
State: open

Something trivial like that throws an exception:

task :error => :environment do
workbook = RubyXL::Workbook.new
workbook.write("error.xlsx")
workbook = RubyXL::Parser.parse("error.xlsx")
workbook.write("error.xlsx")
end

That's the output:

"\n\n"

"\n\n"

rake aborted!
Symbol as array index
/Library/Ruby/Gems/1.8/gems/rubyXL-1.1.10/lib/rubyXL/writer/styles_writer.rb:132:in `[]'
/Library/Ruby/Gems/1.8/gems/rubyXL-1.1.10/lib/rubyXL/writer/styles_writer.rb:132:in `write'
/Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/builder.rb:373:in `call'
/Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/builder.rb:373:in `insert'
/Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/builder.rb:357:in `method_missing'
/Library/Ruby/Gems/1.8/gems/rubyXL-1.1.10/lib/rubyXL/writer/styles_writer.rb:131:in `write'
/Library/Ruby/Gems/1.8/gems/rubyXL-1.1.10/lib/rubyXL/writer/styles_writer.rb:127:in `upto'
/Library/Ruby/Gems/1.8/gems/rubyXL-1.1.10/lib/rubyXL/writer/styles_writer.rb:127:in `write'
/Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/builder.rb:373:in `call'
/Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/builder.rb:373:in `insert'
/Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/builder.rb:357:in `method_missing'
/Library/Ruby/Gems/1.8/gems/rubyXL-1.1.10/lib/rubyXL/writer/styles_writer.rb:126:in `write'
/Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/builder.rb:373:in `call'
/Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/builder.rb:373:in `insert'
/Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/builder.rb:357:in `method_missing'
/Library/Ruby/Gems/1.8/gems/rubyXL-1.1.10/lib/rubyXL/writer/styles_writer.rb:22:in `write'
/Library/Ruby/Gems/1.8/gems/nokogiri-1.5.0/lib/nokogiri/xml/builder.rb:293:in `initialize'
/Library/Ruby/Gems/1.8/gems/rubyXL-1.1.10/lib/rubyXL/writer/styles_writer.rb:21:in `new'
/Library/Ruby/Gems/1.8/gems/rubyXL-1.1.10/lib/rubyXL/writer/styles_writer.rb:21:in `write'
/Library/Ruby/Gems/1.8/gems/rubyXL-1.1.10/lib/rubyXL/workbook.rb:119:in `write'
/Library/Ruby/Gems/1.8/gems/rubyzip-0.9.4/lib/zip/zip.rb:1634:in `get_output_stream'
/Library/Ruby/Gems/1.8/gems/rubyzip-0.9.4/lib/zip/zip.rb:1456:in `get_output_stream'
/Library/Ruby/Gems/1.8/gems/rubyXL-1.1.10/lib/rubyXL/workbook.rb:119:in `write'
/Library/Ruby/Gems/1.8/gems/rubyzip-0.9.4/lib/zip/zip.rb:1413:in `open'
/Library/Ruby/Gems/1.8/gems/rubyXL-1.1.10/lib/rubyXL/workbook.rb:96:in `write'