
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
A Rails solution to the European Cookie Law issue.
This will add a dismissable "cookies bar" and an optional link to a policy page.
Add this line to your application's Gemfile:
gem 'eu_cookies', '~> 1.1.0'
And then execute:
$ bundle
Run the installation generator:
$ bundle exec rails g eu_cookies:install
Then, just add this somewhere on you <body>
:
<%= cookies_bar %>
NOTE: This gem imply that you have JQuery.
On a initializer you can configure some things (defaults are shown here):
# false to remove the default internal link, a string to link an external page
EuCookies.display_policy = true
# true to treat page scroll as acceptance
EuCookies.use_scroll = false
# false to disable all the features
EuCookies.enabled = true
To quickly customize position and styles you can override some Sass variables,
take a look to your app/assets/stylesheets/eu_cookies.scss
file.
The cookies bar message is available in English, Croatian, Dutch, Estonian, French, German, Italian, Norwegian, Polish, Russian, Slovenian, Spanish and Swedish.
The full policy page is currently in english.
Not supported, please use jquery.turbolinks gem.
Bug reports and pull requests are welcome. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
Originally based on https://github.com/infinum/cookies_eu
The gem is available as open source under the terms of the MIT License.
FAQs
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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.