Skip to content

Commit

Permalink
🐛 Fix: Update Jekyll and add webrick gem for Windows compatibility
Browse files Browse the repository at this point in the history
- Bumped Jekyll from 3.9.0 to 3.9.3 to address issues related to running
  Jekyll on Windows.

- Added the "webrick" gem (version "~> 1.7") to the Gemfile to resolve a
  dependency issue that was preventing Jekyll from running correctly on
  Windows.
  • Loading branch information
chriskyfung committed Mar 9, 2024
1 parent 097d448 commit ad727bd
Show file tree
Hide file tree
Showing 2 changed files with 140 additions and 144 deletions.
86 changes: 45 additions & 41 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,41 +1,45 @@
source "https://rubygems.org"

ruby RUBY_VERSION

# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 3.9.0"

# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem 'github-pages'
#gem 'jekyll-feed'
#gem 'jekyll-sitemap'
#gem 'jekyll-seo-tag'
#gem 'jekyll-gist'
#gem 'jekyll-loading-lazy'
#gem 'jekyll-webp'
#gem 'jekyll-gzip'
#gem 'jekyll-extlinks'
#gem 'jekyll-remote-theme'
#gem 'jekyll-github-metadata'
end

# 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.2"
gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
source "https://rubygems.org"

ruby RUBY_VERSION

# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 3.9.3"

# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem 'github-pages'
#gem 'jekyll-feed'
#gem 'jekyll-sitemap'
#gem 'jekyll-seo-tag'
#gem 'jekyll-gist'
#gem 'jekyll-loading-lazy'
#gem 'jekyll-webp'
#gem 'jekyll-gzip'
#gem 'jekyll-extlinks'
#gem 'jekyll-remote-theme'
#gem 'jekyll-github-metadata'
end

# 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.2"
gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]

# Fix for Load error: cannot load such file – webrick
# (https://talk.jekyllrb.com/t/load-error-cannot-load-such-file-webrick/5417)
gem "webrick", "~> 1.7"
Loading

0 comments on commit ad727bd

Please sign in to comment.