gdpr 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9e7345d5949d460c048ab970c54451c489f51193903505ec1c1237c517f4264
4
- data.tar.gz: 70fbebfaaee16e47ff0a4833b601300db6c51a87351a4b76cc64dfffc9a70b67
3
+ metadata.gz: c76494c218d27d4eaf6a34185d9d9f5f0c53c7a30babc3f2529d80b8be9ed5a9
4
+ data.tar.gz: 14e9683f72c85f21517bf6df30dcdbafc6d95fe5bffb7b18460a929d0534e2c7
5
5
  SHA512:
6
- metadata.gz: eda7174597f56515fa91f5c7a4d8bd33ecfaa0c164f09e12625b19f0d885c1c3ffaa699b6e200ec0c92673235abe6b54033ca48b3458da345ee89feee1c158c6
7
- data.tar.gz: 0f5ffbd0f21ef8fe9d119bfcdf7e8982d5fb3fc9c99686f11050fc84fdabc757089825e12221335961ebe9b2996ccf2965d3e77c955a0a4bb1f5477052b64fbc
6
+ metadata.gz: bc3051290112b32fd8cb510ee25dcb0860a25a145ab176322f032879c9f4bc327468a4a8025df41016a0efba1ac53aa8ed487c5af79a31b5a8911ea75a387f05
7
+ data.tar.gz: 1455f8209af426571a1189e8937505b2b70268a4e725df03e445db27914ba7944413d34881bdf9daa5ced9be8a499336b02610136eee38fb07008cd01c2f2d53
data/README.md CHANGED
@@ -37,7 +37,7 @@ Set the privacy policy url in the locales.
37
37
 
38
38
  ## Usage
39
39
  This will display a cookie banner with both Validate & Reject buttons.
40
- You can force the re-display of the banner with a button/link including a ".js-gdpr__cookie_consent__display_again" class.
40
+ You can force the re-display of the banner with a button/link including a `.js-gdpr__cookie_consent__display_again` class.
41
41
 
42
42
 
43
43
  If you have a GTAG marker you should use it like this
@@ -74,7 +74,12 @@ window.cookieConsent = {
74
74
  }
75
75
  }.invoke();
76
76
 
77
- document.addEventListener('DOMContentLoaded', function () {
78
- 'use strict';
77
+
78
+ if (document.readyState === 'complete' || document.readyState === 'interactive') {
79
79
  window.cookieConsent.init();
80
- });
80
+ } else {
81
+ window.addEventListener('DOMContentLoaded', function () {
82
+ 'use strict';
83
+ window.cookieConsent.init();
84
+ });
85
+ }
@@ -0,0 +1,8 @@
1
+ oc:
2
+ gdpr:
3
+ privacy_policy: https://gdpr.eu/cookies/
4
+ cookie_consent:
5
+ button_ko: "Refusar"
6
+ button_ok: "Validar"
7
+ learn_more_html: "Per ne saber mai e configurar aquestes cookies : <a href=\"%{link}\" target=\"_blank\">cliquer ici</a>."
8
+ text: "En contunhant la navigation sus aqueste site, acceptatz l’utilizacion de cookies per vos prepausar especialament de foncionalitats personalizadas e per realizar de mesurea d’audiéncia."
data/lib/gdpr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gdpr
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gdpr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Levy
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-03-25 00:00:00.000000000 Z
12
+ date: 2021-10-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -72,6 +72,7 @@ files:
72
72
  - config/locales/es.yml
73
73
  - config/locales/fr.yml
74
74
  - config/locales/it.yml
75
+ - config/locales/oc.yml
75
76
  - config/locales/zh.yml
76
77
  - lib/gdpr.rb
77
78
  - lib/gdpr/engine.rb