From: TADA T. <t...@td...> - 2010-09-08 02:51:32
|
ただただしです。 2010/9/7 KADO Masanori <kd...@gm...>: > 「#194 blog-category.rbが動作しない」について、 > 根本的な解決ではないかもですが、以下で動きました。 > > diff --git a/plugin/05referer.rb b/plugin/05referer.rb > index 60f7a7e..d00f316 100644 > --- a/plugin/05referer.rb > +++ b/plugin/05referer.rb > @@ -17,7 +17,7 @@ end > def referer_save_trigger > return unless @conf.io_class.to_s == 'TDiary::DefaultIO' > return unless @mode =~ /^(latest|day|edit|append|replace)$/ > - if @date then > + if @date and @date.respond_to?(:strftime) then > diary = @diaries[@date.strftime( '%Y%m%d' )] > diary.clear_referers if diary > end このhunkは関係ないですよね? > diff --git a/tdiary.rb b/tdiary.rb > index 58d55ef..cbb55f9 100755 > --- a/tdiary.rb > +++ b/tdiary.rb > @@ -1146,13 +1146,6 @@ module TDiary > > def load_plugins > calendar > - if @plugin > - @plugin.diaries = @diaries > - @plugin.date = @date > - @plugin.last_modified = last_modified > - @plugin.comment = @comment > - return @plugin > - end > @plugin = Plugin::new( > 'conf' => @conf, > 'mode' => mode, 2.3.3以降なので、この部分でビンゴだと思います。性能向上のために @pluginを使いまわしたかったんだけど、それを期待していないプラグ インがあったということですね。 #blog-category.rbが暴れん坊すぎるというのもあるけど……。 ちょっと残念だけど巻き戻しましょう。コミット願います。 -- ただただし - ツッコミは、短く鋭く愛を込めて♪ http://tdtds.jp/ @tdtds |