1.x 版的 rubyzip 改了用法：

https://github.com/rubyzip/rubyzip

Use write_buffer instead open.
Use write instead of print.