Kouhei Sutou
null+****@clear*****
Wed Jun 25 15:33:50 JST 2014
Kouhei Sutou 2014-06-25 15:33:50 +0900 (Wed, 25 Jun 2014) New Revision: d0d73d27dd83bdaa2ce9d0855083fd5daa36d645 https://github.com/droonga/droonga-engine/commit/d0d73d27dd83bdaa2ce9d0855083fd5daa36d645 Message: Use dirname instead of parent Because the corresponded method of basename is dirname. Modified files: bin/droonga-engine-catalog-generate Modified: bin/droonga-engine-catalog-generate (+1 -1) =================================================================== --- bin/droonga-engine-catalog-generate 2014-06-25 12:43:21 +0900 (90f3900) +++ bin/droonga-engine-catalog-generate 2014-06-25 15:33:50 +0900 (39ac79e) @@ -101,7 +101,7 @@ def open_output(path) else # Don't output the file directly to prevent loading of incomplete file! path = Pathname(path).expand_path - Tempfile.open(path.basename.to_s, path.parent.to_s, "w") do |output| + Tempfile.open(path.basename.to_s, path.dirname.to_s, "w") do |output| yield(output) output.flush File.rename(output.path, path.to_s) -------------- next part -------------- HTML����������������������������... 다운로드