roflbalt
roflbalt copied to clipboard
symlink doesn't work with require path, use pathname to fix
I use symlinks to add executables in git directories to my ~/bin. Unfortunately this breaks roflblat, but I fixed it by swapping out the existing require with;
require "pathname"
require File.join(File.dirname(Pathname.new(__FILE__).realpath), "../lib/roflbalt.rb")
Thanks for the game btw!