Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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 or rejecting usage of cookies.
Clicking Accept set the cookie "cookiesOK" to "x", clicking Reject will delete the cookie.
Optional parameters 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.
Redirection to url will be triggered by clicking Accept or Reject. Default is request.url.
# config/routes.rb
Rails.application.routes.draw do
...
get "/cookies/accept"
get "/cookies/reject"
...
end
# app/controllers/application_controller.rb (recommended)
...
before_action :always
def always
unless cookies[:cookiesOK] == "x"
render CookiesComponent.new(url: request.url)
end
end
...
You may provide an "internationalized" text via the text parameter.
Micoo buttons uses the I18n.translate method for the legend. A configuration file (a sample) may be:
# config/locales/en.yml
en:
micoo:
button:
accept: Accept
reject: Reject
As usual:
# Gemfile
gem "micoo"
and run "bundle install".
Copyright (c) 2024 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.