ga_events 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/TODO +0 -1
- data/lib/ga_events/middleware.rb +4 -2
- data/lib/ga_events/version.rb +1 -1
- metadata +5 -5
data/TODO
CHANGED
data/lib/ga_events/middleware.rb
CHANGED
@@ -20,9 +20,11 @@ module GaEvents
|
|
20
20
|
if request.xhr?
|
21
21
|
headers['X-GA-Events'] = serialized
|
22
22
|
elsif is_html?(status, headers)
|
23
|
-
|
23
|
+
body = response
|
24
|
+
body = body.each.to_a.join('') if body.respond_to?(:each)
|
25
|
+
body = body.sub('</body>',
|
24
26
|
"<div data-ga-events='#{serialized}'></div>\\0")
|
25
|
-
response = [
|
27
|
+
response = [body]
|
26
28
|
end
|
27
29
|
end
|
28
30
|
|
data/lib/ga_events/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ga_events
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-
|
14
|
+
date: 2013-03-20 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rails
|
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
66
66
|
version: '0'
|
67
67
|
segments:
|
68
68
|
- 0
|
69
|
-
hash: -
|
69
|
+
hash: -1534076695967929618
|
70
70
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
71
|
none: false
|
72
72
|
requirements:
|
@@ -75,10 +75,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
version: '0'
|
76
76
|
segments:
|
77
77
|
- 0
|
78
|
-
hash: -
|
78
|
+
hash: -1534076695967929618
|
79
79
|
requirements: []
|
80
80
|
rubyforge_project:
|
81
|
-
rubygems_version: 1.8.
|
81
|
+
rubygems_version: 1.8.25
|
82
82
|
signing_key:
|
83
83
|
specification_version: 3
|
84
84
|
summary: This gem allows you to annotate events everywhere in the code of your Rails
|