I would like to pat everything in the / gems / gems / ** / lib provider on the download path. I have a way to do this, but it's just awkward. Right now, I am doing this through:
base = File.expand_path(File.join(File.dirname(__FILE__), "..", "vendor", "gems", "gems"))
libs = File.join(base, "**", "lib")
Dir.glob(libs) { |lib| $LOAD_PATH.unshift lib}
I am sure there is a better way to do this.
source
share