After going through the effort of finally purging distro ruby packages from my Ubuntu development sandbox to replace with the highly recommended rvm, I must be misunderstanding something fundamental:
I don’t want to have to change all the shebang lines in all my .rb source files from
#!/usr/bin/ruby
into /usr/local/rvm/bin/ruby nor anything version-specific.
My source files need to remain constant with their counterparts on the production servers using the system default ruby binaries (not rvm).
Any suggestions to keep universal code consistency? Should I be switching the shebangs, once and for evermore, to something like
#!/usr/bin/env ruby
or (despite what that link’s site says) is there some clean way for rvm to hook into /usr/bin/ruby assuming all conflicting .deb packages had been removed? Not to mention, how to get other .deb packages dependent on the presence of ruby+libs to recognize the non-distro ruby…but that might be a separate issue.
the only sane way to go is:
it will always use current selected ruby in the environment, not depending on any tool