Sha256: c81dcbce29e3f6974c863a83c14418e84d85205bb967fae188f11a803e72d895
Contents?: true
Size: 709 Bytes
Versions: 10
Compression:
Stored size: 709 Bytes
Contents
require "bundler/gem_tasks" require 'rake/testtask' Rake::TestTask.new do |t| t.pattern = "test/**/*_test.rb" end task :default => [:test] namespace :binaries do def get_binaries(version) puts "Updating python script" system("wget -O ./vendor/bin/youtube-dl https://yt-dl.org/downloads/#{version}/youtube-dl") puts "Updating Windows EXE" system("wget -O ./vendor/bin/youtube-dl.exe https://yt-dl.org/downloads/#{version}/youtube-dl.exe") end desc "Get latest binaries" task :latest do get_binaries('latest') end desc "Get binaries for specific version (run with `rake binaries:version[2015.07.07]`)" task :version, [:ver] do |t, a| get_binaries(a[:ver]) end end
Version data entries
10 entries across 10 versions & 1 rubygems