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:
parent
cc443f6cde
commit
ac890ec062
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue