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