lib/esv.rb in excel-esv-0.0.6 vs lib/esv.rb in excel-esv-0.0.7
- old
+ new
@@ -9,10 +9,10 @@
yield(generator)
generator.render
end
def self.generate_file(path, &block)
- File.open(path, "w") do |file|
+ File.open(path, "wb") do |file|
file.write generate(&block)
end
end
def self.parse(data)