cookie_law 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -0
- data/build/cookie_law-0.1.0.gem +0 -0
- data/lib/cookie_law/version.rb +1 -1
- data/vendor/assets/javascripts/cookie_law.coffee.erb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31dc9e9439e80a44c752e67d9b61d63692608f17
|
4
|
+
data.tar.gz: 7e34d68955cac55529b233f051139ee3b69134c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7313ef002de06610e831f069ef9349a49038279fc9cdee983ae7edd80a880596f8a07317adcb26e49d03ec5511614e71f3e0e78e24226c9a96c45bddcbe95dc
|
7
|
+
data.tar.gz: 083cafbbc5efd9613832be699b38dc795db35a36c8bb7f0cc9a0fc05a810b72bf6d5b6796ed4b2ec62281ef749d197b6712d684ec48f496b1b9ad952d83fc649
|
data/README.md
CHANGED
@@ -65,6 +65,10 @@ if the policy is not accepted. To deal with this, `cookie_law` will trigger even
|
|
65
65
|
to allow you to run code in different conditions. Let's see it with an example:
|
66
66
|
|
67
67
|
```javascript
|
68
|
+
$(document).on('cl:not_accepted', function() {
|
69
|
+
// This function will be called when a user visits your page but has not accepted
|
70
|
+
// cookie policy. This is the right place (if needed) to use anonymous tracking/profiling system
|
71
|
+
});
|
68
72
|
$(document).on('cl:ready', function() {
|
69
73
|
// This function will be called only when the users accepts the cookie policy
|
70
74
|
// with one of the allowed method.
|
@@ -93,6 +97,16 @@ and you will have the default view copied in your project. You can find the view
|
|
93
97
|
|
94
98
|
This project uses the awesome [js-cookie](https://github.com/js-cookie/js-cookie).
|
95
99
|
|
100
|
+
## Changelog
|
101
|
+
|
102
|
+
### 0.1.1 - 2015-08-12
|
103
|
+
|
104
|
+
* Added `$(document).on('cl:not_accepted', function() {})` callback for user who is visiting the page but has not yet accepted the policy.
|
105
|
+
|
106
|
+
### 0.1.0 - 2015-07-12
|
107
|
+
|
108
|
+
* First release
|
109
|
+
|
96
110
|
## Contributing
|
97
111
|
|
98
112
|
1. Fork it ( https://github.com/[my-github-username]/cookie_law/fork )
|
Binary file
|
data/lib/cookie_law/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cookie_law
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Enrico Carlesso
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -57,6 +57,7 @@ files:
|
|
57
57
|
- app/views/cookie_law/_banner.it.html.erb
|
58
58
|
- bin/console
|
59
59
|
- bin/setup
|
60
|
+
- build/cookie_law-0.1.0.gem
|
60
61
|
- cookie_law.gemspec
|
61
62
|
- lib/cookie_law.rb
|
62
63
|
- lib/cookie_law/configuration.rb
|