lib/slather/project.rb in slather-2.7.3 vs lib/slather/project.rb in slather-2.7.4

- old
+ new

@@ -206,11 +206,11 @@ first_product.name || remove_extension(first_product.path) end def profdata_coverage_dir @profdata_coverage_dir ||= begin - raise StandardError, "The specified build directory (#{self.build_directory}) does not exist" unless File.exists?(self.build_directory) + raise StandardError, "The specified build directory (#{self.build_directory}) does not exist" unless File.exist?(self.build_directory) dir = nil if self.scheme dir = Dir[File.join(build_directory,"/**/CodeCoverage/#{self.scheme}")].first else dir = Dir[File.join(build_directory,"/**/#{first_product_name}")].first @@ -501,10 +501,10 @@ schemes_path = Xcodeproj::XCScheme.user_data_dir(self.workspace) xcscheme_path = "#{schemes_path + self.scheme}.xcscheme" end end - raise StandardError, "No scheme named '#{self.scheme}' found in #{self.path}" unless File.exists? xcscheme_path + raise StandardError, "No scheme named '#{self.scheme}' found in #{self.path}" unless File.exist? xcscheme_path xcscheme = Xcodeproj::XCScheme.new(xcscheme_path) if self.configuration configuration = self.configuration