Sha256: 7de15a04a3b679cce1b9321144f5b4fa924c7676703a8e6c176cc86df0aaeefd
Contents?: true
Size: 500 Bytes
Versions: 34
Compression:
Stored size: 500 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 "restclient" File.open(File.join(File.dirname(__FILE__), 'lib', 'data', 'ca-certificates.crt'), 'w') do |file| resp = RestClient.get "https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt" abort("bad response when fetching bundle") unless resp.code == 200 file.write(resp.to_str) end end
Version data entries
34 entries across 34 versions & 1 rubygems