lib/geminabox/server.rb in geminabox-1.5.0 vs lib/geminabox/server.rb in geminabox-2.0.0.rc.1

- old
+ new

@@ -44,11 +44,10 @@ else begin require 'geminabox/indexer' updated_gemspecs = Geminabox::Indexer.updated_gemspecs(indexer) return if updated_gemspecs.empty? - Geminabox::Indexer.patch_rubygems_update_index_pre_1_8_25(indexer) indexer.update_index updated_gemspecs.each { |gem| dependency_cache.flush_key(gem.name) } rescue Errno::ENOENT with_rlock { reindex(:force_rebuild) } rescue => e @@ -195,10 +194,10 @@ begin serialize_update do handle_incoming_gem(Geminabox::IncomingGem.new(request.body)) end rescue Object => o - File.open "/tmp/debug.txt", "a" do |io| + File.open File.join(Dir::tmpdir, "debug.txt"), "a" do |io| io.puts o, o.backtrace end end end