Ryo Sugimoto
null+****@clear*****
Wed Sep 17 21:34:33 JST 2014
Ryo Sugimoto 2014-09-17 21:34:33 +0900 (Wed, 17 Sep 2014) New Revision: 83c7a5614a78947bbb10005748e374a6684b3878 https://github.com/groonga/heroku-groonga-builder/commit/83c7a5614a78947bbb10005748e374a6684b3878 Merged 295f173: Merge branch 'build_mecab' of github.com:groonga/heroku-groonga-builder into build-mecab Message: Use File.open instead of open Modified files: Rakefile Modified: Rakefile (+3 -1) =================================================================== --- Rakefile 2014-09-17 21:32:49 +0900 (2e69be8) +++ Rakefile 2014-09-17 21:34:33 +0900 (69795a9) @@ -146,7 +146,9 @@ class GroongaBuilder sh("make", "install-data") end mecab_rc_path = File.join(absolete_mecab_prefix, "etc", "mecabrc") - mecab_rc_content = mecab_rc_path.read + mecab_rc_content = File.open(mecab_rc_path, "r") do |mecab_rc| + mecab_rc.read + end naist_jdic_dir = File.join(absolete_install_prefix, "lib", "mecab", "dic", "naist-jdic") File.open(mecab_rc_path, "w") do |mecab_rc| mecab_rc.print(mecab_rc_content.gsub(/^dicdir\s*=.+$/, -------------- next part -------------- HTML����������������������������...Download