lib/loaders/kernel_require.rb in callsite-0.0.3 vs lib/loaders/kernel_require.rb in callsite-0.0.4

- old
+ new

@@ -2,10 +2,10 @@ def require_all(req) $LOAD_PATH.find_all_files(req, ".rb") { |file| require file } end def require_next(req) - found, current = false, File.expand_path(caller.first[/^[^:]+/]) + found, current = false, File.expand_path(caller.first[/(.*)(:\d+)/,1]) $LOAD_PATH.find_all_files(req, ".rb") do |file| if found $LOADED_FEATURES << req return require(file) else \ No newline at end of file