lib/lite/validators/url_validator.rb in lite-validators-1.3.1 vs lib/lite/validators/url_validator.rb in lite-validators-1.3.2

- old
+ new

@@ -1,7 +1,7 @@ # frozen_string_literal: true -require 'uri' +require 'uri' unless defined?(URI) class UrlValidator < BaseValidator SCHEMES = %w[ http https