validators 3.3.0 → 3.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +1 -0
- data/.rubocop.yml +3 -18
- data/README.md +29 -24
- data/Rakefile +0 -1
- data/bin/sync-reserved-subdomains +96 -0
- data/data/reserved_subdomains.txt +4 -22
- data/lib/validators/disposable_domains.rb +18 -0
- data/lib/validators/disposable_emails.rb +7 -4
- data/lib/validators/ip.rb +6 -6
- data/lib/validators/locale/en.yml +5 -4
- data/lib/validators/locale/pt-BR.yml +7 -3
- data/lib/validators/tld.rb +7 -5
- data/lib/validators/validates_cnpj_format_of.rb +1 -2
- data/lib/validators/validates_cpf_format_of.rb +1 -2
- data/lib/validators/validates_datetime.rb +3 -2
- data/lib/validators/validates_email_format_of.rb +5 -5
- data/lib/validators/validates_ssh_private_key.rb +1 -3
- data/lib/validators/validates_ssh_public_key.rb +1 -3
- data/lib/validators/version.rb +2 -2
- data/lib/validators.rb +8 -1
- data/test/test_helper.rb +1 -2
- data/test/validators/disposable_email_test.rb +0 -2
- data/test/validators/validates_cnpj_format_of_test.rb +3 -3
- data/test/validators/validates_cpf_format_of_test.rb +3 -3
- data/test/validators/validates_email_format_of_test.rb +23 -0
- data/test/validators/validates_ssh_private_key/common_test.rb +3 -3
- data/test/validators/validates_ssh_public_key_test.rb +3 -3
- data/test/validators/validates_url_format_of/with_tld_validation_test.rb +18 -0
- data/test/validators/validates_url_format_of/without_tld_validation_test.rb +18 -0
- data/validators.gemspec +3 -1
- metadata +25 -46
- data/bin/sync-disposable-hostnames +0 -230
- data/bin/sync-tld +0 -20
- data/data/country_tlds.txt +0 -235
- data/data/disposable_domains.txt +0 -110996
- data/data/disposable_emails.txt +0 -38
- data/data/tld.txt +0 -1508
- data/lib/validators/disposable_hostnames.rb +0 -11