[Hiki-cvs 1598] hiki/hiki @ ed52c75 [master] fix Plugin Error

Zurück zum Archiv-Index

Shin-ya Murakami null****@okkez*****
2013年 12月 24日 (火) 22:01:36 JST


Shin-ya Murakami	2013-12-02 21:01:44 +0900 (Mon, 02 Dec 2013)

  New Revision: ed52c758c0295a878cab87493e3c9a310e33aa06
  https://github.com/hiki/hiki/commit/ed52c758c0295a878cab87493e3c9a310e33aa06

  Merged 213daae: Merge pull request #46 from murashin/master

  Message:
    fix Plugin Error
    
    * fix "Plugin Error: undefined method `set_conf' for Hiki::Util:Module"
      when using {{recent(10)}}, {{toc}}, and etc.

  Modified files:
    hiki/util.rb

  Modified: hiki/util.rb (+5 -5)
===================================================================
--- hiki/util.rb    2013-12-02 20:38:40 +0900 (cf08a1b)
+++ hiki/util.rb    2013-12-02 21:01:44 +0900 (d8fea2e)
@@ -105,7 +105,11 @@ module Hiki
     alias h escapeHTML
     alias unescape_html unescapeHTML
 
-    module_function :escape, :unescape, :escape_html, :h, :unescape_html
+    def set_conf(conf)
+      @conf = conf
+    end
+
+    module_function :escape, :unescape, :escape_html, :h, :unescape_html, :set_conf
 
     def plugin_error(method, e)
       msg = "<strong>#{e.class} (#{h(e.message)}): #{h(method)}</strong><br>"
@@ -295,10 +299,6 @@ EOS
       end
     end
 
-    def set_conf(conf)
-      @conf = conf
-    end
-
     def shorten(str, len = 200)
       arr = str.split(//)
       if arr.length <= len - 2




Hiki-cvs メーリングリストの案内
Zurück zum Archiv-Index