From ac890ec0624e3d8a44d85d67127bc94322caa34e Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 17 Aug 2022 00:52:37 +0900 Subject: [PATCH] Make date in installed gemspec files stable Set `date` member to `RUBY_RELEASE_DATE` instead of the date at the build time, to make installed files reproducible. --- tool/rbinstall.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 68c96bee85..c944ef74da 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -933,6 +933,7 @@ def load_gemspec(file, base = nil) end spec.loaded_from = base ? File.join(base, File.basename(file)) : file spec.files.reject! {|n| n.end_with?(".gemspec") or n.start_with?(".git")} + spec.date = RUBY_RELEASE_DATE spec end