
Research
Security News
Malicious npm Packages Target BSC and Ethereum to Drain Crypto Wallets
Socket uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.
alexdunae-validates_email_format_of
Advanced tools
= validates_email_format_of Gem and Rails Plugin
Validate e-mail addresses against RFC 2822 and RFC 3696.
== Installation
Installing as a gem:
gem sources -a http://gems.github.com gem install alexdunae-validates_email_format_of
Installing as a Ruby on Rails plugin:
./script/plugin install git://github.com/alexdunae/validates_email_format_of.git
== Usage
class Person < ActiveRecord::Base validates_email_format_of :email end
=== Options
:message String. A custom error message (default is: " does not appear to be a valid e-mail address") :on Symbol. Specifies when this validation is active (default is :save, other options :create, :update) :allow_nil Boolean. Allow nil values (default is false) :allow_blank Boolean. Allow blank values (default is false) :check_mx Boolean. Check domain for a valid MX record (default is false) :if Specifies a method, proc or string to call to determine if the validation should occur (e.g. :if => :allow_validation, or :if => Proc.new { |user| user.signup_step > 2 }). The method, proc or string should return or evaluate to a true or false value. :unless See :if option.
== Testing
To execute the unit tests run rake test.
The unit tests for this plugin use an in-memory sqlite3 database.
== Resources
== Credits
Written by Alex Dunae (dunae.ca), 2006-09.
Thanks to Francis Hwang (http://fhwang.net/) at Diversion Media for creating the 1.1 update.
Thanks to Travis Sinnott for creating the 1.3 update.
FAQs
Unknown package
We found that alexdunae-validates_email_format_of demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.
Security News
TC39 advances 9 JavaScript proposals, including Array.fromAsync, Error.isError, and Explicit Resource Management, which are now headed into the ECMAScript spec.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.