• R/O
  • SSH
  • HTTPS

hiki: コミット


コミットメタ情報

リビジョン1099 (tree)
日時2010-05-29 18:57:45
作者hiraku

ログメッセージ

* hiki/util.rb (Hiki::Util): add module function (unified_diff)

* hiki/filter/bayes_filter.rb: use Hiki::Util.unified_diff insted
of Object#unified_diff (included Hiki::Util on top level).

変更サマリ

差分

--- hiki/trunk/hiki/util.rb (revision 1098)
+++ hiki/trunk/hiki/util.rb (revision 1099)
@@ -210,6 +210,8 @@
210210 return h(Diff.new(src.split(/^/), dst.split(/^/)).ses.unidiff( '', context_lines ))
211211 end
212212
213+ module_function :unified_diff
214+
213215 def redirect(cgi, url, cookies = nil)
214216 url.sub!(%r|/\./|, '/')
215217 header = {}
--- hiki/trunk/hiki/filter/bayes_filter.rb (revision 1098)
+++ hiki/trunk/hiki/filter/bayes_filter.rb (revision 1099)
@@ -240,7 +240,7 @@
240240 end
241241
242242 def get_unified_diff
243- unified_diff(@old_page.text||"", @new_page.text||"")
243+ Hiki::Util.unified_diff(@old_page.text||"", @new_page.text||"")
244244 end
245245 end
246246 end
--- hiki/trunk/ChangeLog (revision 1098)
+++ hiki/trunk/ChangeLog (revision 1099)
@@ -1,3 +1,10 @@
1+2010-05-29 hiraku <hiraku@sapporo.email.ne.jp>
2+
3+ * hiki/util.rb (Hiki::Util): add module function (unified_diff)
4+
5+ * hiki/filter/bayes_filter.rb: use Hiki::Util.unified_diff insted
6+ of Object#unified_diff (included Hiki::Util on top level).
7+
18 2009-09-05 okkez <okkez000@gmail.com>
29
310 * hiki/util.rb (Hiki::Util): add module functions (escape,
旧リポジトリブラウザで表示