lib/file_validator.rb in machinery-tool-1.8.2 vs lib/file_validator.rb in machinery-tool-1.9.0

- old
+ new

@@ -76,12 +76,12 @@ expected_files = [] expected_files << "files.tgz" if has_files_tarball expected_files += tree_tarballs else - expected_files = files. - reject { |file| file["changes"].include?("deleted") }. - map { |file| file["name"] } + expected_files = files.reject do |file| + file["changes"].include?("deleted") || (file["type"] && file["type"] != "file") + end.map { |file| file["name"] } end store_base_path = ScopeFileStore.new(@base_path, scope.to_s).path expected_files.map { |file| File.join(store_base_path, file) } end