Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Prepare for version 3.3.0 [ci skip]

  • Loading branch information...
commit 8856955070f8a36ae770657a1b193932f968b348 1 parent 0ff6d97
Erik Michaels-Ober authored
Showing with 20 additions and 11 deletions.
  1. +8 −0 CHANGELOG.md
  2. +11 −10 README.md
  3. +1 −1  lib/twitter/version.rb
8 CHANGELOG.md
View
@@ -1,3 +1,11 @@
+3.3.0
+-----
+* [Refactor `Twitter::RateLimit` class to be non-global](https://github.com/sferik/twitter/commit/6e9da0d0b8ae61e077eb631514922635a78951a7)
+* [Combine `Twitter::RateLimit#retry_after` and `Twitter::RateLimit#reset_in` into a single method](https://github.com/sferik/twitter/commit/1702f05a60016013c198626339c57d53031cb17d)
+* [Create proper interface for `Twitter::IdentityMap`](https://github.com/sferik/twitter/commit/86df78eae28364f3b5aac8bb5eca52d516187aa8)
+* [Move `Twitter::Point` and `Twitter::Polygon` classes under `Twitter::Geo` namespace](https://github.com/sferik/twitter/commit/059cc5545195f99ba1b484e8359b7246f29be37e)
+* [Move `Twitter::Photo` class under `Twitter::Media` namespace](https://github.com/sferik/twitter/commit/979ed718c6c31140a5698cbb6c7bd311b799f39e)
+
3.2.0
-----
* [Make identity map configurable](https://github.com/sferik/twitter/pull/288)
21 README.md
View
@@ -72,10 +72,10 @@ 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`
+The `Twitter::Client#search` method 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.
##### Version 2
@@ -133,15 +133,16 @@ Any Faraday client errors are captured and re-raised as a
`Twitter::Error::ClientError`, so there's no longer a need to separately rescue
`Faraday::Error::ClientError`.
-All `Twitter::Error.ratelimit` methods (including `Twitter::Error.retry_at`)
-have been replaced by the `Twitter::RateLimit` singleton class. After making
-any request, you can check the `Twitter::RateLimit` object for your current
-rate limit status.
+All `Twitter::Error` rate limit methods (including `Twitter::Error.retry_at`)
+have been replaced by the `Twitter::Error#rate_limit` method, which returns a
+`Twitter::RateLimit` instance. Likewise, there is now a
+`Twitter::Client#rate_limit` method, which gets updated after each request.
- rate_limit = Twitter::RateLimit.instance
+ Twitter.user("sferik") # Any API request will fetch rate limit information
+ rate_limit = Twitter.rate_limit
rate_limit.limit #=> 150
rate_limit.remaining #=> 149
- rate_limit.reset_at #=> 2012-06-23 20:04:36 -0700
+ rate_limit.reset_at #=> 2012-07-16 12:34:56 -0700
rate_limit.reset_in #=> 3540 (seconds)
### Additional notes
2  lib/twitter/version.rb
View
@@ -1,7 +1,7 @@
module Twitter
class Version
MAJOR = 3 unless defined? MAJOR
- MINOR = 2 unless defined? MINOR
+ MINOR = 3 unless defined? MINOR
PATCH = 0 unless defined? PATCH
PRE = nil unless defined? PRE
Please sign in to comment.
Something went wrong with that request. Please try again.