Skip to content

Commit

Permalink
Reorder paragraphs [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Jun 24, 2012
1 parent d5b5d87 commit a6b541c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
21 changes: 11 additions & 10 deletions README.md
Expand Up @@ -58,29 +58,30 @@ better performance than calling these methods multiple times in serial.
The `Twitter::Client#direct_messages` method has been renamed to
`Twitter::Client#direct_messages_received`.

The `Twitter::Client#profile_image` method has been removed.
The `Twitter::Status#expanded_urls` method has been removed. Use
`Twitter::Status#urls` instead.

The `Twitter::Client#profile_image` method has been removed without
replacement.

The `Twitter::Client#follow` method now checks to make sure the user isn't
already being followed. If you don't wish to perform that check (which does
require an extra HTTP request), you can use the new `Twitter::Client#follow!`
method instead. **Note**: This may re-send an email notification to the user,
even if they are already being followed.

The `Twitter::Client#search` now returns a `Twitter::SearchResult` object,
which contains metadata and a results array. In the previous major version,
this method returned an array of `Twitter::Status` objects, which is now
accessible by sending the `results` message to a `Twitter::SearchResults`
object.

Additionally, the `Twitter::Client#follow` method now checks to make sure the
user isn't already being followed. If you don't wish to perform that check
(which does require an extra HTTP request), you can use the new
`Twitter::Client#follow!` method instead. **Note**: This may re-send an email
notification to the user, even if they are already being followed.

##### Version 2
Twitter::Client.search("query").map(&:full_text)

##### Version 3
Twitter::Client.search("query").results.map(&:full_text)

The `Twitter::Status#expanded_urls` method has been removed. Use
`Twitter::Status#urls` instead.

### Configuration
The Faraday middleware stack is now fully configurable and is exposed as a
`Faraday::Builder` which can be manipulated in place:
Expand Down
2 changes: 1 addition & 1 deletion spec/twitter/configuration_spec.rb
Expand Up @@ -9,7 +9,7 @@
photo_sizes[:small].should be_a Twitter::Size
end
it "is empty when photo_sizes is not set" do
photo_sizes = Twitter::Configuration.new().photo_sizes
photo_sizes = Twitter::Configuration.new.photo_sizes
photo_sizes.should be_empty
end
end
Expand Down

0 comments on commit a6b541c

Please sign in to comment.