ytsearch 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ytsearch.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e1454f07ab5ad94463ca1da907b85b62d30997d189d3ad6384a72b9f5050845
4
- data.tar.gz: 6923a57d75643ac5869ce49762a9a45576ee0fbfdd6b02e74ec07cbbd8318ce7
3
+ metadata.gz: 99474cdba371e1037c51324f27b6c6c2c8c70e121c48c1be5de8a2dd4cb1fbda
4
+ data.tar.gz: 1d9a40d7a3f344c7c3b40a3f570adf2b4f72dfff8cecb2475e9efcfa72946b66
5
5
  SHA512:
6
- metadata.gz: ab79945c98baa099e72b50f19e98385916afbd389d06118875dda95f4ece317d2e3c89e5796d041acc965ec31d522b13c700935802cb948fe91f2ac664b71d0e
7
- data.tar.gz: a28588c9def9a6c162627857bb5819eb49687654e6f56616bb740dd6e253c42e7ae1c48a2045f782cdf505c288084a6a71fe4c98f25cbf32d63daf213bdae648
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.3
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 using v3 API
13
+ description: Search YouTube videos
14
14
  email: icetimux@gmail.com
15
15
  executables: []
16
16
  extensions: []