gdpr 1.2.3 → 1.2.5

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: dba48ada0346cb73f5d71804c1228fa29476d38376548fa759e45e8f1e22bc79
4
- data.tar.gz: 194cf47027a7d51f3793d949bdcc9303e90e6b941b059db6f5d1fafd4a8a14a2
3
+ metadata.gz: 538d30dba6da9fc2711c20c77d4a329ab6f910eebd4b40f25210e07f68631767
4
+ data.tar.gz: 1a0dfc7f571fdbcb0fe75e2c88468d4dac660f41fb2a6ee8a3acdd02d78edf72
5
5
  SHA512:
6
- metadata.gz: cd2da8d6ff90ea060d4420b78d948f1cb06cf99bace44401bcb46a0bfffd7093b5babaa031b83850264f198b245d2459be5e17156f56a569b1c690b8add1026e
7
- data.tar.gz: f77b982f2f342845fe26babf6bc6ebf188d1599a721499049e9a9fa2b8499817a6e5cea42e0adf10f0281e306d6112c868d5993d474a386423b4e2a8684e21e1
6
+ metadata.gz: '09937b1b45d5c676d2f14785bc06c8e1345247792e0fdb1cd4dc8da40d747454daeb136f23a79262e69001963d6bc143254d3c923f27638b61f287f752981b45'
7
+ data.tar.gz: f79b6b1e9568b958c6f0ec9a0c0b53e00bb380529f339573ebb9830c1bee5092d496f3c1da6312b321197f1a9348d8f83c9dc15b5000b2b3bf0d63ebc706897e
@@ -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);
@@ -4,5 +4,5 @@ de:
4
4
  cookie_consent:
5
5
  button_ko: "Verweigern"
6
6
  button_ok: "Bestätigen"
7
- learn_more_html: "Für weitere Informationen und Einstellen der Cookies : <a href=\"%{link}\" target=\"_blank\">bitte hier klicken</a>."
7
+ learn_more_html: "Für weitere Informationen und Einstellen der Cookies : <a href=\"%{link}\" target=\"_blank\" rel=\"noopener\">bitte hier klicken</a>."
8
8
  text: "Indem Sie Ihre Navigation auf dieser Website fortsetzen, akzeptieren Sie die Verwendung von Cookies, die insbesondere dazu dienen, Ihnen personalisierte Funktionen anzubieten und Ihre Besuche auf der Website zu erfassen."
@@ -4,5 +4,5 @@ en:
4
4
  cookie_consent:
5
5
  button_ko: "Deny"
6
6
  button_ok: "Accept"
7
- learn_more_html: "To learn more about cookies and how to customize your cookies options: <a href=\"%{link}\" target=\"_blank\">click here</a>."
7
+ learn_more_html: "To learn more about cookies and how to customize your cookies options: <a href=\"%{link}\" target=\"_blank\" rel=\"noopener\">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.'
@@ -4,5 +4,5 @@ es:
4
4
  cookie_consent:
5
5
  button_ko: "Denegar"
6
6
  button_ok: "Validar"
7
- learn_more_html: "Para saber más y definir la configuración de estas cookies: <a href=\"%{link}\" target=\"_blank\">hacer clic aquí</a>."
7
+ learn_more_html: "Para saber más y definir la configuración de estas cookies: <a href=\"%{link}\" target=\"_blank\" rel=\"noopener\">hacer clic aquí</a>."
8
8
  text: "Al continuar su navegación por este sitio, acepta la utilización de cookies, que tienen por objeto proponerle funcionalidades personalizadas y realizar mediciones de audiencia."
@@ -4,5 +4,5 @@ fr:
4
4
  cookie_consent:
5
5
  button_ko: "Refuser"
6
6
  button_ok: "Accepter"
7
- learn_more_html: "Pour en savoir plus et paramétrer ces cookies : <a href=\"%{link}\" target=\"_blank\">cliquer ici</a>."
7
+ learn_more_html: "Pour en savoir plus et paramétrer ces cookies : <a href=\"%{link}\" target=\"_blank\" rel=\"noopener\">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."
@@ -4,5 +4,5 @@ it:
4
4
  cookie_consent:
5
5
  button_ko: "Rifiutare"
6
6
  button_ok: "Convalidare"
7
- learn_more_html: "Per maggiori informazioni e per configurare i cookie: <a href=\"%{link}\" target=\"_blank\">cliccare qui</a>."
7
+ learn_more_html: "Per maggiori informazioni e per configurare i cookie: <a href=\"%{link}\" target=\"_blank\" rel=\"noopener\">cliccare qui</a>."
8
8
  text: "Proseguendo nella navigazione del Sito, l'utente acconsente all'utilizzo dei cookie allo scopo di fornire funzioni personalizzate e di misurazione dell'audience."
@@ -4,5 +4,5 @@ oc:
4
4
  cookie_consent:
5
5
  button_ko: "Refusar"
6
6
  button_ok: "Validar"
7
- learn_more_html: "Per ne saber mai e configurar aquestes cookies : <a href=\"%{link}\" target=\"_blank\">cliquer ici</a>."
7
+ learn_more_html: "Per ne saber mai e configurar aquestes cookies : <a href=\"%{link}\" target=\"_blank\" rel=\"noopener\">cliquer ici</a>."
8
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."
@@ -4,5 +4,5 @@ zh:
4
4
  cookie_consent:
5
5
  button_ko: "拒绝"
6
6
  button_ok: "证实"
7
- learn_more_html: "<a href=\"%{link}\" target=\"_blank\">關於Cookies以及設置閣下計算機系統的瀏</a>."
7
+ learn_more_html: "<a href=\"%{link}\" target=\"_blank\" rel=\"noopener\">關於Cookies以及設置閣下計算機系統的瀏</a>."
8
8
  text: '在瀏覽本網站之時,您同意本網站收集閣下Cookies(如有)及用於獲取配置數據以及分析上網認識的瀏覽習慣。Cookies可免除閣下每次瀏覽網站是重新登記的麻煩,並追蹤閣下喜歡的網頁主題選項,為閣下提供更個性化服務。阁下如不希望接受Cookies,可以修改有关互联网选项或阁下计算机系统的浏览选项,但阁下可能因此无法使用或启动本网站的若干功能。'
data/lib/gdpr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gdpr
2
- VERSION = '1.2.3'
2
+ VERSION = '1.2.5'
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.3
4
+ version: 1.2.5
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-12-01 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: []