summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-08-17 00:52:37 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-08-17 00:58:56 +0900
commitac890ec0624e3d8a44d85d67127bc94322caa34e (patch)
tree3222142dca20fe97e69c6e1d9b0ef703d4fbc334
parentcc443f6cde287944e00ab5d9b6ad868b3d9fc9db (diff)
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.
-rwxr-xr-xtool/rbinstall.rb1
1 files changed, 1 insertions, 0 deletions
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