Skip to content

Commit

Permalink
Remove Twitter::API#rate_limit_status
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Sep 17, 2012
1 parent e4a7015 commit ffebee6
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 79 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ Here are some fun facts about the 3.0 release:

* The entire library is implemented in just 2,000 lines of code
* With over 5,000 lines of specs, the spec-to-code ratio is over 2.5:1
* The spec suite contains 648 examples and runs in under 2 seconds on a MacBook
* The spec suite contains 644 examples and runs in under 2 seconds on a MacBook
* This project has 100% C0 code coverage (the tests execute every line of
source code at least once)
* At the time of release, this library is comprehensive: you can request all
Expand Down
15 changes: 0 additions & 15 deletions lib/twitter/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
require 'twitter/list'
require 'twitter/oembed'
require 'twitter/place'
require 'twitter/rate_limit_status'
require 'twitter/relationship'
require 'twitter/saved_search'
require 'twitter/search_results'
Expand All @@ -29,20 +28,6 @@ module API
MAX_USERS_PER_REQUEST = 100
MAX_TWEETS_PER_REQUEST = 200

# Returns the remaining number of API requests available to the requesting user
#
# @see https://dev.twitter.com/docs/api/1.1/get/application/rate_limit_status
# @rate_limited No
# @authentication_required Requires user context
# @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
# @return [Twitter::RateLimitStatus]
# @param options [Hash] A customizable set of options.
# @example Return the remaining number of API requests available to the requesting user
# Twitter.rate_limit_status
def rate_limit_status(options={})
object_from_response(Twitter::RateLimitStatus, :get, "/1.1/application/rate_limit_status.json", options)
end

# Returns the requesting user if authentication was successful, otherwise raises {Twitter::Error::Unauthorized}
#
# @see https://dev.twitter.com/docs/api/1.1/get/account/verify_credentials
Expand Down
21 changes: 0 additions & 21 deletions lib/twitter/rate_limit_status.rb

This file was deleted.

26 changes: 0 additions & 26 deletions spec/twitter/api/application_spec.rb

This file was deleted.

16 changes: 0 additions & 16 deletions spec/twitter/rate_limit_status_spec.rb

This file was deleted.

1 comment on commit ffebee6

@AgoraSecurity
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious. Why was this removed?

Please sign in to comment.