[前][次][番号順一覧][スレッド一覧]

ruby-changes:72945

From: Nobuyoshi <ko1@a...>
Date: Wed, 17 Aug 2022 02:00:53 +0900 (JST)
Subject: [ruby-changes:72945] ac890ec062 (master): Make date in installed gemspec files stable

https://git.ruby-lang.org/ruby.git/commit/?id=ac890ec062

From ac890ec0624e3d8a44d85d67127bc94322caa34e Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 17 Aug 2022 00:52:37 +0900
Subject: 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) https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L933
   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
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]