Sha256: ce0618d4cbfe7abf3fae4ad557bb9023c1b68ccff4b4e72989fd3851f98e2ba9

Contents?: true

Size: 572 Bytes

Versions: 1

Compression:

Stored size: 572 Bytes

Contents

require "bundler/setup"
require "bundler/gem_tasks"
require "bump/tasks"

task :default do
  sh "rspec spec/"
end

desc "Update fixtures by downloading them"
task :update_fixtures do
  require 'youtube_search'

  # search
  query = "boat"
  xml = open("http://gdata.youtube.com/feeds/api/videos?#{query}").read
  File.open("spec/fixtures/search_#{query}.xml","w"){|f| f.write xml }

  # playlist
  id = "5F23DAF4BFE3D14C"
  xml = open("http://gdata.youtube.com/feeds/api/playlists/#{id}?v=2").read
  File.open("spec/fixtures/playlist_#{id}.xml","w"){|f| f.write xml }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
youtube_search-0.1.8 Rakefile