backtyper 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +9 -1
- data/VERSION +1 -1
- data/backtyper.gemspec +2 -2
- data/lib/backtyper/client.rb +8 -0
- metadata +4 -4
data/README.md
CHANGED
@@ -20,6 +20,14 @@ Authentication is necessary for all actions.
|
|
20
20
|
|
21
21
|
---
|
22
22
|
|
23
|
+
## Rate Limit
|
24
|
+
|
25
|
+
Check the rate limit status.
|
26
|
+
|
27
|
+
BackTyper::Client.rate_limit
|
28
|
+
|
29
|
+
---
|
30
|
+
|
23
31
|
## Tweet examples
|
24
32
|
|
25
33
|
* Documentation - {BackTyper::Tweets}
|
@@ -28,7 +36,7 @@ Authentication is necessary for all actions.
|
|
28
36
|
|
29
37
|
# Authenticate with BackType
|
30
38
|
BackTyper.authenticate "ABC123"
|
31
|
-
|
39
|
+
|
32
40
|
# Retrieve the number of tweets that link to a particular URL.
|
33
41
|
BackTyper::Tweets.count('http://www.google.com')
|
34
42
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/backtyper.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{backtyper}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin Britten"]
|
12
|
-
s.date = %q{2011-02-
|
12
|
+
s.date = %q{2011-02-23}
|
13
13
|
s.description = %q{A Ruby wrapper for the BackType API}
|
14
14
|
s.email = %q{justinbritten@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/backtyper/client.rb
CHANGED
@@ -9,6 +9,14 @@ module BackTyper
|
|
9
9
|
def self.authenticate(key)
|
10
10
|
default_params :key => key
|
11
11
|
end
|
12
|
+
|
13
|
+
#
|
14
|
+
# Check the rate limit status for a given key. Stats are rolled up hourly.
|
15
|
+
#
|
16
|
+
def self.rate_limit
|
17
|
+
response = get('/rate_limit_status.json')
|
18
|
+
handle_response(response)
|
19
|
+
end
|
12
20
|
|
13
21
|
protected
|
14
22
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backtyper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Justin Britten
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-02-
|
18
|
+
date: 2011-02-23 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|