simple_cookies 0.0.4 → 0.0.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 +4 -4
- data/README.md +1 -1
- data/app/views/simple_cookies/_consent.html.erb +4 -0
- data/config/locales/en.yml +1 -0
- data/config/locales/fr.yml +1 -0
- data/simple_cookies.gemspec +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d91abed160c03f33d490d0bb4ba58537c8807c10
|
4
|
+
data.tar.gz: 3911c2097b19fc87746fc0baaa2b8fc867bdc29b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16653b3bcc09d1fb952ca83fb2a47d5b0013bc5a7b6effb502f2766dce87c5ec3b2e04a5248737b132b37df7f8a6b9d55a368e39b08e0756f932f92350faf0eb
|
7
|
+
data.tar.gz: 2940d547bb048ed4a423118d18711d1c505b9e0d90e6183392fa91aa423eb79f18f9cee73ef3ded6084ca9bb27f60418a1fe58196cd47fdf6afba15184bc1f0a
|
data/README.md
CHANGED
@@ -29,7 +29,7 @@ Or, if you have application.scss:
|
|
29
29
|
In your view add
|
30
30
|
|
31
31
|
```ruby
|
32
|
-
<%= render 'simple_cookies/consent', appname: "App name", klass: 'top' %>
|
32
|
+
<%= render 'simple_cookies/consent', appname: "App name", path: nil, klass: 'top' %>
|
33
33
|
```
|
34
34
|
|
35
35
|
## Default style
|
@@ -1,7 +1,11 @@
|
|
1
1
|
<% if request.cookies && request.cookies['simple_cookies_consented'] != 'true' %>
|
2
2
|
<section id="simple-cookies" class="<%= klass if klass.present? %>">
|
3
3
|
<h1><%=t "simple_cookies.title", appname: appname %></h1>
|
4
|
+
<% if path.present? %>
|
5
|
+
<p><%= I18n.t("simple_cookies.text_with_path", path: path).html_safe %></p>
|
6
|
+
<% else %>
|
4
7
|
<p><%=t "simple_cookies.text" %></p>
|
8
|
+
<% end %>
|
5
9
|
<a href="#" class="simple-cookies-accept"><%=t "simple_cookies.ok" %></a>
|
6
10
|
</section>
|
7
11
|
<% end %>
|
data/config/locales/en.yml
CHANGED
@@ -2,4 +2,5 @@ en:
|
|
2
2
|
simple_cookies:
|
3
3
|
title: "To make your visit more enjoyable, %{appname} uses cookies."
|
4
4
|
text: "By continuing your navigation on this site, you accept the use of cookies."
|
5
|
+
text: "By continuing your navigation on this site, you accept the <a href=\"%{path}\">use of cookies</a>."
|
5
6
|
ok: "OK"
|
data/config/locales/fr.yml
CHANGED
@@ -2,4 +2,5 @@ fr:
|
|
2
2
|
simple_cookies:
|
3
3
|
title: "Pour rendre votre visite plus agréable, %{appname} utilise des cookies."
|
4
4
|
text: "En poursuivant votre navigation sur ce site, vous acceptez l'utilisation de cookies."
|
5
|
+
text_with_path: "En poursuivant votre navigation sur ce site, vous acceptez l'<a href=\"%{path}\">utilisation de cookies</a>."
|
5
6
|
ok: "OK"
|
data/simple_cookies.gemspec
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'simple_cookies'
|
5
|
-
s.version = "0.0.
|
6
|
-
s.date = '2017-10-
|
5
|
+
s.version = "0.0.5"
|
6
|
+
s.date = '2017-10-27'
|
7
7
|
s.summary = "A simple gem to display cookies consent !"
|
8
8
|
s.description = "A simple gem to display cookies consent ! If you don't disable cookies, we assume you are ok with app's cookies policy."
|
9
9
|
s.authors = ["Micael Dekleyn"]
|
10
10
|
s.email = 'micael.dekleyn@gmail.com'
|
11
11
|
s.files = ["lib/simple_cookies.rb"]
|
12
|
-
s.homepage = '
|
12
|
+
s.homepage = 'https://github.com/micaeldekleyn/simple_cookies'
|
13
13
|
s.license = 'MIT'
|
14
14
|
|
15
15
|
s.add_dependency "railties", ">= 4.2.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_cookies
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micael Dekleyn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -41,7 +41,7 @@ files:
|
|
41
41
|
- simple_cookies.gemspec
|
42
42
|
- vendor/assets/javascripts/simple_cookies.js
|
43
43
|
- vendor/assets/stylesheets/simple-cookies.scss
|
44
|
-
homepage:
|
44
|
+
homepage: https://github.com/micaeldekleyn/simple_cookies
|
45
45
|
licenses:
|
46
46
|
- MIT
|
47
47
|
metadata: {}
|