1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
From: Christian Hofstaedtler <zeha@debian.org>
Date: Tue, 10 Jan 2017 18:06:18 -0200
Subject: remove timestamps where possible, for reproducible builds
Origin: vendor
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776648
Last-Update: 2017-01-10
---
lib/yard/i18n/pot_generator.rb | 2 +-
templates/default/layout/html/footer.erb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/yard/i18n/pot_generator.rb b/lib/yard/i18n/pot_generator.rb
index 7a7d93b..1d5e1e2 100755
--- a/lib/yard/i18n/pot_generator.rb
+++ b/lib/yard/i18n/pot_generator.rb
@@ -158,7 +158,7 @@ EOH
end
def current_time
- @current_time ||= Time.now
+ @current_time ||= Time.gm(0)
end
def generate_pot_creation_date_value
diff --git a/templates/default/layout/html/footer.erb b/templates/default/layout/html/footer.erb
index e57a0f2..5baa1ce 100755
--- a/templates/default/layout/html/footer.erb
+++ b/templates/default/layout/html/footer.erb
@@ -1,5 +1,5 @@
<div id="footer">
- Generated on <%= Time.now.strftime("%c") %> by
+ Generated by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
<%= YARD::VERSION %> (ruby-<%= RUBY_VERSION %>).
</div>
|