Skip to content

Alter default bundled gems #7749

Closed Answered by gouravkhunger
gouravkhunger asked this question in Q&A
Discussion options

You must be logged in to vote

Adding this for someone else tinkering with compiling ruby from source.

The bundled gems are listed in the bundler_gems plain text file at ruby's source. I was successfully able to patch the file and see the additional gems get bundled.

If the target OS is different, it might be required to patch the sources of the additional gems listed (if they contain native extensions) so that they become compatible for the target OS. rbinstall.rb can be altered to apply such patches just before the gems is going to be prepared to be bundled. Here's an example.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gouravkhunger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
1 participant
Converted from issue

This discussion was converted from issue #7733 on June 13, 2024 18:30.