-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
37 lines (29 loc) · 937 Bytes
/
Rakefile
File metadata and controls
37 lines (29 loc) · 937 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require "bundler/setup"
require "bundler/gem_tasks"
require "rspec/core"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
Bundler::GemHelper.install_tasks
namespace :spec do
desc "Prepares database for testing"
task :db_prepare do
system "cd spec/dummy; RAILS_ENV=test bin/rake db:setup db:seed; cd -"
end
end
# add changelog task
require "github_changelog_generator/task"
# Temporary fix for SSL error
# Ref: https://github.com/ruby/openssl/issues/949#issuecomment-3367944960
require "openssl"
s = OpenSSL::X509::Store.new.tap(&:set_default_paths)
begin
OpenSSL::SSL::SSLContext.send(:remove_const, :DEFAULT_CERT_STORE)
rescue
nil
end
OpenSSL::SSL::SSLContext.const_set(:DEFAULT_CERT_STORE, s.freeze)
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
config.user = "sitediver"
config.project = "alchemy-solid_errors"
config.future_release = "v#{Alchemy::SolidErrors::VERSION}"
end