Sha256: e2c06786f89e4c305548bb46bd602338d841d59cf3b3b19c2c9124fe84ad9196
Contents?: true
Size: 524 Bytes
Versions: 22
Compression:
Stored size: 524 Bytes
Contents
# frozen_string_literal: true require "rake/testtask" require "rubocop/rake_task" task default: %i[test rubocop] Rake::TestTask.new do |t| t.pattern = "./test/**/*_test.rb" end RuboCop::RakeTask.new # # helpers # def fetch_file(url, dest) ::File.open(dest, "w") do |file| resp = Faraday.get(url) unless resp.status == 200 abort("bad response when fetching: #{url}\n" \ "Status #{resp.status}: #{resp.body}") end file.write(resp.body) puts "Successfully fetched: #{url}" end end
Version data entries
22 entries across 22 versions & 1 rubygems