Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

middleman-gdpr

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

middleman-gdpr

  • 1.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
3
Created
Source

Middleman GDPR

Helps getting your Middleman website GDPR compliant

Installation

Add this line to your Gemfile:

gem 'middleman-gdpr'

And then execute:

$ bundle

Or install it yourself as:

$ gem install middleman-gdpr

Activate Sprockets and I18n:

# config.rb
activate :sprockets
activate :i18n

Add this to the layout:

  <%= gdpr :cookie_consent %>

Add this to javascripts:

//= require gdpr/cookie_consent

Add this to stylesheets:

@import 'gdpr/cookie_consent'

If your site isn't localized but you want gdpr messages to be in a given language (default: English), just add the corresponding option when activating I18n:

# config.rb
activate :i18n, langs: [:fr]

Set the privacy policy url in the locales.

Checklist

https://www.eugdpr.org/

  • Cookie consent
  • Privacy policy
  • There must be an optin
  • Optin must be unchecked by default
  • Account must be deletable
  • Users must have access to their data
  • Users must be able to modify their data

Thanks

Inspired by cookies_eu (https://github.com/infinum/cookies_eu), thank you :)

Contributing

Feel free to pull request!

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 30 Jul 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc