-
-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stats update - none stable sort #1123
Conversation
Thanks for the PR. I have a few questions:
|
2.4 and trunk have the following text in array#sort - 'The result is not guaranteed to be stable.' See ruby commit 5b3b855 svn 56413. There were two PR's/commits in RubyGems for this issue. Sometimes I've seen |
@MSP-Greg wondering if you had a chance to look at these PR comments? |
Sorry, I didn't see the reference from two days ago. What does ' It looks like it's blocked on PR updates' |
@MSP-Greg I've made comments on the PR above that need addressing before this can be merged |
I thought the edits to my 2nd Oct 7 comment addressed those, If nobu adds to the docs about it, I think that's pretty final... |
Oh damn, it looks like I didn't finalize my PR. I'm sorry! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nitpicks here
lib/yard/cli/stats.rb
Outdated
|
||
objects = @undoc_list.sort_by {|o| o.file.to_s } | ||
max = objects.sort_by {|o| o.path.length }.last.path.length | ||
# array needed for sort due to none stable sorting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Add newline before this comment
- "none stable sorting" should read "unstable sort"
Thanks for fixing, sorry about the PR confusion! |
Well, I'm the one that used the interesting phrase 'none stable sort'. Let me know if you'd like to add Appveyor. Also, Travis could be updated to 2.2.8, 2.3.5, and 2.4.2. Thanks. |
Description
Recent Ruby builds may introduce unstable sorting; this was causing test failures with Windows builds.
Ran fork with Travis.
Completed Tasks
bundle exec rake
locally (if code is attached to PR).