diff --git a/lib/fastlib.rb b/lib/fastlib.rb index 9561cadaa5..d9718e8184 100755 --- a/lib/fastlib.rb +++ b/lib/fastlib.rb @@ -98,7 +98,7 @@ end # class FastLib - VERSION = "0.0.3" + VERSION = "0.0.4" @@cache = {} @@ -141,6 +141,9 @@ class FastLib def self.load_cache(lib) return if @@cache[lib] dict = {} + + return if not ::File.exists?(lib) + ::File.open(lib, 'rb') do |fd| head = fd.read(4) return if head != "FAST"