Make fastlib compatible with Pathnames

MSP-9606
bug/bundler_fix
Luke Imhoff 2014-05-12 10:16:39 -05:00
parent f83e8a4a4f
commit c70ef2afbd
No known key found for this signature in database
GPG Key ID: 5B1FB01FB33356F8
1 changed files with 4 additions and 0 deletions

View File

@ -378,6 +378,10 @@ module Kernel #:nodoc:all
# This method handles the loading of FASTLIB archives
#
def fastlib_require(name)
if name.respond_to? :to_path
name = name.to_path
end
name = name + ".rb" if not name =~ /\.rb$/
return false if fastlib_already_loaded?(name)
return false if fastlib_already_tried?(name)