2.1.0
更新内容
- #280 #283 #284 #287 #288 デーモン起動手順の見直し。
- #271 Webhookモード。tomato-tootの同名機能を移植、アレンジしたもの。
- #265 #289 #290 #292 外部辞書APIに登録された固有名詞をハッシュタグとして加える。
- #286 数値だけのトゥートを行うと500エラー。
- #285 単純な404エラーでは、管理者宛にSlack通知しない。
更新手順
停止
cd 設置先
bundle exec rake stop
アップデート
git pull
bundle install
設定ファイル更新
以下、追加された項目。
handlers:
- shortened_url
- url_normalize
- spotify_nowplaying
- amazon_nowplaying
- itunes_nowplaying
- spotify_url_nowplaying
- itunes_url_nowplaying
- amazon_asin
- canonical
- amazon_image
- spotify_image
- itunes_image
- tagging
- user_config_command
- growi_clipping
- growi_clipping_command
- dropbox_clipping
- dropbox_clipping_command
- webhook_url_command
- admin_notification
- mention_notification
tagging:
dictionaries:
- url: https://script.googleusercontent.com/macros/echo?user_content_key=wo8gOi5Sh-9Jj2E6tEcH63gLpP1DfYNtSmg-krsg7mLQ5Yge-Zm0bUPp__23t1kqKPZk-Nq6mz4pY7JyzhNVLUasuCvtOx93m5_BxDlH2jW0nuo2oDemN9CCS2h10ox_1xSncGQajx_ryfhECjZEnJPtSF1KzUJXTo_pA3Qll7V-53MZArfz9tlhkG4eAFvRdOPYcy3-_RURs1zUK59_LTGAbNhJnlep&lib=Mz_kSmMa676sbphxvXhpTCnGac_s0g0mR
fields:
- cure_name
- human_name
- cv
- url: https://dic.example.com/another
fields:
- fieldname1
- fieldname2
webhook:
salt: hoge
- /handlers
taggingwebhook_url_commandを追加。 - /tagging/dictionaries/*/url 辞書APIのURL(複数指定可)
- /tagging/dictionaries/*/fields 辞書APIの、登録対象の要素名の配列
- /webhook/salt WebookのURL生成に使われるソルト。(任意の文字列)
リバースプロキシ設定
Webhookを利用するなら、以下の記述をnginxの設定ファイルに追記。
location ^~ /mulukhiya {
proxy_pass http://localhost:3008;
}
テスト用Webhookを登録
2.1での変更点(管理者向け)を参照の上、 /test/account で指定したアカウントに
テスト用のWebhookを登録。
開始、テスト
bundle exec rake start
bundle exec rake test
最後のテストで 100% passed が表示されることを確認。