1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.
This commit is contained in:
Nobuyoshi Nakada 2022-08-17 00:52:37 +09:00
parent cc443f6cde
commit ac890ec062
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -933,6 +933,7 @@ def load_gemspec(file, base = nil)
end end
spec.loaded_from = base ? File.join(base, File.basename(file)) : file 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.files.reject! {|n| n.end_with?(".gemspec") or n.start_with?(".git")}
spec.date = RUBY_RELEASE_DATE
spec spec
end end