frameit/lib/frameit/config_parser.rb in fastlane-2.14.1 vs frameit/lib/frameit/config_parser.rb in fastlane-2.14.2

- old
+ new

@@ -78,14 +78,14 @@ when 'background' UI.user_error!("Could not find background image at path '#{File.expand_path(value)}'") unless File.exist? value when 'color' UI.user_error!("Invalid color '#{value}'. Must be valid Hex #123123") unless value.include?("#") when 'padding' - unless value.kind_of?(Integer) || value.split('x').length == 2 - UI.user_error!("padding must be type integer or pair of integers of format 'AxB'") + unless value.kind_of?(Integer) || value.split('x').length == 2 || (value.end_with?('%') && value.to_f > 0) + UI.user_error!("padding must be type integer or pair of integers of format 'AxB' or a percentage of screen size") end when 'font_scale_factor' - UI.user_error! "font_scale_factor must be numeric" unless value.kind_of?(Numeric) + UI.user_error!("font_scale_factor must be numeric") unless value.kind_of?(Numeric) end end end end end