Sha256: 6a899664495f2a0cb09c49e417c018908a5661ed2a03955f751ee82c2017b1b6
Contents?: true
Size: 627 Bytes
Versions: 5
Compression:
Stored size: 627 Bytes
Contents
require 'rake/testtask' task :default => [:test] Rake::TestTask.new do |t| t.pattern = './test/**/*_test.rb' end desc "Update bundled certs" task :update_certs do require "faraday" fetch_file "https://curl.haxx.se/ca/cacert.pem", File.expand_path("../lib/data/ca-certificates.crt", __FILE__) end # # 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
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
stripe-3.3.2 | Rakefile |
stripe-3.3.1 | Rakefile |
stripe-3.3.0 | Rakefile |
stripe-3.2.0 | Rakefile |
stripe-3.1.0 | Rakefile |