I'm a little confused about why my project can't load the files it needs, it's a really simple project tree:
puts "running map"
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- processor/mapper (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from lib/processor.rb:3:in `<class:Processor>'
from lib/processor.rb:2:in `<main>'
$LOAD_PATH will not include your
lib directory by default (even though that's where the file you're running is located).
You can either tell the
ruby interpreter to include it:
ruby -Ilib lib/processor.rb
Or you can add the
lib folder to the load path:
$LOAD_PATH.unshift(File.dirname(__FILE__)) require 'processor/mapper' ...