[Hiki-cvs 1398] [945] use dot instead double colon when call singleton methods.

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 7月 28日 (火) 18:39:06 JST


Revision: 945
          http://sourceforge.jp/projects/hiki/svn/view?view=rev&revision=945
Author:   okkez
Date:     2009-07-28 18:39:06 +0900 (Tue, 28 Jul 2009)

Log Message:
-----------
use dot instead double colon when call singleton methods.

Modified Paths:
--------------
    hiki/trunk/ChangeLog
    hiki/trunk/misc/plugin/history.rb

Modified: hiki/trunk/ChangeLog
===================================================================
--- hiki/trunk/ChangeLog	2009-07-28 08:31:57 UTC (rev 944)
+++ hiki/trunk/ChangeLog	2009-07-28 09:39:06 UTC (rev 945)
@@ -1,3 +1,8 @@
+2009-07-28  okkez  <okkez****@gmail*****>
+
+	* misc/plugin/history.rb: use dot instead double colon when call
+	singleton meshods.
+
 2009-07-28  Kazuhiko  <kazuh****@fdiar*****>
 
 	* plugin/00default.rb: use ::Hiki::VERSION instead of

Modified: hiki/trunk/misc/plugin/history.rb
===================================================================
--- hiki/trunk/misc/plugin/history.rb	2009-07-28 08:31:57 UTC (rev 944)
+++ hiki/trunk/misc/plugin/history.rb	2009-07-28 09:39:06 UTC (rev 945)
@@ -1,3 +1,4 @@
+# -*- coding: euc-jp -*-
 =begin
 
 == plugin/history.rb - CVS の編集履歴を表示するプラグイン
@@ -53,21 +54,21 @@
 =end
 
 def history
-  h = Hiki::History::new(@cgi, @db, @conf)
+  h = Hiki::History.new(@cgi, @db, @conf)
   h.history
 end
 
 def history_src
-  h = Hiki::History::new(@cgi, @db, @conf)
+  h = Hiki::History.new(@cgi, @db, @conf)
   h.history_src
 end
 
 def history_diff
-  h = Hiki::History::new(@cgi, @db, @conf)
+  h = Hiki::History.new(@cgi, @db, @conf)
   h.history_diff
 end
 
-add_body_enter_proc(Proc::new do
+add_body_enter_proc(Proc.new do
   add_plugin_command('history', history_label, {'p' => true})
 end)
 
@@ -93,11 +94,11 @@
     # Subroutine to output proper HTML for Hiki.
     def history_output(s)
       # Imported codes from hiki/command.rb::cmd_view()
-      parser =****@conf*****::new( @conf )
+      parser =****@conf*****( @conf )
       tokens = parser.parse( s )
-      formatter =****@conf*****::new( tokens, @db, @plugin, @conf )
-      @page  = Page::new( @cgi, @conf )
-      data   = Util::get_common_data( @db, @plugin, @conf )
+      formatter =****@conf*****( tokens, @db, @plugin, @conf )
+      @page  = Page.new( @cgi, @conf )
+      data   = Util.get_common_data( @db, @plugin, @conf )
       @plugin.hiki_menu(data, @cmd)
       pg_title =****@plugi*****_name(@p)
       data[:title]      = title( "#{pg_title} - #{history_label}")




Hiki-cvs メーリングリストの案内
Back to archive index