jugyo-twitter_oauth 0.5.0.pre3 → 0.5.0.pre4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/twitter_oauth/lists.rb +1 -1
- data/lib/twitter_oauth/search.rb +2 -4
- data/lib/twitter_oauth/timeline.rb +1 -1
- data/lib/twitter_oauth/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0935986e5a47b607c41d0e1ba53ee068d209c83b
|
4
|
+
data.tar.gz: 5c057a076f3ad3e6018719724d63a59da7143a59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb0ea34bd1c4213afeec4a22723782e4e8c1dfb390435984bb7d1bb453a628d0662b570d19addb52904e1cfe0fca6048dd21ffb8acdb353e11513c5309f2848e
|
7
|
+
data.tar.gz: aa9879f07445c12d5a7f1462fd4b247736efd7d144ea4c6e26ee70b67f0d156237e4c4c92dd1e42b0cd6b3c53666310e8ad4677c66c8c4f8ef4f7edf2078dbbf
|
data/lib/twitter_oauth/lists.rb
CHANGED
@@ -33,7 +33,7 @@ module TwitterOAuth
|
|
33
33
|
|
34
34
|
# Show tweet timeline for members of the specified list.
|
35
35
|
def list_statuses(user, list)
|
36
|
-
get("
|
36
|
+
get("/lists/statuses.json?slug=#{list}&owner_screen_name=#{user}")
|
37
37
|
end
|
38
38
|
|
39
39
|
# List the lists the specified user has been added to.
|
data/lib/twitter_oauth/search.rb
CHANGED
@@ -4,11 +4,9 @@ module TwitterOAuth
|
|
4
4
|
class Client
|
5
5
|
|
6
6
|
def search(q, options={})
|
7
|
-
options[:
|
8
|
-
options[:rpp] ||= 20
|
9
|
-
options[:q] = URI.escape(q)
|
7
|
+
options[:q] = ERB::Util.url_encode(q)
|
10
8
|
args = options.map{|k,v| "#{k}=#{v}"}.join('&')
|
11
|
-
|
9
|
+
get("/search/tweets.json?#{args}")
|
12
10
|
end
|
13
11
|
|
14
12
|
# Returns the current top 10 trending topics on Twitter.
|
@@ -30,7 +30,7 @@ module TwitterOAuth
|
|
30
30
|
# Returns the 20 most recent @replies (status updates prefixed with @username) for the authenticating user.
|
31
31
|
def mentions(options={})
|
32
32
|
args = options.map{|k,v| "#{k}=#{v}"}.join('&')
|
33
|
-
get("/statuses/
|
33
|
+
get("/statuses/mentions_timeline.json?#{args}")
|
34
34
|
end
|
35
35
|
alias :replies :mentions
|
36
36
|
|