Skip to content
This repository has been archived by the owner on Sep 7, 2019. It is now read-only.

Commit

Permalink
Force order of gem content file list
Browse files Browse the repository at this point in the history
I've found mention online that the order of the files from Dir.glob is not guarenteed. Since the tests fail for me with a reversed order, force the order to be alphabetical.
  • Loading branch information
MGPalmer committed Mar 11, 2011
1 parent a1bd03c commit f97755c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubygems/commands/contents_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def execute
Dir[glob]
else
Dir[File.join(gem_path, '**/*')]
end
end.sort.reverse # Dir.glob order can't be guaranteed

gem_path = File.join gem_path, '' # to strip trailing /

Expand Down

0 comments on commit f97755c

Please sign in to comment.