mirror of
https://github.com/cliffe/HacktivityLabSheets.git
synced 2026-02-21 11:18:09 +00:00
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:
7
Gemfile
7
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
|
||||
|
||||
Reference in New Issue
Block a user