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
Move ronn pages to lib #3997
Move ronn pages to lib #3997
Conversation
0d93254
to
c51f6c9
Compare
It was overly complicated for no reason.
Since they will have different logic afterwards.
Only need to consider them for removing old versions.
c51f6c9
to
8e20455
Compare
The inverse counterargument could also be applied to lib: |
@hsbt Without having looked at the specific failures, due to the tests you had to revert in ruby/ruby#3659, I believe it's very likely that this PR will fix that problem. |
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.
Thanks, I checked the changes and test files. It seems fine to work for me.
Move ronn pages to lib (cherry picked from commit 59fa4e6)
Move ronn pages to lib (cherry picked from commit 59fa4e6)
Move ronn pages to lib (cherry picked from commit 59fa4e6)
Move ronn pages to lib (cherry picked from commit 59fa4e6)
What was the end-user or developer problem that led to this PR?
The problem is that under the following conditions:
Bundler would crash.
The problem is that if
man
is not available, bundler will fallback to displaying to.ronn
plain text sources of the man pages. However, if bundler was installed as a default gem by ruby-core installer, those.ronn
sources are not installed toRbConfig::CONFIG["mandir"]
.What is your fix for the problem, implemented in this PR?
My fix, instead of artifically installing
.ronn
sources toman1
orman5
folders (which rubygems installer was currently doing), is to keep.ronn
sources insidelib
. That way, we can always find them no matter which type of bundler installation we're running.The alternative was to change ruby-core installer to also install
.ronn
sources toRbConfig::CONFIG["mandir"] + "man1"
andRbConfig::CONFIG["mandir"] + "man5"
, but I found weird that we were doing that in the first place, since it seems to me that theman1
andman5
folders are only supposed to hold.1
and.5
files, respectively.Fixes #3996.
Make sure he following tasks are checked