[DRE-maint] Bug#849972: yard: please make the output reproducible

Chris Lamb lamby at debian.org
Tue Jan 10 18:03:02 UTC 2017


tags 849972 + patch
thanks

I've attached upstream's patch if that makes it any easier for you to
apply to the Debian package…  ;)


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
diff --git a/lib/yard/parser/source_parser.rb b/lib/yard/parser/source_parser.rb
index b12d902..ab560ea 100755
--- a/lib/yard/parser/source_parser.rb
+++ b/lib/yard/parser/source_parser.rb
@@ -105,7 +105,7 @@ module YARD
           end
           files = [paths].flatten.
             map {|p| File.directory?(p) ? "#{p}/**/*.{rb,c,cc,cxx,cpp}" : p }.
-            map {|p| p.include?("*") ? Dir[p].sort_by {|f| f.length } : p }.flatten.
+            map {|p| p.include?("*") ? Dir[p].sort_by {|d| [d.length, d] } : p }.flatten.
             reject {|p| !File.file?(p) || excluded.any? {|re| p =~ re } }
 
           log.enter_level(level) do


More information about the Pkg-ruby-extras-maintainers mailing list