Best way to use a ruby gem as a build dependency? #2873
-
Hi! I am writing my own "personal cli" and am going to host my own tap/formula to make it easy to install. I am using a ruby gem called bashly to generate the final artifact (a single bash script) and I am unsure on the best way to install the gem as only a build dependency. I have looked at some examples of using gems in Formula, but most of them are about using brew to install the gem itself.(solargraph for example). Any examples that I should check out? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The closest examples I can think of are some Formulae that use a specific
In general, the idea would be to use a directory under In above examples, the 1st downloads an unversioned/latest |
Beta Was this translation helpful? Give feedback.
The closest examples I can think of are some Formulae that use a specific
bundler
like:swiftgen
mailcatcher
In general, the idea would be to use a directory under
buildpath
since this is a temporary location where the build will take place.In above examples, the 1st downloads an unversioned/latest
bundler
while the 2nd downloads a specific version ofbundler
(v…