Changeset 6193 for platform/tdiary/util
- Timestamp:
- 02/05/08 01:15:32 (10 months ago)
- Location:
- platform/tdiary/util/tdiary-for-ruby1.9
- Files:
-
- 2 modified
-
compatible.rb (modified) (4 diffs)
-
tdiary-2.2.0.patch (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
platform/tdiary/util/tdiary-for-ruby1.9/compatible.rb
r6190 r6193 1 1 # = for Ruby1.9.0 compatible = 2 2 # 3 # == ����==3 # == 前提条件 == 4 4 # 5 # * Ruby1.9 �ξ���--encoding=Binary ���ץ����������뤳�� 5 # * Ruby1.9 の場合は --encoding=Binary オプションで動作させること 6 6 7 # -------------------------------------------------------- 7 # ��Ū���� -------------------------------------------------------- 8 # 汎用的な設定 9 # -------------------------------------------------------- 8 10 9 11 # for Ruby1.9.0 … … 23 25 end 24 26 25 # Ruby1.9 �Ǥ�String �� Enumerable �ǤϤʤ��ʤä�27 # Ruby1.9では String が Enumerable ではなくなった 26 28 class String 27 29 def method_missing(name, *args, &block) … … 62 64 63 65 # -------------------------------------------------------- 64 # tDiary ����� -------------------------------------------------------- 66 # tDiary 用の設定 67 # -------------------------------------------------------- 65 68 66 # Ruby1.9��KF::nkf��֤����encoding������Ƥ��ޤ��� 67 # ���Τ��ᡢencoding��Binary�δĶ����������# "character encodings differ" ���顼�Ȥʤ롣 69 # Ruby1.9でNKF::nkfを呼ぶと文字列のencodingが変わってしまう。 70 # そのため、encodingがBinaryの環境で動かすと 71 # "character encodings differ" エラーとなる。 68 72 begin 69 73 require 'nkf' … … 79 83 end 80 84 81 # �����ޤ��å��ߤ����diary.last_modified �� String �ˤʤ�����) 82 # (PStore �¸���Time ���, �¸�� String �Ȥʤ�# �����String ��ä���ime ��Ѵ�����odule TDiary 85 # 日本語を含むツッコミを入れると diary.last_modified が String になる (原因不明) 86 # (PStore 保存前は Time だが, 保存後に String となる) 87 # 暫定的に String だったら Time へ変換する 88 module TDiary 83 89 class WikiDiary 84 90 def last_modified 85 if @last_modified. class ==String91 if @last_modified.is_a? String 86 92 @last_modified = Time.at(0) 87 93 end -
platform/tdiary/util/tdiary-for-ruby1.9/tdiary-2.2.0.patch
r6190 r6193 76 76 +++ plugin/ja/05referer.rb (working copy) 77 77 @@ -31,7 +31,7 @@ 78 <p> ��<a href="#{h @update}?referer=volatile" target="referer">����Ϥ����a></p>78 <p>→<a href="#{h @update}?referer=volatile" target="referer">既存設定はこちら</a></p> 79 79 <p><textarea name="only_volatile" cols="70" rows="10">#{h @conf.only_volatile2.join( "\n" )}</textarea></p> 80 80 <h3 class="subtitle">#{label_referer_table}</h3> 81 - #{"<p> �������ꥹ�Ȥ�RL����ʸ�����������ɽ������ޤ���1���Ĥ���URL�����ʸ����Ƕ��äƻ�ꤷ�ޤ������ɽ�����Ȥ����ǡ�URL��˸��줿�����פϡ����ʸ���ǡ�\1�פΤ褦�ʡ���פ�����ޤ���</p>" unless @conf.mobile_agent?}82 + #{"<p> �������ꥹ�Ȥ�RL����ʸ�����������ɽ������ޤ���1���Ĥ���URL�����ʸ����Ƕ��äƻ�ꤷ�ޤ������ɽ�����Ȥ����ǡ�URL��˸��줿�����פϡ����ʸ���ǡ�\\\1�פΤ褦�ʡ�\��פ�����ޤ���</p>" unless @conf.mobile_agent?}83 <p> ��<a href="#{h @update}?referer=table" target="referer">����Ϥ����a></p>81 - #{"<p>リンク元リストのURLを、特定の文字列に変換する対応表を指定できます。1件につき、URLと表示文字列を空白で区切って指定します。正規表現が使えるので、URL中に現れた「(~)」は、置換文字列中で「\\1」のような「\数字」で利用できます。</p>" unless @conf.mobile_agent?} 82 + #{"<p>リンク元リストのURLを、特定の文字列に変換する対応表を指定できます。1件につき、URLと表示文字列を空白で区切って指定します。正規表現が使えるので、URL中に現れた「(~)」は、置換文字列中で「\\\\1」のような「\\数字」で利用できます。</p>" unless @conf.mobile_agent?} 83 <p>→<a href="#{h @update}?referer=table" target="referer">既存設定はこちら</a></p> 84 84 <p><textarea name="referer_table" cols="70" rows="10">#{h @conf.referer_table2.collect{|a|a.join( " " )}.join( "\n" )}</textarea></p> 85 85 HTML
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)