
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Not found helper for Cuba.
Add this line to your application's Gemfile:
gem 'cuba-errors'
And then execute:
$ bundle
Or install it yourself as:
$ gem install cuba-errors
See an example:
require 'cuba'
require 'cuba/errors'
require 'cuba/render'
Cuba.plugin Cuba::Errors
Cuba.plugin Cuba::Render
# This setting specifies which view is going to be used for rendering a 404
# page. If not set, nothing will be rendered.
Cuba.settings[:errors][:not_found] = 'not_found'
Cuba.define do
on default do
# sets status = 404
# sets Content-Type = text/html; charset=utf-8
# renders views/not_found.erb
not_found!
end
end
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)See the LICENSE.
FAQs
Unknown package
We found that cuba-errors 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.