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 +4 -4
- data/README.md +1 -1
- data/app/assets/javascripts/gdpr/cookie_consent.js +8 -3
- data/config/locales/oc.yml +8 -0
- data/lib/gdpr/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c76494c218d27d4eaf6a34185d9d9f5f0c53c7a30babc3f2529d80b8be9ed5a9
|
4
|
+
data.tar.gz: 14e9683f72c85f21517bf6df30dcdbafc6d95fe5bffb7b18460a929d0534e2c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
78
|
-
|
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
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.
|
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-
|
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
|