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 CHANGED
@@ -1,4 +1,3 @@
1
1
  v0.2
2
- * Remove REVIEW, use Barkeep
3
2
  * Tests
4
3
  * Announcement
@@ -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
- new_body = response.body.sub('</body>',
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 = [new_body]
27
+ response = [body]
26
28
  end
27
29
  end
28
30
 
@@ -1,3 +1,3 @@
1
1
  module GaEvents
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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.5
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-02-15 00:00:00.000000000 Z
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: -622634441041131109
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: -622634441041131109
78
+ hash: -1534076695967929618
79
79
  requirements: []
80
80
  rubyforge_project:
81
- rubygems_version: 1.8.24
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