lib/frameit/config_parser.rb in frameit-2.3.0 vs lib/frameit/config_parser.rb in frameit-2.4.0
- old
+ new
@@ -83,10 +83,10 @@
if key == 'color'
raise "Invalid color '#{value}'. Must be valid Hex #123123" unless value.include? "#"
end
if key == 'padding'
- raise "padding must be type integer" unless value.kind_of? Integer
+ raise "padding must be type integer or pair of integers of format 'AxB'" unless value.kind_of?(Integer) || value.split('x').length == 2
end
end
end
end
end