lib/deliver/app_screenshot.rb in deliver-1.10.3 vs lib/deliver/app_screenshot.rb in deliver-1.10.4
- old
+ new
@@ -78,16 +78,14 @@
}
return matching[self.screen_size]
end
# Validates the given screenshots (size and format)
- # rubocop:disable Style/PredicateName
def is_valid?
return false unless ["png", "PNG", "jpg", "JPG", "jpeg", "JPEG"].include?(self.path.split(".").last)
return self.screen_size == self.class.calculate_screen_size(self.path)
end
- # rubocop:enable Style/PredicateName
def self.devices
return {
ScreenSize::IOS_55 => [
[1080, 1920],