gdpr 1.0.3 → 1.0.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
  SHA1:
3
- metadata.gz: af83bc307dcf43b6d6dbd7fbfc4e72c7eecb5652
4
- data.tar.gz: 5d548cbe78030123c452f113a47c6d4dcd3df6a6
3
+ metadata.gz: d63e0c05810eb99055dd7cf536a47ae0fd84a24d
4
+ data.tar.gz: 18bc06c88d7a24393ae219e806de0ee893222bee
5
5
  SHA512:
6
- metadata.gz: 2d58cc2e858ccc86933f7f8889423ed11122168d6fdde632a0a20c74d87ad25d4af86225c2acbae15e383dd5a1e0c5900a84010d2aaea3e6d2938a4f78364fa8
7
- data.tar.gz: 44a4b6748c2ceed2af13f9f899ac6a3549be92ca402d743a04de42e3391eb21bc40f5439ec4ef4bc68cd385fba225d57512385e432c6862082e3e1c66de96bfe
6
+ metadata.gz: cff83351d39bb57991d3f9134c53dbecf88eef7dbe144d52d61b7dbc7be1808b514f12de9c95af10a9fdfee85b7b3af448691ec03ebe34a262409189c46734d3
7
+ data.tar.gz: 3dae6f1d8331b59051a0a29a4686563b5f2d73401dbb61a8dfbac72ea67604a9b20cc033709108a46f067073c50a5691f467ff6c9cda806cadcc8d01ee54dc72
data/README.md CHANGED
@@ -25,14 +25,16 @@ Add this to layout:
25
25
 
26
26
  Add this to javascripts:
27
27
  ```js
28
- //= require gdpr/gdpr
28
+ //= require gdpr/cookie_consent
29
29
  ```
30
30
 
31
31
  Add this to stylesheets:
32
32
  ```sass
33
- @import 'gdpr/gdpr'
33
+ @import 'gdpr/cookie_consent'
34
34
  ```
35
35
 
36
+ Set the privacy policy url in the locales.
37
+
36
38
  ## Checklist
37
39
 
38
40
  https://www.eugdpr.org/
@@ -1,6 +1,6 @@
1
1
  //= require js.cookie
2
2
  $(function(){
3
- $('.js-gdpr__cookie_consent').click(function() {
3
+ $('.js-gdpr__cookie_consent__buttons__ok').click(function() {
4
4
  Cookies.set('gdpr.cookie_consent.ok', true, { path: '/', expires: 365 });
5
5
  $('.js-gdpr__cookie_consent').remove();
6
6
  });
@@ -2,10 +2,11 @@
2
2
  <div class="gdpr__cookie_consent js-gdpr__cookie_consent">
3
3
  <div class="gdpr__cookie_consent__text">
4
4
  <%= t('gdpr.cookie_consent.text') %>
5
+ <br />
5
6
  <%= t('gdpr.cookie_consent.learn_more_html', link: t('gdpr.privacy_policy')) %>
6
7
  </div>
7
8
  <div class="gdpr__cookie_consent__buttons">
8
- <button class="gdpr__cookie_consent__buttons__ok"> <%= t('gdpr.cookie_consent.button') %></button>
9
+ <button class="gdpr__cookie_consent__buttons__ok js-gdpr__cookie_consent__buttons__ok"> <%= t('gdpr.cookie_consent.button') %></button>
9
10
  </div>
10
11
  </div>
11
12
  <% end %>
@@ -0,0 +1,7 @@
1
+ de:
2
+ gdpr:
3
+ privacy_policy: https://www.eugdpr.org
4
+ cookie_consent:
5
+ 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."
6
+ button: "Ich habe verstanden"
7
+ learn_more_html: "Für weitere Informationen und Einstellen der Cookies : <a href=\"%{link}\" target=\"_blank\">bitte hier klicken</a>"
@@ -0,0 +1,7 @@
1
+ es:
2
+ gdpr:
3
+ privacy_policy: https://www.eugdpr.org
4
+ cookie_consent:
5
+ 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."
6
+ button: "Entendido"
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>"
@@ -0,0 +1,7 @@
1
+ it:
2
+ gdpr:
3
+ privacy_policy: https://www.eugdpr.org
4
+ cookie_consent:
5
+ text: "Proseguendo nella navigazione del Sito, l'utente acconsente all'utilizzo dei cookie allo scopo di fornire funzioni personalizzate e di misurazione dell'audience."
6
+ button: "Ho capito"
7
+ learn_more_html: "Per maggiori informazioni e per configurare i cookie: <a href=\"%{link}\" target=\"_blank\">cliccare qui</a>"
data/lib/gdpr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gdpr
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
3
3
  end
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.0.3
4
+ version: 1.0.4
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: 2018-03-27 00:00:00.000000000 Z
12
+ date: 2018-05-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -67,8 +67,11 @@ files:
67
67
  - app/assets/javascripts/gdpr/cookie_consent.js
68
68
  - app/assets/stylesheets/gdpr/cookie_consent.sass
69
69
  - app/views/gdpr/_cookie_consent.html.erb
70
+ - config/locales/de.yml
70
71
  - config/locales/en.yml
72
+ - config/locales/es.yml
71
73
  - config/locales/fr.yml
74
+ - config/locales/it.yml
72
75
  - lib/gdpr.rb
73
76
  - lib/gdpr/engine.rb
74
77
  - lib/gdpr/version.rb
@@ -93,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
96
  version: '0'
94
97
  requirements: []
95
98
  rubyforge_project:
96
- rubygems_version: 2.6.13
99
+ rubygems_version: 2.6.11
97
100
  signing_key:
98
101
  specification_version: 4
99
102
  summary: Helps getting your Rails app GDPR compliant