From 1f2ed3db60cb2d5144d6d85312758c54d733b01d Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri, 20 Nov 2020 22:27:52 +0800 Subject: [PATCH] Restore gem `tzinfo-data` for Windows & JRuby (#176) --- Gemfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 5825b0d..e3013c4 100644 --- a/Gemfile +++ b/Gemfile @@ -2,7 +2,7 @@ source "https://rubygems.org" gem "jekyll", ">=3.8.6" -# Official Plugins +# plugins group :jekyll_plugins do gem "jekyll-paginate" gem "jekyll-redirect-from" @@ -13,3 +13,13 @@ end group :test do gem "html-proofer" end + +# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem +# and associated library. +install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do + gem "tzinfo", "~> 1.2" + gem "tzinfo-data" +end + +# Performance-booster for watching directories on Windows +gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?