lib/geminabox/indexer.rb in geminabox-0.12.4 vs lib/geminabox/indexer.rb in geminabox-0.13.0
- old
+ new
@@ -19,10 +19,10 @@
(gem_version >= v1_8) && (gem_version < v1_8_25)
end
def self.updated_gemspecs(indexer)
- specs_mtime = File.stat(indexer.dest_specs_index).mtime
+ specs_mtime = File.stat(indexer.dest_specs_index).mtime rescue Time.at(0)
newest_mtime = Time.at 0
updated_gems = indexer.gem_file_list.select do |gem|
gem_mtime = File.stat(gem).mtime
newest_mtime = gem_mtime if gem_mtime > newest_mtime