Don't like ads? PRO users don't see any ads ;-)

search.rb.diff for tdiarysearch (tdiary-contrib)

By: fudan10u on May 3rd, 2012  |  syntax: Diff  |  size: 0.68 KB  |  hits: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- search.rb.orig      2011-06-26 14:13:33.437500000 +0900
  2. +++ search.rb   2012-05-04 10:41:52.406250000 +0900
  3. @@ -123,7 +123,7 @@
  4.  end
  5.  $:.unshift tdiarylib
  6.  require 'tdiary'
  7. -require 'tdiary/defaultio'
  8. +# require 'tdiary/defaultio'
  9.  require 'erb'
  10.  
  11.  TDIARY_ENCODING = (TDIARY_VERSION >= '2.3.0') ? 'utf-8' : 'euc-jp'
  12. @@ -316,7 +316,8 @@
  13.  def diary_class(style)
  14.    c = DIARY_CLASS_CACHE[style]
  15.    return c if c
  16. -  require "tdiary/#{style.downcase}_style.rb"
  17. +#  require "tdiary/#{style.downcase}_style.rb"
  18. +  require "tdiary/style/#{style.downcase}_style.rb"
  19.    c = eval("TDiary::#{style.capitalize}Diary")
  20.    c.__send__(:include, DiaryClassDelta)
  21.    DIARY_CLASS_CACHE[style] = c