lib/validates_timeliness/formats.rb in validates_timeliness-1.0.0 vs lib/validates_timeliness/formats.rb in validates_timeliness-1.1.0

- old
+ new

@@ -235,11 +235,10 @@ order[arg_key] = $~.begin(0) if $~ && !arg_key.nil? end return Regexp.new(regexp), format_proc(order) rescue - puts "The following format regular expression failed to compile: #{regexp}\n from format #{string_format}." - raise + raise "The following format regular expression failed to compile: #{regexp}\n from format #{string_format}." end # Generates a proc which when executed maps the regexp capture groups to a # proc argument based on order captured. A time array is built using the proc # argument in the position indicated by the first element of the proc arg