diff --git a/Gemfile b/Gemfile index 9fc3bfbf..e1158738 100644 --- a/Gemfile +++ b/Gemfile @@ -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" diff --git a/Gemfile.lock b/Gemfile.lock index edca955d..df90f8ce 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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 @@ -118,6 +119,7 @@ DEPENDENCIES tzinfo tzinfo-data wdm (>= 0.1.0) + webrick (~> 1.7) BUNDLED WITH 2.3.6 diff --git a/Rakefile b/Rakefile index ef1fd57d..7026e8ae 100644 --- a/Rakefile +++ b/Rakefile @@ -11,6 +11,10 @@ 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 + sh('sed -i.bak "s/, kwd/, **kwd/" $(bundle exec gem which pathutil)') end task :spelling_dependencies do