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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e4086be4c8102614a4c65bf67958c0e296e1750
4
- data.tar.gz: a0cf7cb6f7a6f57a344e527c98d5833452bb0ee1
3
+ metadata.gz: 863c0c5c702f590f2eac9f946fb65517106f9024
4
+ data.tar.gz: 37ee40ddc0976c451489337ca7f052ac40925876
5
5
  SHA512:
6
- metadata.gz: d4333f7907ba6bf6e7fcb84975deb355c4b8adc6e038a88dcaecd72028b6c8593d8ba6c03549ef56444eaa488a62559ffd1f2f1718e710f99137047a9f8f539e
7
- data.tar.gz: 6c2f3e3e3e3bcb0623e8d240b5f7f9873463dcc397af8d050dd744ba148246e9fa56a0d59c1e809a1e1834e88c0649c06db31d116438859318148a95942ff3ab
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 videos
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
 
@@ -1,11 +1,12 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'youtube_query'
3
- s.version = '1.0.4'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: youtube_query
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martyn Bissett