RubyMoney/money — pull request #154 by banjerluke (2012-03-09 00:10:41+00:00)
Title: Rates exported to a file from VariableExchange leave the File object open.

Passing a block to File.open ensures the file is closed after writing, which is what I've done here.