* Add a bundled cacert.pem from curl's website * Using the --ssl-ca-file PATH option overrides ENV var SSL_CA_PATH * Having none of those allow you to use the default, the bundled cacert.pem * Octokit's SSL config uses this new setting * Rake task to update_ssl_ca_file * Rubocop target 2.2
		
			
				
	
	
		
			21 lines
		
	
	
		
			582 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			582 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
# frozen_string_literal: true
 | 
						|
 | 
						|
require "bundler"
 | 
						|
require "bundler/gem_tasks"
 | 
						|
require "rubocop/rake_task"
 | 
						|
require "rspec/core/rake_task"
 | 
						|
require "pathname"
 | 
						|
require "fileutils"
 | 
						|
require "overcommit"
 | 
						|
 | 
						|
RuboCop::RakeTask.new
 | 
						|
RSpec::Core::RakeTask.new(:rspec)
 | 
						|
 | 
						|
desc "When releasing the gem, re-fetch latest cacert.pem from curl.haxx.se. Developer task."
 | 
						|
task :update_ssl_ca_file do
 | 
						|
  `pushd lib/github_changelog_generator/ssl_certs && curl --remote-name --time-cond cacert.pem https://curl.haxx.se/ca/cacert.pem && popd`
 | 
						|
end
 | 
						|
 | 
						|
task checks: %i[rubocop rspec]
 | 
						|
task default: %i[rubocop rspec]
 |