youtube_query 1.0.4 → 1.0.5
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/youtube_query.rb +13 -13
- data/youtube_query.gemspec +3 -2
- 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: 863c0c5c702f590f2eac9f946fb65517106f9024
|
4
|
+
data.tar.gz: 37ee40ddc0976c451489337ca7f052ac40925876
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b623f6aa2c3f2259c82519ce6b52ba55dc22b9ebda86d1eca96ded0d42f2497a0819a77972c5268d80eccc12a37ece3b7f6c90df4492df7df2eed4743acde5ed
|
7
|
+
data.tar.gz: cda05930d0dadd02e7e6ee3d756f3469b1f7738d496fc9dc36376d40650c0250f6071c6e8a6f7cbba8b3f41af63af7a185835c1e2af78ed7bf01e59a5d1b2dcc
|
data/lib/youtube_query.rb
CHANGED
@@ -25,19 +25,19 @@ class YouTubeQuery
|
|
25
25
|
:parameters => options
|
26
26
|
)
|
27
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
|
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
|
41
41
|
|
42
42
|
end
|
43
43
|
|
data/youtube_query.gemspec
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'youtube_query'
|
3
|
-
s.version = '1.0.
|
3
|
+
s.version = '1.0.5'
|
4
4
|
s.summary = ''
|
5
5
|
s.description = 'Gem for searching youtube videos'
|
6
6
|
s.authors = ["Martyn Bissett"]
|
7
7
|
s.homepage = 'https://github.com/martynbiz/youtube_query'
|
8
|
-
s.files = Dir.glob("lib/**/*") + %w(README.md youtube_query.gemspec)
|
8
|
+
#s.files = Dir.glob("lib/**/*") + %w(README.md youtube_query.gemspec)
|
9
|
+
s.files = ["lib/youtube_query.rb", "README.md", "youtube_query.gemspec"]
|
9
10
|
s.add_runtime_dependency 'google-api-client', ['~> 0.7.1']
|
10
11
|
s.add_development_dependency 'google-api-client', ['~> 0.7.1']
|
11
12
|
end
|