diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-08-17 00:52:37 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-08-17 00:58:56 +0900 |
commit | ac890ec0624e3d8a44d85d67127bc94322caa34e (patch) | |
tree | 3222142dca20fe97e69c6e1d9b0ef703d4fbc334 /tool | |
parent | cc443f6cde287944e00ab5d9b6ad868b3d9fc9db (diff) | |
download | ruby-ac890ec0624e3d8a44d85d67127bc94322caa34e.tar.gz |
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.
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/rbinstall.rb | 1 |
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 |