I am new to ruby, and is trying to write a git hook in ruby. I want to use the rugged gem in my script. The gem is already available in
Look carefully at how
$LOAD_PATH is configured for each
gem after you include it. Normally it's the full path to where the base
gemname.rb is located, like in your case where
The way the
$LOAD_PATH works is it scans through that list looking for
rugged.rb and if it doesn't find it, moves on to the next possible location. You're specifying a directory which doesn't have that, so find the right path and fill that in, and you should be good.