svnno****@sourc*****
svnno****@sourc*****
2010年 5月 29日 (土) 19:11:05 JST
Revision: 1100 http://sourceforge.jp/projects/hiki/svn/view?view=rev&revision=1100 Author: hiraku Date: 2010-05-29 19:11:05 +0900 (Sat, 29 May 2010) Log Message: ----------- * hiki/util.rb (Hiki::Util): add module function (get_common_data) for misc/plugin/history.rb Modified Paths: -------------- hiki/trunk/ChangeLog hiki/trunk/hiki/util.rb Modified: hiki/trunk/ChangeLog =================================================================== --- hiki/trunk/ChangeLog 2010-05-29 09:57:45 UTC (rev 1099) +++ hiki/trunk/ChangeLog 2010-05-29 10:11:05 UTC (rev 1100) @@ -1,5 +1,10 @@ 2010-05-29 hiraku <hirak****@sappo*****> + * hiki/util.rb (Hiki::Util): add module function (get_common_data) + for misc/plugin/history.rb + +2010-05-29 hiraku <hirak****@sappo*****> + * hiki/util.rb (Hiki::Util): add module function (unified_diff) * hiki/filter/bayes_filter.rb: use Hiki::Util.unified_diff insted Modified: hiki/trunk/hiki/util.rb =================================================================== --- hiki/trunk/hiki/util.rb 2010-05-29 09:57:45 UTC (rev 1099) +++ hiki/trunk/hiki/util.rb 2010-05-29 10:11:05 UTC (rev 1100) @@ -172,6 +172,8 @@ data end + module_function :get_common_data + def word_diff( src, dst, digest = false ) src_doc = Document.new( src, 'EUC-JP', CharString.guess_eol($/) ) dst_doc = Document.new( dst, 'EUC-JP', CharString.guess_eol($/) )