From e163fcaa1b1e860e116346a6a103cfa9e6279326 Mon Sep 17 00:00:00 2001 From: "Z. Cliffe Schreuders" Date: Fri, 26 Sep 2025 16:23:06 +0100 Subject: [PATCH] Update Gemfile for webrick compatibility with Ruby 3.2+ - Adjusted webrick gem inclusion to be conditional based on Ruby version, ensuring compatibility for local development with Ruby 3.2 and above. This change reflects the need for webrick in local environments while acknowledging that GitHub Pages operates on Ruby 3.1.7, which does not require this gem. --- Gemfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 10af637..e6932ae 100644 --- a/Gemfile +++ b/Gemfile @@ -19,5 +19,8 @@ gem 'wdm', '~> 0.1.1', :platforms => [:mingw, :x64_mingw, :mswin] # do not have a Java counterpart. gem 'http_parser.rb', '~> 0.6.0', :platforms => [:jruby] -# Add webrick for Ruby 3.0+ compatibility -gem 'webrick', '~> 1.7' +# Add webrick for Ruby 3.2+ compatibility (local development only) +# GitHub Pages uses Ruby 3.1.7 which doesn't need this gem +if RUBY_VERSION >= "3.2.0" + gem 'webrick', '~> 1.7' +end