From 358dbe6f5b31d6482305c0fdaae440a0587544f8 Mon Sep 17 00:00:00 2001 From: Henry Jobst Date: Sat, 28 Dec 2024 08:13:53 +0100 Subject: [PATCH] fix: try to fix missing timezone data when running created binary on windows --- Gemfile | 1 + Gemfile.lock | 3 +++ iof_result_list_reader.rb | 1 + 3 files changed, 5 insertions(+) diff --git a/Gemfile b/Gemfile index 60eb46b..d483ed2 100644 --- a/Gemfile +++ b/Gemfile @@ -5,3 +5,4 @@ gem "ostruct", ">= 0.6.0" gem "tzinfo", ">= 0.3" gem "logger", ">= 1.1.0" gem "fiddle", ">= 1.1.6" +gem 'tzinfo-data', '~> 1.2024', '>= 1.2024.2' diff --git a/Gemfile.lock b/Gemfile.lock index 51e814e..2d5a901 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -12,6 +12,8 @@ GEM racc (1.7.3) tzinfo (2.0.6) concurrent-ruby (~> 1.0) + tzinfo-data (1.2024.2) + tzinfo (>= 1.0.0) PLATFORMS arm64-darwin @@ -23,6 +25,7 @@ DEPENDENCIES nokogiri (>= 1.8.5) ostruct (>= 0.6.0) tzinfo (>= 0.3) + tzinfo-data (~> 1.2024, >= 1.2024.2) BUNDLED WITH 2.5.22 diff --git a/iof_result_list_reader.rb b/iof_result_list_reader.rb index 2e5fff0..dfec626 100644 --- a/iof_result_list_reader.rb +++ b/iof_result_list_reader.rb @@ -1,6 +1,7 @@ require_relative "iof_result_list_classes" require 'tzinfo' +require 'tzinfo/data' # @param [Time] base_time # @param [Float] factor