I have created a gem that exposes an executable that works under Linux. In Windows, if I navigate to the directory where the gem is installed I can run it from the command line, but I have to specify -Ilib
myself when invoking ruby
.
I want use Ocra to turn the executable + dependencies (the rest of the gem) + Ruby into an exe file for other users, but the documentation seems to be saying that manually messing with load path is a bad idea with Ocra.
How do I tell Ocra to work with a gem's executable scripts without messing with Ruby's load path myself? I guess this would depend on there being some way I can run the executable scripts that takes advantage of the fact that they are part of an installed gem and figures out the dependencies for me.