sportngin / brew-gem

Install gems as homebrew formulas
MIT License
195 stars 22 forks source link

brew gem install bundler not linking correct files #20

Closed derimagia closed 8 years ago

derimagia commented 8 years ago

gem install bundler allows for "bundle" and "bundler" to be run but sadly running it through brew-gem doesn't work. It looks like it may have something to do with them being in "exe" directories:

https://github.com/bundler/bundler

anfleene commented 8 years ago

Hmm. Yup you are correct. It's not linking because it uses a different name for it's bindir. We should be able to look up the gem's bindir using the gemspec so I think we can fix this. Want to take a shot at it?

Gem::Specification::load("GEM_NAME.gemspec").bindir should give us what we want.

derimagia commented 8 years ago

It looks like "cocoapods" has the same issue as well. I'm not very well-versed in ruby sadly. Hopefully I'll find the time to take a look.

nicksieger commented 8 years ago

Fixed by #26