bin/dyn in dyndoc-ruby-1.4.7 vs bin/dyn in dyndoc-ruby-1.5.0

- old
+ new

@@ -100,20 +100,20 @@ # dyn <options> dyn://<room-id>/<dyndoc-file>[.dyn] if doc=~ /^dyn\:\/\/([^\/]*)\/(.*)(?:\.dyn)?$/ room_id,dyn_file=$1,$2 room_sync=File.join(ENV["HOME"],"dyndoc","etc",".room_sync") - if File.exists? room_sync + if File.exist? room_sync room_dirs=eval(File.read(room_sync)) room_dir=room_dirs[room_id] if room_dir dyn_file=File.expand_path(dyn_file) dyn_dir=File.dirname dyn_file dyn_base=File.basename dyn_file,".dyn" ## Copy files first [".dyn",".dyn_lib"].each do |ext| file=dyn_base+ext - if File.exists? (file_to_copy=File.join(dyn_dir,file)) + if File.exist? (file_to_copy=File.join(dyn_dir,file)) require 'fileutils' FileUtils.cp file_to_copy,File.join(room_dir[:local],file) end end ## create task after ##TODO cheksum: to check that required files are present