Make fastlib compatible with Pathnames

MSP-9606
This commit is contained in:
Luke Imhoff
2014-05-12 10:16:39 -05:00
parent f83e8a4a4f
commit c70ef2afbd
+4
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)