YUKI Hiroshi
null+****@clear*****
Fri Jan 16 16:37:51 JST 2015
YUKI Hiroshi 2015-01-16 16:37:51 +0900 (Fri, 16 Jan 2015) New Revision: 5efd729722011b29ab655b62ece5fa5e4f3b586b https://github.com/droonga/droonga-engine/commit/5efd729722011b29ab655b62ece5fa5e4f3b586b Message: Remove needless third parameter for Tempfile.open Modified files: lib/droonga/safe_file_writer.rb Modified: lib/droonga/safe_file_writer.rb (+1 -1) =================================================================== --- lib/droonga/safe_file_writer.rb 2015-01-16 16:29:50 +0900 (fb402a0) +++ lib/droonga/safe_file_writer.rb 2015-01-16 16:37:51 +0900 (9c78946) @@ -24,7 +24,7 @@ module Droonga # Don't output the file directly to prevent loading of incomplete file! path = Pathname(path).expand_path FileUtils.mkdir_p(path.dirname.to_s) - Tempfile.open(path.basename.to_s, path.dirname.to_s, "w") do |output| + Tempfile.open(path.basename.to_s, path.dirname.to_s) do |output| if block_given? yield(output, output.path) else -------------- next part -------------- HTML����������������������������... 下载