lib/paperclip/geometry_parser_factory.rb in kt-paperclip-5.4.0 vs lib/paperclip/geometry_parser_factory.rb in kt-paperclip-6.2.0

- old
+ new

@@ -1,18 +1,18 @@ module Paperclip class GeometryParser - FORMAT = /\b(\d*)x?(\d*)\b(?:,(\d?))?(\@\>|\>\@|[\>\<\#\@\%^!])?/i + FORMAT = /\b(\d*)x?(\d*)\b(?:,(\d?))?(\@\>|\>\@|[\>\<\#\@\%^!])?/i.freeze def initialize(string) @string = string end def make if match Geometry.new( - :height => @height, - :width => @width, - :modifier => @modifier, - :orientation => @orientation + height: @height, + width: @width, + modifier: @modifier, + orientation: @orientation ) end end private