replace '*' by '*' on text due to twitter-gem problem #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
要約
投稿本文の
*
は*
に置き換えます。本文
問題点
以下のものがうまくいきませんでした。
結果は以下のとおりです。
*
が含まれている投稿は、このエラーが出ます。原因
これは
twitter
gem の問題です。調査内容は sferik/twitter-ruby#677 (comment) にまとまっています。これを見て実験する限り、 gem の使い手が*
を%2A
にエスケープするのは意味がありません。なお、すでに修正が sferik/twitter-ruby#969 で提案されています。影響範囲
このおかげで、上記ニュース以降のニュースがすべて投稿されていません。
*
が登場していなかったので、今まで発覚しませんでした。対策が必須です。解決策
致し方ないので、投稿本文の
*
を全角の*
に置き換えます。これでうまくいくのはテスト済みです。美しくはないですが、すべて日本語で書かれているので、こういう事情ならば許容されるかと存じます。備考
この問題は #1 の変更とは全く関係がありません。
この修正を反映させて
clockwork
を再度実行すれば、該当ニュース以降が反映されると見込まれます。どうぞ、よろしくお願いします。