rack-google-analytics 0.5.3 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.rdoc +4 -2
  2. data/VERSION +1 -1
  3. metadata +3 -3
data/README.rdoc CHANGED
@@ -4,6 +4,8 @@ Simple Rack middleware to help injecting the google analytics tracking code into
4
4
 
5
5
  This middleware injects the code directly before the `</body>` tag of documents matching the `Content-Type` of `/html/` (therefore `text/html`). You should also be aware that as this rewrites the body length, the `Content-Length` header is also removed (sure, I could rewrite it, but i'm not aware of any benefits.)
6
6
 
7
+ As of 0.6 the class is called Rack::GoogleAnalytics, in 0.5 and earlier this was incorrectly documented, and this name has now been decided upon.
8
+
7
9
  As of `0.2.0` there are no tests as I have not had chance to do this right.
8
10
 
9
11
  Version 0.2.0 implements the default code to be the asynchronous google code (see: http://bit.ly/async-analytics ).
@@ -11,12 +13,12 @@ Version 0.2.0 implements the default code to be the asynchronous google code (se
11
13
  == Usage
12
14
 
13
15
  require 'rack-google-analytics'
14
- use Rack::GoogleTracker, :tracker => 'UA-xxxxxx-x'
16
+ use Rack::GoogleAnalytics, :tracker => 'UA-xxxxxx-x'
15
17
 
16
18
  Note: since 0.2.0 this will use the asynchronous google tracker code, for the traditional behaviour please use:
17
19
 
18
20
  require 'rack-google-analytics'
19
- use Rack::GoogleTracker, :tracker => 'UA-xxxxxx-x', :async => false
21
+ use Rack::GoogleAnalytics, :tracker => 'UA-xxxxxx-x', :async => false
20
22
 
21
23
  If you are not sure what's best, go with the defaults, and read here if you should opt-out
22
24
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.3
1
+ 0.6.0
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 5
8
- - 3
9
- version: 0.5.3
7
+ - 6
8
+ - 0
9
+ version: 0.6.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Lee Hambley