gdpr 1.2.2 → 1.2.4

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: b2517f00b5266454dda4598df1366250e82ae8c63bfccabdeb6fe2d960f9f8db
4
- data.tar.gz: 857337f5de33d1a4b1e33001b57c2a9ef94c36085e5f42a89d022f7f59cd0c06
3
+ metadata.gz: f36f71c4e607ab25ee04cd4d58b1644406680f3e9969f91665a631378f1797a8
4
+ data.tar.gz: c6d28740780aa71cab8fb1260beba2537dbe4b7287f3a56a45d81c83ee8455ce
5
5
  SHA512:
6
- metadata.gz: edcd8bd191bb95b39d74eba1739b71ca1989af0e16a6c11df52267a17929476bf21a03a68e0d3d9efc44da3e66a5e3c739f86bd35ab6d6d077df6fd6fbcf4584
7
- data.tar.gz: 7e055b39fc8738a6dcec97ac152fe1871b19f1256c8d5f8b97ecda5e26b6a3adc6069c05b962f40ce6bbe02c14cf3a3cee12213083fec29094db6e205223fc5c
6
+ metadata.gz: 27ba5e626604a2729ae8865b636f69e979e7289b7225445b9de3671d1605ee9ac3ab9e2b62d00b476cfd1e761eb6bb8297c1e0f84dfc392947859b4092d6abdd
7
+ data.tar.gz: 4b1635f2ccdf9bbbcd263cfa931ee00d232138082d171ee1b7c32a86cf23b8bc9a2dd541f03855f13f14b604105e87ecb337c2bac7f052a95ba696fc99b2ca7b
@@ -7,14 +7,15 @@ window.cookieConsent = {
7
7
  this.cookieBanner = document.querySelector('.js-gdpr__cookie_consent');
8
8
  this.cookieConsentOkButton = document.querySelector('.js-gdpr__cookie_consent__buttons__ok');
9
9
  this.cookieConsentKoButton = document.querySelector('.js-gdpr__cookie_consent__buttons__ko');
10
- this.displayAgain = document.querySelector('.js-gdpr__cookie_consent__display_again');
10
+ this.displayAgainButtons = document.querySelectorAll('.js-gdpr__cookie_consent__display_again');
11
11
  this.bindActions();
12
12
  this.manageBannerDisplay();
13
13
  },
14
14
 
15
15
  bindActions: function () {
16
16
  'use strict';
17
- var that = this;
17
+ var that = this,
18
+ i;
18
19
  if (this.cookieConsentOkButton) {
19
20
  this.cookieConsentOkButton.addEventListener('click', function () {
20
21
  that.setCookieAcceptance(true);
@@ -25,8 +26,8 @@ window.cookieConsent = {
25
26
  that.setCookieAcceptance(false);
26
27
  });
27
28
  }
28
- if (this.displayAgain) {
29
- this.displayAgain.addEventListener('click', function (e) {
29
+ for (i = 0; i < this.displayAgainButtons.length; i += 1) {
30
+ this.displayAgainButtons[i].addEventListener('click', function (e) {
30
31
  e.preventDefault();
31
32
  e.stopPropagation();
32
33
  that.displayBanner(true);
@@ -2,7 +2,7 @@ en:
2
2
  gdpr:
3
3
  privacy_policy: https://gdpr.eu/cookies/
4
4
  cookie_consent:
5
- button_ko: "Refuse"
6
- button_ok: "Validate"
5
+ button_ko: "Deny"
6
+ button_ok: "Accept"
7
7
  learn_more_html: "To learn more about cookies and how to customize your cookies options: <a href=\"%{link}\" target=\"_blank\">click here</a>."
8
8
  text: 'By navigating on this website, you agree to our use of cookies to personalize certain website features and to measure the audience and use of this website.'
@@ -3,6 +3,6 @@ fr:
3
3
  privacy_policy: https://gdpr.eu/cookies/
4
4
  cookie_consent:
5
5
  button_ko: "Refuser"
6
- button_ok: "Valider"
6
+ button_ok: "Accepter"
7
7
  learn_more_html: "Pour en savoir plus et paramétrer ces cookies : <a href=\"%{link}\" target=\"_blank\">cliquer ici</a>."
8
8
  text: "En poursuivant votre navigation sur ce site, vous acceptez l’utilisation de Cookies pour vous proposer notamment des fonctionnalités personnalisées et pour réaliser des mesures d’audience."
data/lib/gdpr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gdpr
2
- VERSION = '1.2.2'
2
+ VERSION = '1.2.4'
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.2
4
+ version: 1.2.4
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: 2022-02-10 00:00:00.000000000 Z
12
+ date: 2022-11-08 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.6
101
- signing_key:
100
+ rubygems_version: 3.1.4
101
+ signing_key:
102
102
  specification_version: 4
103
103
  summary: Helps getting your Rails app GDPR compliant
104
104
  test_files: []