cookies_eu 1.2.0 → 1.3.0

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
  SHA1:
3
- metadata.gz: b7cf2d0064ddcab24c0aef5ce37618c7d2b9a8db
4
- data.tar.gz: eeeab47136aeb324f12fe1a39792da643802ace4
3
+ metadata.gz: 532453c74b2fda31b9d2db252049f44cb98e22c7
4
+ data.tar.gz: 77fb800810995ec03ea35eb6e517c35e74ff5561
5
5
  SHA512:
6
- metadata.gz: c700fca0cc9aca4902d50f4ad348f3271e65a3f4aee855e2d0ba8f8f17f8cec7e1389afd2e0cee0eb92d19e4eb5d8b5b150161248a61baa38fe1361ba50ad709
7
- data.tar.gz: 638d4f197aa6de1b92b95b827f2676e8576785d10dbfd326cf60060a60b79d811b9314d0a20df451bc95073399903411868f18df7a322555662eef68dfe2e4f1
6
+ metadata.gz: dc63aa42d741d3c1c8de68ba9a9e23a5146bf4a4132258eff44aa097c11426fd65ccb4782c2d41a162e6304767da74a3787f5dec953211f8a802a4f267864cd9
7
+ data.tar.gz: 7b2399e03d5845c29448437caf4f6bbe8b0fea5221aca1c651ea2c871c87b71bf7d484538c289b2d6dd7a5d2335b3c6b2c8bb9e71fdc451efa5b076ccd8dc42e
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Gem Version](https://badge.fury.io/rb/cookies_eu.svg)](https://badge.fury.io/rb/cookies_eu)
2
+
1
3
  # CookiesEu
2
4
 
3
5
  Gem to add cookie consent to rails application
@@ -5,14 +7,19 @@ Gem to add cookie consent to rails application
5
7
  ## Supported languages
6
8
 
7
9
  * Croatian
10
+ * Czech
11
+ * Danish
8
12
  * Dutch
9
13
  * English
10
14
  * Estonian
11
15
  * French
12
16
  * German
17
+ * Hungarian
13
18
  * Italian
14
19
  * Norwegian
15
20
  * Polish
21
+ * Portugese
22
+ * Romanian
16
23
  * Russian
17
24
  * Slovenian
18
25
  * Spanish
@@ -60,13 +67,20 @@ You can add a link parameter to link to your cookies explanation page (you have
60
67
  = render 'cookies_eu/consent_banner', link: '/cookies'
61
68
  ```
62
69
 
70
+ You can add a target parameter to the link to open in a new tab
71
+
72
+ ```ruby
73
+ = render 'cookies_eu/consent_banner', link: '/cookies', target: '_blank'
74
+ ```
63
75
 
64
76
  If you whish to customize the style of the div the classes are:
65
77
 
66
78
  ```javascript
67
- .cookies_eu // main div
68
- .cookies_eu_ok // button
69
- .cookies_eu_link // link
79
+ .cookies-eu // main div
80
+ .cookies-eu-content-holder // content holder
81
+ .cookies-eu-button-holder // button holder
82
+ .cookies-eu-ok // button
83
+ .cookies-eu-link // link
70
84
  ```
71
85
 
72
86
  ## Turbolinks NOT supported
@@ -3,7 +3,7 @@
3
3
  $(document).ready( function(){
4
4
  $('.cookies-eu-ok').click(function(e){
5
5
  e.preventDefault();
6
- $.cookie('cookie_eu_consented', 'true', { path: '/', expires: 365 });
6
+ $.cookie('cookie_eu_consented', true, { path: '/', expires: 365 });
7
7
  $('.cookies-eu').remove();
8
8
  });
9
9
  });
@@ -4,7 +4,7 @@
4
4
  <span class="cookies-eu-button-holder">
5
5
  <button class="cookies-eu-ok"> <%= t('cookies_eu.ok') %> </button>
6
6
  <% if defined?(link).present? %>
7
- <a href="<%= link %>" class="cookies-eu-link"> <%= t('cookies_eu.learn_more') %> </a>
7
+ <a href="<%= link %>" class="cookies-eu-link" target="<%= defined?(target).present? ? target : '' %>"> <%= t('cookies_eu.learn_more') %> </a>
8
8
  <% end %>
9
9
  </span>
10
10
  </div>
@@ -0,0 +1,5 @@
1
+ cs:
2
+ cookies_eu:
3
+ cookies_text: "Pro zlepšení uživatelského komfortu uživatelů našich internetových stránek a pro zajištění dalších úkolů požíváme cookies. Používáním s tímto souhlasíte."
4
+ learn_more: "Dozvědět se více"
5
+ ok: "OK"
@@ -0,0 +1,5 @@
1
+ da:
2
+ cookies_eu:
3
+ cookies_text: "Cookies hjælper os til at give dig den bedste oplevelse. Ved at bruge vores ydelse, accepterer du vores cookies."
4
+ learn_more: "Lær mere"
5
+ ok: "OK"
@@ -0,0 +1,5 @@
1
+ hu:
2
+ cookies_eu:
3
+ cookies_text: "A weboldalon sütiket használunk, hogy kényelmesebb legyen a böngészés."
4
+ learn_more: "További információ"
5
+ ok: "OK"
@@ -0,0 +1,5 @@
1
+ pt:
2
+ eu_cookies:
3
+ short_html: "As cookies ajudam-nos a oferecer os nossos serviços. Ao utilizar os nossos serviços, aceita o uso de cookies."
4
+ learn_more: "Mais informações"
5
+ ok: "OK"
@@ -0,0 +1,5 @@
1
+ ro:
2
+ cookies_eu:
3
+ cookies_text: "Cookies ne ajuta la livrarea serviciului. Folosind serviciul nostru, consemnati la utilizarea cookies-urilor."
4
+ learn_more: "Mai multe"
5
+ ok: "OK"
@@ -1,3 +1,3 @@
1
1
  module CookiesEu
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cookies_eu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stjepan Hadjic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-24 00:00:00.000000000 Z
11
+ date: 2016-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jquery-rails
@@ -82,16 +82,21 @@ files:
82
82
  - app/assets/stylesheets/cookies_eu.scss
83
83
  - app/views/cookies_eu/_consent_banner.html.erb
84
84
  - app/views/cookies_eu/cookies_info.html.haml
85
+ - config/locales/cs.yml
86
+ - config/locales/da.yml
85
87
  - config/locales/de.yml
86
88
  - config/locales/ee.yml
87
89
  - config/locales/en.yml
88
90
  - config/locales/es.yml
89
91
  - config/locales/fr.yml
90
92
  - config/locales/hr.yml
93
+ - config/locales/hu.yml
91
94
  - config/locales/it.yml
92
95
  - config/locales/nl.yml
93
96
  - config/locales/no.yml
94
97
  - config/locales/pl.yml
98
+ - config/locales/pt.yml
99
+ - config/locales/ro.yml
95
100
  - config/locales/ru.yml
96
101
  - config/locales/sl.yml
97
102
  - config/locales/sv.yml