Setting the Saved property of the Workbook object to True does not save the workbook. This property is used as a flag to indicate whether the workbook has unsaved changes. Setting it to True is an easy way to prevent the "Do you want to save ..." dialog box from appearing when Excel is closed.
To really save the workbook, you need the Save method of the Workbook object. This method does not return anything, so I would suggest that workbook.Save will do the trick (I have no Ruby experience, unfortunately, therefore I'm not 100% sure)
source share