{"id":19675272,"url":"https://github.com/opengems/rails_email_checker","last_synced_at":"2025-04-29T02:30:31.785Z","repository":{"id":56890528,"uuid":"240759416","full_name":"OpenGems/rails_email_checker","owner":"OpenGems","description":"ActiveModel email validation. Checks MX records, sub address, regex, whitelisted and blacklisted check","archived":false,"fork":false,"pushed_at":"2023-03-17T02:37:35.000Z","size":447,"stargazers_count":17,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-22T17:21:32.659Z","etag":null,"topics":["activemodel","activerecord","email-validation","email-verification","fake-emails","rails","rails-validations","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenGems.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-15T17:37:36.000Z","updated_at":"2024-07-03T07:35:46.000Z","dependencies_parsed_at":"2024-11-11T17:24:32.605Z","dependency_job_id":"fdb58440-4a6f-42d8-85ca-fefe8e4fee4e","html_url":"https://github.com/OpenGems/rails_email_checker","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":0.05882352941176472,"last_synced_commit":"e241ff1709f783228cb82ac6a9dd470c04561bf0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenGems%2Frails_email_checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenGems%2Frails_email_checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenGems%2Frails_email_checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenGems%2Frails_email_checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenGems","download_url":"https://codeload.github.com/OpenGems/rails_email_checker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251420878,"owners_count":21586695,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["activemodel","activerecord","email-validation","email-verification","fake-emails","rails","rails-validations","ruby"],"created_at":"2024-11-11T17:22:45.336Z","updated_at":"2025-04-29T02:30:31.155Z","avatar_url":"https://github.com/OpenGems.png","language":"Ruby","readme":"# RailsEmailChecker\n\n[![Gem Version](https://badge.fury.io/rb/rails_email_checker.svg)](https://badge.fury.io/rb/redis_web_manager)\n[![Maintainability](https://api.codeclimate.com/v1/badges/eecf90541668432d4d41/maintainability)](https://codeclimate.com/github/OpenGems/rails_email_checker/maintainability)\n[![Build Status](https://travis-ci.org/OpenGems/rails_email_checker.svg?branch=master)](https://travis-ci.org/OpenGems/redis_web_manager)\n[![security](https://hakiri.io/github/OpenGems/rails_email_checker/master.svg)](https://hakiri.io/github/OpenGems/redis_web_manager/master)\n![Gem](https://img.shields.io/gem/dt/rails_email_checker)\n[![Coverage Status](https://coveralls.io/repos/github/OpenGems/rails_email_checker/badge.svg?branch=master)](https://coveralls.io/github/OpenGems/rails_email_checker?branch=master)\n\nActiveModel email validation. Checks MX records, sub address, regex, whitelisted and blacklisted check\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rails_email_checker'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rails_email_checker\n\n## Usage\n\n### Use with ActiveModel\n\nTo validate that the domain has a good format (regex):\n```ruby\nclass User \u003c ActiveRecord::Base\n  validates_email :email, formatted: true\nend\n```\n\nTo validate that the domain is not blacklisted:\n```ruby\nclass User \u003c ActiveRecord::Base\n  validates_email :email, blacklisted: true\nend\n```\n\nTo validate that the domain has a MX record:\n```ruby\nclass User \u003c ActiveRecord::Base\n  validates_email :email, recorded: true\nend\n```\n\nTo validate that email is not sub addressed:\n```ruby\nclass User \u003c ActiveRecord::Base\n  validates_email :email, no_sub_addressed: true\nend\n```\n\nOR\n\nUse like that\n```ruby\nclass User \u003c ActiveRecord::Base\n  validates :email, email: { no_sub_addressed: true, recorded: true, blacklisted: true }\nend\n```\n\n### Use without ActiveModel\n```ruby\naddress = RailsEmailChecker.address('test@gmail.com') # or RailsEmailChecker::Address.new('test@gmail.com')\naddress.formatted? # =\u003e true\naddress.sub_addressed? # =\u003e false\naddress.recorded? # =\u003e true\naddress.whitelisted? # =\u003e false\naddress.blacklisted? # =\u003e false\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/OpenGems/rails_email_checker. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopengems%2Frails_email_checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopengems%2Frails_email_checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopengems%2Frails_email_checker/lists"}