mirror of
https://github.com/cliffe/HacktivityLabSheets.git
synced 2026-02-21 11:18:09 +00:00
- 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.
27 lines
856 B
Ruby
27 lines
856 B
Ruby
source 'https://rubygems.org'
|
|
|
|
# GitHub Pages compatible gems
|
|
gem 'github-pages', group: :jekyll_plugins
|
|
gem 'jekyll-feed', '~> 0.12'
|
|
gem 'jekyll-sitemap'
|
|
|
|
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
|
|
# and associated library.
|
|
platforms :mingw, :x64_mingw, :mswin, :jruby do
|
|
gem 'tzinfo', '>= 1', '< 3'
|
|
gem 'tzinfo-data'
|
|
end
|
|
|
|
# Performance-booster for watching directories on Windows
|
|
gem 'wdm', '~> 0.1.1', :platforms => [:mingw, :x64_mingw, :mswin]
|
|
|
|
# Lock `http_parser.rb` gem to `v0.6.x` on JRuby builds since newer versions of the gem
|
|
# do not have a Java counterpart.
|
|
gem 'http_parser.rb', '~> 0.6.0', :platforms => [:jruby]
|
|
|
|
# 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
|