ytsearch 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ytsearch.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99474cdba371e1037c51324f27b6c6c2c8c70e121c48c1be5de8a2dd4cb1fbda
|
4
|
+
data.tar.gz: 1d9a40d7a3f344c7c3b40a3f570adf2b4f72dfff8cecb2475e9efcfa72946b66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38a98374100d5306fbbf197dad3c9475caf1a8ea80e707beb102d903b41ee2e69b299a3ebbfee565494566d65cc92658abb3dafb89554305828aa4d6925cef5c
|
7
|
+
data.tar.gz: e3ea99717297a6fec288209969978796acdfc2418e46212155669327e0ab3f5e29bac7859b33235ff91395e980aa5348c7053989420ec118a612bb38f75cadc8
|
data/lib/ytsearch.rb
CHANGED
@@ -10,7 +10,7 @@ class YoutubeSearch
|
|
10
10
|
|
11
11
|
def self.search(options={})
|
12
12
|
query = options.map{|k,v| "#{k}=#{v}"}.join('&')
|
13
|
-
response = open("#{API_URL}?key=#{API_KEY}&#{query}").read
|
13
|
+
response = URI.open("#{API_URL}?key=#{API_KEY}&#{query}").read
|
14
14
|
response = JSON.parse(response)
|
15
15
|
end
|
16
|
-
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ytsearch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Timothy de Jongh
|
@@ -10,7 +10,7 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2016-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description: Search YouTube videos
|
13
|
+
description: Search YouTube videos
|
14
14
|
email: icetimux@gmail.com
|
15
15
|
executables: []
|
16
16
|
extensions: []
|