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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4fa457ba70f1f400a0a56c021fd2ce6c832fb22
4
- data.tar.gz: 7b27d5d10d660fd52d1f0cd3a2a7f2f6232ce5b6
3
+ metadata.gz: d91abed160c03f33d490d0bb4ba58537c8807c10
4
+ data.tar.gz: 3911c2097b19fc87746fc0baaa2b8fc867bdc29b
5
5
  SHA512:
6
- metadata.gz: 1f96ad29526923af17079d44d8ee1ce1a1d7bdc413bbd732d0f3587f032a3f40b027f091b6760358f6199899cf78c321d253f792893dd49043ddbd72a6624ae3
7
- data.tar.gz: 3a0b4ab726900d9e9edd1006a7a2dec5c43377dbe2b31728380f6fdfa6c718ddc132740414cab9c159110f10eb3a2769dc906ad4e731b1f04d66b9a734a98ebb
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 %>
@@ -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"
@@ -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"
@@ -2,14 +2,14 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'simple_cookies'
5
- s.version = "0.0.4"
6
- s.date = '2017-10-26'
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 = 'http://rubygems.org/gems/simple_cookies'
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
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-26 00:00:00.000000000 Z
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: http://rubygems.org/gems/simple_cookies
44
+ homepage: https://github.com/micaeldekleyn/simple_cookies
45
45
  licenses:
46
46
  - MIT
47
47
  metadata: {}