Project

General

Profile

Actions

機能 #795

closed

リツイートをリツイートする

Added by toshi_a 初音 over 9 years ago. Updated over 9 years ago.

Status:
終了
Priority:
通常
Target version:
Start date:
2015-11-19
Due date:
% Done:

0%

プラグイン名:

Description

あるツイートをリツイートする時、そのツイート自身ではなく、最後に受け取ったリツイートをリツイートする。

Twitter公式アプリにできるだけ近づけるため。mikutterもretweeted_retweetには対応しているので、mikutter同士でリツイートがお互いに見えて面白い感じになるかもしれない


Files

795-ancestors-fix.patch (4.23 KB) 795-ancestors-fix.patch Osamu Koga, 2015-11-23 21:08
Actions #1

Updated by Osamu Koga over 9 years ago

abcb379Message#ancestors の返すものが変わったため「全員に返信」が壊れてしまっていました。
このメソッド名で Enumerator が返ってくるのは直感的じゃない気がしたので、直すついでに each_ancestorsancestors に機能を分けてみました。
ちょうど String#each_charString#chars のような感じです(名前も each_ancestor のほうが英語として正しいと思いますが、publicなメソッドなので変えるのは難しいですね……)。

Actions #2

Updated by toshi_a 初音 over 9 years ago

  • Status changed from 新規 to 実装待ち

気づいてませんでした

Actions #3

Updated by toshi_a 初音 over 9 years ago

  • Assignee changed from toshi_a 初音 to Osamu Koga

適用したらこんな感じでしょうか。
eachの用法は理解できませんでしたが、確かに他のコードではeachの後は単数形なので、そうしておきました。

Actions #4

Updated by Osamu Koga over 9 years ago

  • Assignee changed from Osamu Koga to toshi_a 初音

そんな感じです。deprecateいいですね。
eachの使い分けは、each_hogeはブロックがあればyield、なければEnumeratorを返すメソッドで、hogesはeach_hoge.to_aと等価になるという挙動のことを指していました。

Actions #5

Updated by toshi_a 初音 over 9 years ago

  • Status changed from 実装待ち to 終了
Actions

Also available in: Atom PDF