gdpr 1.2.1 → 1.2.2

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: c76494c218d27d4eaf6a34185d9d9f5f0c53c7a30babc3f2529d80b8be9ed5a9
4
- data.tar.gz: 14e9683f72c85f21517bf6df30dcdbafc6d95fe5bffb7b18460a929d0534e2c7
3
+ metadata.gz: b2517f00b5266454dda4598df1366250e82ae8c63bfccabdeb6fe2d960f9f8db
4
+ data.tar.gz: 857337f5de33d1a4b1e33001b57c2a9ef94c36085e5f42a89d022f7f59cd0c06
5
5
  SHA512:
6
- metadata.gz: bc3051290112b32fd8cb510ee25dcb0860a25a145ab176322f032879c9f4bc327468a4a8025df41016a0efba1ac53aa8ed487c5af79a31b5a8911ea75a387f05
7
- data.tar.gz: 1455f8209af426571a1189e8937505b2b70268a4e725df03e445db27914ba7944413d34881bdf9daa5ced9be8a499336b02610136eee38fb07008cd01c2f2d53
6
+ metadata.gz: edcd8bd191bb95b39d74eba1739b71ca1989af0e16a6c11df52267a17929476bf21a03a68e0d3d9efc44da3e66a5e3c739f86bd35ab6d6d077df6fd6fbcf4584
7
+ data.tar.gz: 7e055b39fc8738a6dcec97ac152fe1871b19f1256c8d5f8b97ecda5e26b6a3adc6069c05b962f40ce6bbe02c14cf3a3cee12213083fec29094db6e205223fc5c
@@ -52,13 +52,13 @@ window.cookieConsent = {
52
52
  }
53
53
  },
54
54
 
55
- setCookieAcceptance: function (value) {
55
+ setCookieAcceptance: function (accepted) {
56
56
  'use strict';
57
- Cookies.set('gdpr.cookie_consent.ok', value, { path: '/', expires: 365 });
57
+ Cookies.set('gdpr.cookie_consent.ok', accepted, { path: '/', expires: 365 });
58
58
  this.displayBanner(false);
59
- if (value) {
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-danger btn-sm btn-xs"> <%= t('gdpr.cookie_consent.button_ko') %></button>
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
@@ -1,3 +1,3 @@
1
1
  module Gdpr
2
- VERSION = '1.2.1'
2
+ VERSION = '1.2.2'
3
3
  end
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.1
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: 2021-10-29 00:00:00.000000000 Z
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.4
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: []