frameit/lib/frameit/config_parser.rb in fastlane-2.18.0.beta.20170221010026 vs frameit/lib/frameit/config_parser.rb in fastlane-2.18.0
- old
+ new
@@ -81,9 +81,11 @@
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 || (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 'show_complete_frame'
+ UI.user_error! "show_complete_frame must be a Boolean" unless [true, false].include?(value)
when 'font_scale_factor'
UI.user_error!("font_scale_factor must be numeric") unless value.kind_of?(Numeric)
end
end
end