Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ gem 'html-proofer'

# Avoid polling on windows
gem 'wdm', '>= 0.1.0'

# For local Ruby 3 support; works around https://github.com/github/pages-gem/issues/752
gem "webrick", "~> 1.7"
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ GEM
tzinfo-data (1.2018.5)
tzinfo (>= 1.0.0)
wdm (0.1.1)
webrick (1.7.0)
yell (2.2.2)

PLATFORMS
Expand All @@ -118,6 +119,7 @@ DEPENDENCIES
tzinfo
tzinfo-data
wdm (>= 0.1.0)
webrick (~> 1.7)

BUNDLED WITH
2.3.6
8 changes: 8 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'fileutils'

task :clean do
sh('rm -rf _site')
end
Expand All @@ -11,6 +13,12 @@ task :dependencies do
sh('bundle config set --local path "gems"')
end
sh('bundle install')

# Fix pathutil on Ruby 3; works around https://github.com/envygeeks/pathutil/pull/5
# as suggested by https://stackoverflow.com/a/73909894/67873
pathutil_path = `bundle exec gem which pathutil`.chomp()
content = File.read(pathutil_path).gsub(', kwd', ', **kwd')
File.write(pathutil_path, content)
end

task :spelling_dependencies do
Expand Down