
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
brodock-validates_as_email
Advanced tools
This gem/plugin is a re-packaged and gem'ified version of the original plugin with credit as follows:
Gabriel Mazetto brodock@gmail.com Donncha Redmond dredmond@e-xact.com Michal Zima xhire@mujmalysvet.cz Ximon Eighteen ximon.eighteen@int.greenpeace.org Dan Kubb dan.kubb@autopilotmarketing.com Thijs van der Vossen thijs@fngtps.com
This Ruby on Rails plugin implements an ActiveRecord validation helper called validates_as_email. The helper acts as if validates_format_of was used with a regular expression that defines an email address conformance test.
It does not follow any RFC as RFC822, RFC2822, RFC3696 as it's intended for common bn
Make sure you have rubygems >= 1.3.6
Install the gem(s): sudo gem install brodock-validates_as_email
Add to environment.rb initializer block: config.gem 'brodock-validates_as_email', :lib => 'validates_as_email'
In your model file do something like:
class MyClass < ActiveRecord::Base validates_as_email :email, :message => 'Invalid Email Address', :allow_nil => true end
class MyOtherClass < ActiveRecord::Base
validates_as_email :email, :message => 'Invalid Email Address', :allow_nil => true end
Some tests have been added.
See the LICENSE file.
FAQs
Unknown package
We found that brodock-validates_as_email demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.