lib/validators/tld.rb in validators-3.4.0 vs lib/validators/tld.rb in validators-3.4.1
- old
+ new
@@ -3,13 +3,11 @@
module Validators
class TLD
def self.all
@all ||=
begin
- require "email_data"
+ Validators.require_dependency! "email_data"
EmailData.tlds
- rescue LoadError
- raise "email_data is not part of the bundle. Add it to Gemfile."
end
end
def self.host_with_valid_tld?(host)
host = host.to_s