-
Notifications
You must be signed in to change notification settings - Fork 438
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
Allow installing RDoc from a git source #1113
base: master
Are you sure you want to change the base?
Conversation
task :generate do | ||
unless ENV.key?('BUNDLE_GEMFILE') | ||
Gem.install 'racc', '> 1.4.10' | ||
Gem.install 'kpeg', '>= 1.3.3' |
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.
@colby-swandale do you know if there's any rubygems API to better handle these dependencies without bundler?
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.
Could you expand the context where Bundler wouldn't be available?
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.
Bundler will be available, but this will be executed in 2 scenarios:
- When a developer runs
rake generate
(or any tasks that depend on it) manually - When a user installs RDoc through git source
In the later case, I want to avoid installing all of RDoc's development dependencies as most of them aren't needed for generating the missing files.
Co-authored-by: Vinicius Stock <[email protected]>
Co-authored-by: Nobuyoshi Nakada <[email protected]>
@nobu Thanks for the suggestions 👍 |
@nobu Would you mind giving this another look? If you're not against it, I'd like to give it a try. |
This implements option 2 in #1107, which is to use
extconf.rb
to conditionally runrake generate
when the gem is installed as a git source.To make sure the target machine has the required dependencies for the generation, I modified
rake generate
to conditionally install thekpeg
andracc
.