
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Micoo (minimal Cookie) is a Rails Engine handling the Cookie consent. Besides installing the gem just a minimal code is required (see Usage).
Micoo display a styled text including buttons for accepting, rejecting and customizing usage of cookies.
Clicking Accept set the cookie "cookiesOK" to "x", clicking Reject will delete the cookie, clicking Customize links to administration of cookies.
The cookie "cookiesOK" expires after one month.
Optional parameter for CookiesComponent.new(...) are:
Default is:
You may delete and block all cookies from this site, but parts of the site will not work.
Click Accept if you consent usage of cookies, otherwise click Reject.
# config/routes.rb
Rails.application.routes.draw do
...
get "/cookies/accept"
get "/cookies/reject"
get "/cookies/customize
...
end
# app/controllers/application_controller.rb (recommended)
...
before_action :always
def always
unless cookies[:cookiesOK] == "x"
render CookiesComponent.new
end
end
...
The user should provide functionality for the Customize button.
Button Customize can be disabled/hidden by CSS.
You may provide an "internationalized" text via the text parameter.
Micoo buttons uses the I18n.translate method for the legends. A configuration file may contain:
# config/locales/en.yml
en:
micoo:
button:
accept: Accept
reject: Reject
customize: Customize
As usual:
# Gemfile
gem "micoo"
and run "bundle install".
Copyright (c) 2024-2025 Dittmar Krall (www.matiq.com), released under the MIT license.
FAQs
Unknown package
We found that micoo demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
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.