Sha256: ff1848d6f2b24cf1b8cd06be09353f792f136acd585d41e7bb97a6a4a6ccfbab
Contents?: true
Size: 725 Bytes
Versions: 4
Compression:
Stored size: 725 Bytes
Contents
# frozen_string_literal: true require 'bundler/gem_tasks' require 'rake/testtask' require 'erb' 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/yt-dlp https://github.com/yt-dlp/yt-dlp/releases/download/#{version}/yt-dlp") puts 'Updating Windows EXE' system("wget -O ./vendor/bin/yt-dlp.exe https://github.com/yt-dlp/yt-dlp/releases/download/#{version}/yt-dlp.exe") 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 __END__ # Version file
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
yt-dlp.rb-0.3.1 | Rakefile |
yt-dlp.rb-0.3.0 | Rakefile |
yt-dlp.rb-0.2.0 | Rakefile |
yt-dlp.rb-0.1.0 | Rakefile |