Talk:Ruby

From ArchWiki
Jump to: navigation, search

GEM_PATH is wrong

This is the correct way of setting GEM_PATH:

   GEM_PATH=$(ruby -e 'puts Gem.path.join(":")')

Also, what is this supposed to do? `ls -t -U | ruby -e 'puts Gem.user_dir'` The first part is ignored by the script.