Kouhei Sutou
null+****@clear*****
Mon May 26 16:54:06 JST 2014
Kouhei Sutou 2014-05-26 16:54:06 +0900 (Mon, 26 May 2014) New Revision: 18a448765bc348895427382f617bce504fdc3c35 https://github.com/droonga/droonga-engine/commit/18a448765bc348895427382f617bce504fdc3c35 Message: Use Pathname#open Modified files: lib/droonga/command/serf_event_handler.rb Modified: lib/droonga/command/serf_event_handler.rb (+1 -1) =================================================================== --- lib/droonga/command/serf_event_handler.rb 2014-05-26 16:53:14 +0900 (3a95bab) +++ lib/droonga/command/serf_event_handler.rb 2014-05-26 16:54:06 +0900 (6613d9a) @@ -76,7 +76,7 @@ module Droonga nodes = live_nodes file_contents = JSON.pretty_generate(nodes) FileUtils.mkdir_p(list_file.parent.to_s) - File.open(list_file.to_s, "w") do |file| + list_file.open("w") do |file| file.write(file_contents) end end -------------- next part -------------- HTML����������������������������...ダウンロード