lib/taskjuggler/StatusSheetSender.rb in taskjuggler-3.5.0 vs lib/taskjuggler/StatusSheetSender.rb in taskjuggler-3.6.0
- old
+ new
@@ -1,12 +1,12 @@
#!/usr/bin/env ruby -w
# encoding: UTF-8
#
# = StatusSheetSender.rb -- The TaskJuggler III Project Management Software
#
-# Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
-# by Chris Schlaeger <chris@linux.com>
+# Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014
+# by Chris Schlaeger <cs@taskjuggler.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
#
@@ -92,11 +92,11 @@
# Check if there is a time sheet directory.
return [] unless tsDir
missingFile = "#{tsDir}/missing-reports"
# Check if it's got a missing-reports file.
- return [] if !File.exists?(missingFile)
+ return [] if !File.exist?(missingFile)
# The sheet could have been submitted after tj3ts_summary was run. We
# ignore the entry if a time sheet file now exists. There is a race
# condition here. The file may exist, but it may not yet be loaded for
# the current project that is used to generate the status report. There
@@ -104,10 +104,10 @@
# loaded for the current project that is used to generate the status
# report.
list = File.readlines(missingFile)
list.delete_if do |resource|
tsDate = tsDir[-10..-1]
- File.exists?("#{tsDir}/#{resource.chomp}_#{tsDate}.tji")
+ File.exist?("#{tsDir}/#{resource.chomp}_#{tsDate}.tji")
end
# Return the content of the file.
list
end