lib/deliver/upload_screenshots.rb in deliver-1.0.0.beta2 vs lib/deliver/upload_screenshots.rb in deliver-1.0.0.beta3

- old
+ new

@@ -50,10 +50,13 @@ language = File.basename(lng_folder) files = Dir.glob(File.join(lng_folder, '*.png')) next if files.count == 0 + prefer_framed = Dir.glob(File.join(lng_folder, '*_framed.png')).count > 0 + files.each do |path| + next if prefer_framed && !path.include?("_framed.png") screenshots << AppScreenshot.new(path, language) end end return screenshots