[ruby-cvs:66680] ko1:r59502 (trunk): use stable sort.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Fri Aug 4 23:57:31 JST 2017


ko1	2017-08-04 23:57:31 +0900 (Fri, 04 Aug 2017)

  New Revision: 59502

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59502

  Log:
    use stable sort.
    
    * lib/rubygems/resolver.rb (sort_dependencies): use stable sort.
      TestGemRequestSetLockfile#test_to_s_gem_dependency_non_default
      fails because this method return unstable results.
      Note that Enumerable#sort_by is unstable.
    
      I'm not sure the "stable" nature is required for RubyGems.
      The fact is that using stable sort, the test passed on
      mswin64+VS2017 where the sort results was reverse (unstable) order.
      Also using `-i` instead of `i` (it means forcing unstable sort)
      this test fails on other platform where the test successed before.

  Modified files:
    trunk/lib/rubygems/resolver.rb


More information about the ruby-cvs mailing list