From 1a3797a12d452243387c09e94023014c96ca4b12 Mon Sep 17 00:00:00 2001 From: johnnyshields <27655+johnnyshields@users.noreply.github.com> Date: Fri, 9 May 2025 20:10:26 +0900 Subject: [PATCH 1/2] This is needed to run Mongoid tests (and any Rails gem test) on Windows. Rails adds it automatically when you do rails new on windows. Since it is in the Gemfile (not the gemspec) it doesn't affect anyone's actual code, it is purely for development purposes. --- Gemfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Gemfile b/Gemfile index 0b1537eea1..26242ef36c 100644 --- a/Gemfile +++ b/Gemfile @@ -17,3 +17,7 @@ if RUBY_PLATFORM =~ /java/ end gem 'i18n', *i18n_versions + +platform :windows do + gem 'tzinfo-data' +end From cc76889a7718f305608e1ed76b7fe97d72c4ea73 Mon Sep 17 00:00:00 2001 From: Johnny Shields <27655+johnnyshields@users.noreply.github.com> Date: Sat, 10 May 2025 03:02:13 +0900 Subject: [PATCH 2/2] Update Gemfile Co-authored-by: Alex Bevilacqua --- Gemfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 26242ef36c..4597f3fb01 100644 --- a/Gemfile +++ b/Gemfile @@ -18,6 +18,5 @@ end gem 'i18n', *i18n_versions -platform :windows do - gem 'tzinfo-data' -end +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem "tzinfo-data", platforms: %i[ windows jruby ]