From ee5042168658315e0bc5df1f12c85de53ea3cb28 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Wed, 21 Feb 2024 11:17:05 -0700 Subject: [PATCH] Gemfile: Resolve "uninitialized constant TZInfo:Timezone (NameError)" that may be seen on Windows. Thanks to @Andre601 for sharing his solution on https://github.com/tzinfo/tzinfo/issues/144#issuecomment-1364695708 --- docs/Gemfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/Gemfile b/docs/Gemfile index 0f030a2..d1eebc4 100644 --- a/docs/Gemfile +++ b/docs/Gemfile @@ -2,10 +2,16 @@ source "https://rubygems.org" +gem 'wdm', '~> 0.1.1', :install_if => Gem.win_platform? + +gem "webrick" + +platforms :mingw, :x64_mingw, :mswin, :jruby do + gem 'tzinfo', '>= 1', '< 3' + gem 'tzinfo-data' +end + group :jekyll_plugins do gem "github-pages" gem "jekyll-github-metadata" - gem 'tzinfo-data' - gem "webrick" - gem 'wdm', '>= 0.1.0' if Gem.win_platform? end