I used to have a setup where I could run ruby scripts directly from textmate, even if I used a set of gems and included them with
So I have a file
~/.tm_properties which enabled this functionality by setting the path for Textmate:
PATH = "$HOME/.rvm/bin:$PATH"
However, this functionality ceased to work and I wonder how to re-enable this. The reason is unclear to me but I think it was an Update that broke this feature.
I can still execute simple scripts, that don't have dependencies using
CMD + R but as soon as I use Gems I get the error that the Gems aren't found:
LoadError: no such file to load — httparty method require in custom_require.rb at line 36 method require in custom_require.rb at line 36 method <main> in myscript.rb at line 2