lib/vfs/entries/file.rb in vfs-0.4.4 vs lib/vfs/entries/file.rb in vfs-0.4.5

- old
+ new

@@ -51,10 +51,11 @@ def write *args, &block if block options = args.first || {} else data, options = *args + data ||= "" options ||= {} end raise "can't do :override and :append at the same time!" if options[:override] and options[:append] driver.open do @@ -142,10 +143,10 @@ end def size; get :size end def basename - ::File.basename(name, File.extname(name)) + ::File.basename(name, ::File.extname(name)) end def extension ::File.extname(name).sub(/^\./, '') end \ No newline at end of file