
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Install as a gem
gem install elfproef
Or add it to your gemfile
gem 'elfproef'
and run
bundle install
As of elfproef-0.2.0 you need ruby-1.9.3 or up, ruby-2.0.0 is preferred.
If your project is stuck at <= ruby-1.9.2, use the latest elfproef-0.1.x release.
gem 'elfproef', '0.1.4'
Using the BsnValidator:
class User < ActiveRecord::Base
validates :bsn_number, bsn: true
end
Using the BankAccountValidator:
class User < ActiveRecord::Base
validates :account_number, bank_account: true
end
Using the PaymentReferenceValidator:
class User < ActiveRecord::Base
validates :reference, payment_reference: true
end
You can also use these validators without ActiveRecord
by including ActiveModel::Validations
:
class AwesomeDutchPerson
include ActiveModel::Validations
validates :bsn, bsn: true
end
Add the following to your locale file:
en:
activemodel:
errors:
models:
YOUR_MODEL:
attributes:
ATTRIBUTE:
invalid_bank_account: "is not a valid bank account number"
invalid_bsn: "is not a valid BSN"
invalid_payment_reference: "is not a valid payment reference"
Please post them to Github Issues.
Feel free to help out. Fork the project, write your specs and code and create a pull request.
Copyright (c) 2012-2013 Sytze Loor, Ariejan de Vroom
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Unknown package
We found that elfproef demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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 clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.