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.
This commit is contained in:
Z. Cliffe Schreuders
2025-09-26 16:23:06 +01:00
parent 3a76837965
commit e163fcaa1b

View File

@@ -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