Source: ruby-ronn
Version: 0.7.3-3
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: locale
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the "reproducible builds" effort [0], we noticed that
ruby-ronn generates locale-specific output.
The attached patch replaces '%B %Y' with locale-agnostic %Y-%m-%d. Once
applied, packages that use ruby-ronn can be built reproducibly using our
reproducible toolchain (eg. ruby-build)
[0] https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff --git a/lib/ronn/roff.rb b/lib/ronn/roff.rb
index 77473ac..640ad58 100644
--- a/lib/ronn/roff.rb
+++ b/lib/ronn/roff.rb
@@ -33,7 +33,7 @@ module Ronn
comment "generated with Ronn/v#{Ronn.version}"
comment "http://github.com/rtomayko/ronn/tree/#{Ronn.revision}"
return if name.nil?
- macro "TH", %["#{escape(name.upcase)}" "#{section}" "#{date.strftime('%B
%Y')}" "#{version}" "#{manual}"]
+ macro "TH", %["#{escape(name.upcase)}" "#{section}"
"#{date.strftime('%Y-%m-%d')}" "#{version}" "#{manual}"]
end
def remove_extraneous_elements!(doc)
diff --git a/lib/ronn/template.rb b/lib/ronn/template.rb
index 2c89667..7bf765b 100644
--- a/lib/ronn/template.rb
+++ b/lib/ronn/template.rb
@@ -67,7 +67,7 @@ module Ronn
end
def date
- @document.date.strftime('%B %Y')
+ @document.date.strftime('%Y-%m-%d')
end
def wrap_class_name
_______________________________________________
Pkg-ruby-extras-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers