oauth_twitter 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.gitignore +2 -0
- data/lib/oauth_twitter.rb +3 -1
- data/lib/oauth_twitter/api/application.rb +17 -0
- data/lib/oauth_twitter/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWRkMTExYThmN2UzMzI3NTQ1MTk3YTRmZTExNDA2ODRlZTE3MzkzNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODdmNDdlNzYyNWFjOWM2MDliYjUxMGQ0NzNmY2ZlYzExZTIxOWRhOQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWE1YmY5MWI1NjdjZjQ0NmExOTMxMGE0ZGI0N2ZkMWQxNmI2OWRmOTM0MGU0
|
10
|
+
NzdlNDdhNDNkNGUyMzJmYzBmNDdhZDQ0YzI0NDY0MDJkYTYzZGZkNmE3OTA1
|
11
|
+
YmFjMWE3NjFmNjVlZDNhYWMyZmFjMTI3ZWUxYzBhNTIzYTE3NDQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjIxNWE4Zjc3ZTM2N2ViODRmYWE0MDIzODEwZjI2YTdlNGQ0Yjc5YzdmNWU3
|
14
|
+
YzYyMDJhZDZiNDFjZDQ5ZTc0ODgxYTkyNDk1YWNkZjE5OTYyOTJmZDc2ZjYy
|
15
|
+
MjVhYzdiYTNkYzY2OGZlZTljOWY2YzRiODk4MjFhYmEyMDljODg=
|
data/.gitignore
CHANGED
data/lib/oauth_twitter.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require "oauth_twitter/version"
|
2
2
|
require "oauth_twitter/config"
|
3
3
|
require "oauth_twitter/helper"
|
4
|
+
require "oauth_twitter/api/application"
|
4
5
|
require "oauth_twitter/api/oauth"
|
5
6
|
require "oauth_twitter/api/statuses"
|
6
7
|
require "oauth_twitter/api/friends"
|
@@ -8,8 +9,9 @@ require "oauth_twitter/api/users"
|
|
8
9
|
|
9
10
|
module OauthTwitter
|
10
11
|
include Helper
|
12
|
+
include API::Application
|
13
|
+
include API::Friends
|
11
14
|
include API::Oauth
|
12
15
|
include API::Statuses
|
13
|
-
include API::Friends
|
14
16
|
include API::Users
|
15
17
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module OauthTwitter
|
2
|
+
module API
|
3
|
+
module Application
|
4
|
+
PATH = {
|
5
|
+
:rate_limit_status => '/1.1/application/rate_limit_status.json'
|
6
|
+
}
|
7
|
+
|
8
|
+
def rate_limit_status(params={}, options={})
|
9
|
+
query = params.clone
|
10
|
+
oauth = oauth_params(true)
|
11
|
+
response = send_request(:GET, PATH[:rate_limit_status], query, oauth)
|
12
|
+
return results_with_error_explained(response, options)
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oauth_twitter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daiwei Lu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -80,6 +80,7 @@ files:
|
|
80
80
|
- README.md
|
81
81
|
- Rakefile
|
82
82
|
- lib/oauth_twitter.rb
|
83
|
+
- lib/oauth_twitter/api/application.rb
|
83
84
|
- lib/oauth_twitter/api/friends.rb
|
84
85
|
- lib/oauth_twitter/api/oauth.rb
|
85
86
|
- lib/oauth_twitter/api/statuses.rb
|