
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Validate emails using Kickbox.io API in Ruby on Rails and fallback to basic syntax email validation if Kickbox.io API fails for any reason
Add this line to your application's Gemfile:
gem 'kickbox_rails'
And then execute:
$ bundle
Execute next command for generate initializer kickbox_rails.rb, where you can configure your kickbox.io account api_key:
$ rails g kickbox_rails:install
# Rails
class Person < ActiveRecord::Base
validates_kickbox_email_format :email
# OR
validates :email, kickbox_email_format: { message: 'Email is invalid' }
end
# Non Rails
KickboxRails.valid?("example@email.com")
KickboxRails.invalid?("example@email.com")
If you want to get related info from kickbox.io API use validate method
KickboxRails.validate("bill.lumbergh@gamil.com") =>
{
"result":"invalid",
"reason":"rejected_email",
"role":false,
"free":false,
"disposable":false,
"accept_all":false,
"did_you_mean":"bill.lumbergh@gmail.com",
"sendex":0,
"email":"bill.lumbergh@gamil.com",
"user":"bill.lumbergh",
"domain":"gamil.com",
"success":true,
"message":null
}
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that kickbox_rails 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 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.