simple_cookies 0.0.3 → 0.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: ce88c5b764c71c6b9dd917e2e1e19735adb83648
4
- data.tar.gz: bcf450ed0b7571f9262ee9f46cd1e4d0a7fbcae0
3
+ metadata.gz: b4fa457ba70f1f400a0a56c021fd2ce6c832fb22
4
+ data.tar.gz: 7b27d5d10d660fd52d1f0cd3a2a7f2f6232ce5b6
5
5
  SHA512:
6
- metadata.gz: 7f67aee4eeb1cff8337a88b4d63d46d0322080533f6c1b5bc2f061c4934b3518872a35fdf6839fc1b66a564858f7e99ebf3b7faa22895ff453ed4bf46a1755a1
7
- data.tar.gz: 6f408c215e5a63710080609d2936d476db8d72bbe1c3d22de7e1234b44425786bd99dd930c90b0aa285d82db8d8db017f1825b9553161daa2293bc09dab5e31d
6
+ metadata.gz: 1f96ad29526923af17079d44d8ee1ce1a1d7bdc413bbd732d0f3587f032a3f40b027f091b6760358f6199899cf78c321d253f792893dd49043ddbd72a6624ae3
7
+ data.tar.gz: 3a0b4ab726900d9e9edd1006a7a2dec5c43377dbe2b31728380f6fdfa6c718ddc132740414cab9c159110f10eb3a2769dc906ad4e731b1f04d66b9a734a98ebb
@@ -1,7 +1,7 @@
1
1
  <% if request.cookies && request.cookies['simple_cookies_consented'] != 'true' %>
2
2
  <section id="simple-cookies" class="<%= klass if klass.present? %>">
3
- <h1>Pour rendre votre visite plus agréable, <%= appname %> utilise des cookies.</h1>
4
- <p>En poursuivant votre navigation sur ce site, vous acceptez l'utilisation de cookies.</p>
5
- <a href="#" class="simple-cookies-accept">OK</a>
3
+ <h1><%=t "simple_cookies.title", appname: appname %></h1>
4
+ <p><%=t "simple_cookies.text" %></p>
5
+ <a href="#" class="simple-cookies-accept"><%=t "simple_cookies.ok" %></a>
6
6
  </section>
7
7
  <% end %>
@@ -0,0 +1,5 @@
1
+ en:
2
+ simple_cookies:
3
+ title: "To make your visit more enjoyable, %{appname} uses cookies."
4
+ text: "By continuing your navigation on this site, you accept the use of cookies."
5
+ ok: "OK"
@@ -0,0 +1,5 @@
1
+ fr:
2
+ simple_cookies:
3
+ title: "Pour rendre votre visite plus agréable, %{appname} utilise des cookies."
4
+ text: "En poursuivant votre navigation sur ce site, vous acceptez l'utilisation de cookies."
5
+ ok: "OK"
@@ -2,8 +2,8 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'simple_cookies'
5
- s.version = "0.0.3"
6
- s.date = '2017-10-20'
5
+ s.version = "0.0.4"
6
+ s.date = '2017-10-26'
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"]
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.3
4
+ version: 0.0.4
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-20 00:00:00.000000000 Z
11
+ date: 2017-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -35,6 +35,8 @@ files:
35
35
  - LICENSE
36
36
  - README.md
37
37
  - app/views/simple_cookies/_consent.html.erb
38
+ - config/locales/en.yml
39
+ - config/locales/fr.yml
38
40
  - lib/simple_cookies.rb
39
41
  - simple_cookies.gemspec
40
42
  - vendor/assets/javascripts/simple_cookies.js