Open lkraider opened 7 years ago
seems like a bug in how fastlane's require works.
This is a non-standard way to load gems for a binary in ruby: https://github.com/fastlane/fastlane/blob/master/bin/fastlane#L2
The standard way is to require the gem itself.
I am not familiar with the gem require machinery. Created an issue over there to maybe get some helpful input.
@krausefx responded:
We don't use any non-standard things as far as I know.
Anyway, if it works with regular gem install shouldn't brew gem support it too?
No it wont. On a normal gem install the binary location doesn't change. With brew-gem we symlink it and it's used for /usr/local/bin
ruby automatically loads the lib directory when you require a gem so there's no need to use $LOAD_PATH. I was suggesting requiring the gem in the binary like this
https://github.com/sportngin/opsicle/blob/master/bin/opsicle#L1-L6
specifically for fastlane something like:
#!/usr/bin/env ruby
require 'rubygems'
require 'fastlane'
....
Well, fastlane is not changing their code (they closed the issue), so I guess brew gem will not be compatible then.
Installing works:
But executing the binary fails: