
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.
This gem contains rails ActiveRecord
validations for a user's emplid
, email
, and
name.#
.
Add this line to your application's Gemfile:
gem 'osu_validators'
And then execute:
$ bundle
Or install it yourself as:
$ gem install osu_validators
Assuming that a User
record has a emplid
, email
, and name_n
column:
class User < ActiveRecord::Base
validates_emplid_of :emplid
validates_osu_email_of :email
validates_name_n_of :name_n
end
class User < ActiveRecord::Base
validates :emplid, emplid: true
validates :email, osu_email: true
validates :name_n, name_n: true
end
There are also validations options for each validator: allow_nil
,
allow_blank
, and message
.
class User < ActiveRecord::Base
validates_emplid_of :emplid, allow_nil: true
validates :email, osu_email: { allow_blank: true }
validates :name_n, name_n: { message: "custom error message" }
end
Bug reports and pull requests are welcome on code.osu.edu at https://code.osu.edu/asctech/osu_validators. 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.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that osu_validators 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.
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.