rack-google-analytics 0.2.0 → 0.3.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/VERSION +1 -1
  2. data/lib/rack-google-analytics.rb +2 -2
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
@@ -57,10 +57,10 @@ module Rack
57
57
  def inject_tracker(response)
58
58
  if @async
59
59
  tracker_code = ASYNC_TRACKER_CODE.sub(/UA-xxxxxx-x/, @tracker)
60
- response.sub!(/<body>/, "<body>\n#{tracker_code}\n")
60
+ response.sub!(/<body>/, "<body>\n#{tracker_code}\n") rescue response
61
61
  else
62
62
  tracker_code = TRACKER_CODE.sub(/UA-xxxxxx-x/, @tracker)
63
- response.sub!(/<\/body>/, "#{tracker_code}\n</body>")
63
+ response.sub!(/<\/body>/, "#{tracker_code}\n</body>") rescue response
64
64
  end
65
65
  end
66
66
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-google-analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Hambley
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-19 00:00:00 +01:00
12
+ date: 2010-01-31 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency