initforthe-cookies 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md ADDED
@@ -0,0 +1,26 @@
1
+ initforthe-cookies
2
+ ==================
3
+
4
+ Opt-out cookie policy notice engine for rails. Opt-out is implemented by setting a cookie. Irony?
5
+
6
+ Usage
7
+ -----
8
+ * Add 'initforthe-cookies' to gemfile && bundle install
9
+ * Add 'initforthe-cookies' asset loading to css and js manifests
10
+ * Mount the engine at desired location (mount Initforthe::Cookies::Engine, at: '/cookie_policy' in config/routes.rb)
11
+ * Set your app name by creating an initializer in config/initializers, i.e.:
12
+
13
+ ```ruby
14
+ Initforthe::Cookies.setup do |config|
15
+ config.site_name = 'The Initforthe Website'
16
+ config.policy_url = '/pages/cookies'
17
+ config.button_classes = 'btn'
18
+ end
19
+ ```
20
+
21
+ * Call from your layout by <%= cookie_policy %>
22
+
23
+ License
24
+ -------
25
+
26
+ MIT-LICENSE.
@@ -1,11 +1,11 @@
1
1
  <div id="cookie_policy">
2
2
  <%= form_for :cookie_policy, url: initforthe_cookies.accept_cookie_policy_path, remote: true do |f| -%>
3
- <%= f.submit 'Accept cookie policy', class: Initforthe::Cookies.button_classes || '' -%>
3
+ <%= f.submit 'Hide this notice', class: Initforthe::Cookies.button_classes || '' -%>
4
4
  <%- end -%>
5
5
  <p>
6
6
  <%= Initforthe::Cookies.site_name %> uses cookies. Some may have been set already.
7
7
  <%= link_to 'Read about cookies used on this site', Initforthe::Cookies.policy_url %>.
8
- Please click the button to accept our cookies.
8
+ Please click the button to hide this notice.
9
9
  By continuing your use of the site, you agree that you're happy to accept the cookies we use.
10
10
  </p>
11
11
  </div>
@@ -1,3 +1,3 @@
1
1
  module InitfortheCookies
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: initforthe-cookies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-08 00:00:00.000000000 Z
12
+ date: 2013-03-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -27,7 +27,10 @@ dependencies:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: 3.1.0
30
- description: Opt-out cookie policy notice engine for rails.
30
+ description: The Information Commissioner's Office provide information as to how UK-based
31
+ websites should handle notifying visitors of cookie use. This gem provides a discreet
32
+ overlay which sets a cookie on acceptance, but otherwise doesn't interfere with
33
+ the site, in line with ICO guidelines.
31
34
  email:
32
35
  - rob@initforthe.com
33
36
  executables: []
@@ -46,7 +49,7 @@ files:
46
49
  - vendor/assets/stylesheets/initforthe-cookies.css
47
50
  - MIT-LICENSE
48
51
  - Rakefile
49
- - README.rdoc
52
+ - README.md
50
53
  homepage: http://github.com/initforthe/initforthe-cookies
51
54
  licenses: []
52
55
  post_install_message:
data/README.rdoc DELETED
@@ -1,7 +0,0 @@
1
- = initforthe-cookies
2
-
3
- Opt-out cookie policy notice engine for rails. Opt-out is implemented by setting a cookie. Irony?
4
-
5
- = License
6
-
7
- MIT-LICENSE.