lib/upgrade.rb in dev_tasks-0.0.80 vs lib/upgrade.rb in dev_tasks-0.0.81

- old
+ new

@@ -17,16 +17,16 @@ if(defined?(DEV_TASKS)) if(DEV_TASKS[:dependencies].has_key?(:rake)) DEV_TASKS[:dependencies][:rake].each{|rake_dir| if(Dir.exists?(rake_dir)) - newest_file_here=Dir.glob("**/*").max_by {|f| File.mtime(f)} + #newest_file_here=Dir.glob("**/*").max_by {|f| File.mtime(f)} newest_file_rake_dir=nil Dir.chdir(rake_dir) do newest_file_rake_dir=Dir.glob("**/*").max_by {|f| File.mtime(f)} end - self.add "<%Environment.rake('#{rake_dir}','default')%>" if(File.mtime(newest_file_rake_dir) > File.mtime(newest_file_here)) + self.add "<%Environment.rake('#{rake_dir}','default')%>" if(File.mtime(newest_file_rake_dir) > File.mtime(DEV_TASKS[:newest_src_file])) end } end if(DEV_TASKS[:dependencies].has_key?(:source)) DEV_TASKS[:dependencies][:source].each{|source_dep| \ No newline at end of file