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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 252c2a5d09529593a2b8a556eb920ea54620702c
4
- data.tar.gz: 2fa0aa156e9454a2eb5c575e5c56adc38e6614d5
3
+ metadata.gz: 31dc9e9439e80a44c752e67d9b61d63692608f17
4
+ data.tar.gz: 7e34d68955cac55529b233f051139ee3b69134c4
5
5
  SHA512:
6
- metadata.gz: 88cb7da31b8135331a214d2f6bfb8197e8645dada8a5d7e39fcf2c5a584ac58c016df5b1db10287d01b01f2ff2710752ad16a853e522bc6a5163e44a68a7dc74
7
- data.tar.gz: c420ff4307155340aac608a7d6d3929051f2d83169f0217c639d1639af5d402223f4b58246cc7d3efbafbce54f3e95f31587cc68e085fd40a18b17a7b194fd87
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
@@ -1,3 +1,3 @@
1
1
  module CookieLaw
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -14,6 +14,7 @@ class @CookieLaw
14
14
  ($ document).on 'page:change', ->
15
15
  ($ document).trigger 'cl:page_change'
16
16
  else
17
+ ($ document).trigger 'cl:not_accepted'
17
18
  @bindAcceptors()
18
19
 
19
20
  bindAcceptors: ->
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.0
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 00:00:00.000000000 Z
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