lib/muflax/library.rb in muflax-0.6.1 vs lib/muflax/library.rb in muflax-0.7.0
- old
+ new
@@ -6,8 +6,8 @@
def require_local lib_name, location=caller_locations.first.path
file = File.symlink?(location) ? File.readlink(location) : location
dir = File.dirname(file)
lib = File.join(dir, "#{lib_name}.rb")
- raise "couldn't find local module: «#{lib_name}» in «#{dir}»" if not File.exists? lib
+ raise "couldn't find local module: «#{lib_name}» in «#{dir}»" if not File.exist? lib
require lib
end