lib/disco/data.rb in disco-0.1.3 vs lib/disco/data.rb in disco-0.2.0

- old
+ new

@@ -34,11 +34,10 @@ dest = "#{ENV["HOME"]}/.disco/#{fname}" FileUtils.mkdir_p(File.dirname(dest)) return dest if File.exist?(dest) - temp_dir ||= File.dirname(Tempfile.new("disco")) - temp_path = "#{temp_dir}/#{Time.now.to_f}" # TODO better name + temp_path = "#{Dir.tmpdir}/disco-#{Time.now.to_f}" # TODO better name digest = Digest::SHA2.new uri = URI(origin)