gdpr 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b2517f00b5266454dda4598df1366250e82ae8c63bfccabdeb6fe2d960f9f8db
|
|
4
|
+
data.tar.gz: 857337f5de33d1a4b1e33001b57c2a9ef94c36085e5f42a89d022f7f59cd0c06
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: edcd8bd191bb95b39d74eba1739b71ca1989af0e16a6c11df52267a17929476bf21a03a68e0d3d9efc44da3e66a5e3c739f86bd35ab6d6d077df6fd6fbcf4584
|
|
7
|
+
data.tar.gz: 7e055b39fc8738a6dcec97ac152fe1871b19f1256c8d5f8b97ecda5e26b6a3adc6069c05b962f40ce6bbe02c14cf3a3cee12213083fec29094db6e205223fc5c
|
|
@@ -52,13 +52,13 @@ window.cookieConsent = {
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
|
|
55
|
-
setCookieAcceptance: function (
|
|
55
|
+
setCookieAcceptance: function (accepted) {
|
|
56
56
|
'use strict';
|
|
57
|
-
Cookies.set('gdpr.cookie_consent.ok',
|
|
57
|
+
Cookies.set('gdpr.cookie_consent.ok', accepted, { path: '/', expires: 365 });
|
|
58
58
|
this.displayBanner(false);
|
|
59
|
-
if (
|
|
60
|
-
if (window.gtag !== undefined) {
|
|
61
|
-
gtag('consent', 'update', {
|
|
59
|
+
if (accepted) {
|
|
60
|
+
if (typeof window.gtag !== 'undefined') {
|
|
61
|
+
window.gtag('consent', 'update', {
|
|
62
62
|
'ad_storage': 'granted',
|
|
63
63
|
'analytics_storage': 'granted'
|
|
64
64
|
});
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
</div>
|
|
6
6
|
<div class="gdpr__cookie_consent__buttons">
|
|
7
7
|
<button class="gdpr__cookie_consent__buttons__ok js-gdpr__cookie_consent__buttons__ok btn btn-primary btn-sm btn-xs"> <%= t('gdpr.cookie_consent.button_ok') %></button>
|
|
8
|
-
<button class="gdpr__cookie_consent__buttons__ko js-gdpr__cookie_consent__buttons__ko btn btn-
|
|
8
|
+
<button class="gdpr__cookie_consent__buttons__ko js-gdpr__cookie_consent__buttons__ko btn btn-primary btn-sm btn-xs"> <%= t('gdpr.cookie_consent.button_ko') %></button>
|
|
9
9
|
</div>
|
|
10
10
|
</div>
|
data/lib/gdpr/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
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.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Arnaud Levy
|
|
8
8
|
- Pierre-André Boissinot
|
|
9
|
-
autorequire:
|
|
9
|
+
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2022-02-10 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -82,7 +82,7 @@ homepage: https://github.com/lespoupeesrusses/gdpr
|
|
|
82
82
|
licenses:
|
|
83
83
|
- MIT
|
|
84
84
|
metadata: {}
|
|
85
|
-
post_install_message:
|
|
85
|
+
post_install_message:
|
|
86
86
|
rdoc_options: []
|
|
87
87
|
require_paths:
|
|
88
88
|
- lib
|
|
@@ -97,8 +97,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
97
97
|
- !ruby/object:Gem::Version
|
|
98
98
|
version: '0'
|
|
99
99
|
requirements: []
|
|
100
|
-
rubygems_version: 3.1.
|
|
101
|
-
signing_key:
|
|
100
|
+
rubygems_version: 3.1.6
|
|
101
|
+
signing_key:
|
|
102
102
|
specification_version: 4
|
|
103
103
|
summary: Helps getting your Rails app GDPR compliant
|
|
104
104
|
test_files: []
|