gilt/rubyXL — pull request #44 by daemonsy (2012-09-08 16:35:14+00:00)
Title: Do not write sharedStrings.xml relationship unless @workbook.shared_strings is present

Hi,

The RubyXL gem writes the relationship for `sharedStrings.xml` regardless of whether `@workbook.shared_strings` is present.

Based on the code, it seems that RubyXL only uses shared_strings if they are present at parsing, but not when writing a generated excel workbook.

Based on saving and inspecting new empty excel files' XMLs, it seems that an empty sharedStrings.xml isn't necessary.

This fixes the preview problem and allows the file to be opened by OpenXML Productivity Tool (previously unopenable due to the missing sharedStrings.xml).

Hope it helps.