README.md in truemail-2.4.2 vs README.md in truemail-2.4.3

- old
+ new

@@ -191,33 +191,33 @@ config.validation_type_for = { 'somedomain.com' => :regex, 'otherdomain.com' => :mx } # Optional parameter. Validation of email which contains whitelisted domain always will # return true. Other validations will not processed even if it was defined in validation_type_for # It is equal to empty array by default. - config.whitelisted_domains = ['somedomain1.com', 'somedomain2.com'] + config.whitelisted_domains = %w[somedomain1.com somedomain2.com] # Optional parameter. With this option Truemail will validate email which contains whitelisted # domain only, i.e. if domain whitelisted, validation will passed to Regex, MX or SMTP validators. # Validation of email which not contains whitelisted domain always will return false. # It is equal false by default. config.whitelist_validation = true # Optional parameter. Validation of email which contains blacklisted domain always will # return false. Other validations will not processed even if it was defined in validation_type_for # It is equal to empty array by default. - config.blacklisted_domains = ['somedomain3.com', 'somedomain4.com'] + config.blacklisted_domains = %w[somedomain3.com somedomain4.com] # Optional parameter. With this option Truemail will filter out unwanted mx servers via # predefined list of ip addresses. It can be used as a part of DEA (disposable email # address) validations. It is equal to empty array by default. - config.blacklisted_mx_ip_addresses = ['1.1.1.1', '2.2.2.2'] + config.blacklisted_mx_ip_addresses = %w[1.1.1.1 2.2.2.2] # Optional parameter. This option will provide to use custom DNS gateway when Truemail # interacts with DNS. Valid port numbers are in the range 1-65535. If you won't specify # nameserver's ports Truemail will use default DNS TCP/UDP port 53. By default Truemail # uses DNS gateway from system settings and this option is equal to empty array. - config.dns = ['10.0.0.1', '10.0.0.2:54'] + config.dns = %w[10.0.0.1 10.0.0.2:54] # Optional parameter. This option will provide to use not RFC MX lookup flow. # It means that MX and Null MX records will be cheked on the DNS validation layer only. # By default this option is disabled. config.not_rfc_mx_lookup_flow = true @@ -349,12 +349,12 @@ ```ruby require 'truemail' Truemail.configure do |config| config.verifier_email = 'verifier@example.com' - config.whitelisted_domains = ['white-domain.com', 'somedomain.com'] - config.blacklisted_domains = ['black-domain.com', 'somedomain.com'] + config.whitelisted_domains = %w[white-domain.com somedomain.com] + config.blacklisted_domains = %w[black-domain.com somedomain.com] config.validation_type_for = { 'somedomain.com' => :mx } end ``` ##### Whitelist case @@ -398,11 +398,11 @@ ```ruby require 'truemail' Truemail.configure do |config| config.verifier_email = 'verifier@example.com' - config.whitelisted_domains = ['white-domain.com'] + config.whitelisted_domains = %w[white-domain.com] config.whitelist_validation = true end ``` When email domain in whitelist and `whitelist_validation` is sets equal to `true` validation type will be passed to other validators. Validation of email which not contains whitelisted domain always will return `false`. @@ -766,10 +766,10 @@ ```ruby require 'truemail' Truemail.configure do |config| config.verifier_email = 'verifier@example.com' - config.blacklisted_mx_ip_addresses = ['127.0.1.2'] + config.blacklisted_mx_ip_addresses = %w[127.0.1.2] end Truemail.validate('email@example.com', with: :mx_blacklist) => #<Truemail::Validator:0x00007fca0c8aea70