I haven't tried it with Excel 2013 yet, but I wrote a gem called 
"rubyexcel" to interact with Excel 2010: reading 2D arrays or excel 
files, modifying the data, and then outputting to Excel or CSV.

It's here if you want to give it a try.
Gem: https://rubygems.org/gems/rubyexcel
Source & Readme: https://github.com/VirtuosoJoel/RubyExcel

-- 
Posted via http://www.ruby-forum.com/.