-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to
Twitter::Client#follow
and Twitter::Client#unfollow
These methods now accept multiple users as arguments and return an array instead of a `Twitter::User`. Additionally, the `Twitter::Client#follow` now checks to make sure the user isn't already being followed. If you don't wish to perform that check (which requires an extra HTTP request), you can use the new `Twitter::Client#follow!` method instead. Closes sferik/t-ruby#54.
- Loading branch information
Showing
8 changed files
with
196 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module Enumerable | ||
|
||
def threaded_map | ||
threads = [] | ||
each do |object| | ||
threads << Thread.new{yield object} | ||
end | ||
threads.map(&:value) | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"previous_cursor_str":"0","next_cursor":0,"ids":[146197851,145833898,90678091,63267186,142867146,18443187,84722702,9607792,18589926,17831966,103213461,6734842,45322951,14517078,70353603,133143291,54368334,127522778,128046728,95206919,128441606,91078264,126052250,8285392,16314440],"previous_cursor":0,"next_cursor_str":"0"} | ||
{"previous_cursor_str":"0","next_cursor":0,"ids":[146197851,145833898,90678091,63267186,142867146,18443187,84722702,9607792,18589926,17831966,103213461,6734842,45322951,14517078,70353603,133143291,54368334,127522778,128046728,95206919,128441606,91078264,126052250,14100886,16314440],"previous_cursor":0,"next_cursor_str":"0"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters