youtube_query 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/youtube_query.rb +1 -22
- data/youtube_query.gemspec +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: 18fca710cb95f5ef33e29d48c95fc4b79b8833ae
|
4
|
+
data.tar.gz: e33293c906515ab87e50a409f3563aa933905484
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 773efa287aa7d434ce2de5772788863dc469ecbfba56b7f8cbef77638b32e120cef475e024bea34434f3ebbec68489b42f93b7913df5a63211790bd43d336833
|
7
|
+
data.tar.gz: b1a56f47ed3f94d3a98e389e5ea0b8dc66c048d6acf5a6b467bea1fbc33dfb0aa91c93cb8c2b8ce6329da8e95890b78167bb3af7c8d1a552c16e79d71de70516
|
data/lib/youtube_query.rb
CHANGED
@@ -16,28 +16,7 @@ class YouTubeQuery
|
|
16
16
|
|
17
17
|
def self.query(options={})
|
18
18
|
|
19
|
-
|
20
|
-
:part => 'id,snippet'
|
21
|
-
}.merge(options)
|
22
|
-
|
23
|
-
search_response = @@client.execute!(
|
24
|
-
:api_method => @@youtube.search.list,
|
25
|
-
:parameters => options
|
26
|
-
)
|
27
|
-
|
28
|
-
# videos = []
|
29
|
-
#
|
30
|
-
# search_response.data.items.each do |search_result|
|
31
|
-
# videos.push({
|
32
|
-
# :id => search_result.id.videoId,
|
33
|
-
# :title => search_result.snippet.title,
|
34
|
-
# :publishedAt => search_result.snippet.publishedAt,
|
35
|
-
# :description => search_result.snippet.description,
|
36
|
-
# :thumbnail => search_result.snippet.thumbnails.medium.url
|
37
|
-
# })
|
38
|
-
# end
|
39
|
-
|
40
|
-
return search_response.data.items
|
19
|
+
"hi"
|
41
20
|
|
42
21
|
end
|
43
22
|
|
data/youtube_query.gemspec
CHANGED