diff --git a/Gemfile b/Gemfile index 7258f81..c8d223a 100644 --- a/Gemfile +++ b/Gemfile @@ -8,3 +8,6 @@ gem 'kramdown-parser-gfm' # For testing output gem 'html-proofer' + +# For local Ruby 3 support; works around https://github.com/github/pages-gem/issues/752 +gem "webrick", "~> 1.7" diff --git a/Gemfile.lock b/Gemfile.lock index 18ca72c..e1389f1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -76,6 +76,7 @@ GEM rb-inotify (~> 0.9, >= 0.9.7) typhoeus (1.4.0) ethon (>= 0.9.0) + webrick (1.7.0) yell (2.2.2) PLATFORMS @@ -86,6 +87,7 @@ DEPENDENCIES jekyll (= 3.9) kramdown-parser-gfm rake + webrick (~> 1.7) BUNDLED WITH 1.17.3 diff --git a/Rakefile b/Rakefile index d915a9f..a45d89b 100644 --- a/Rakefile +++ b/Rakefile @@ -8,6 +8,12 @@ end task :dependencies do sh('bundle install --path gems') + + # 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 file '_sass/brand/.git' do