rack-avvo_ignite 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/avvo_ignite.rb +6 -2
- data/rack-avvo_ignite.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62d3ac8b3a437ed84f1c39b060ee93b61e58e8b8
|
4
|
+
data.tar.gz: 963c797fa968d98b989b53a9451537f06d67d12b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db7ac95aea5651fe05d1ee2c4d1a90d76d44f2c8fe4704f5eece5b76b777df5f024e11ba2b1074f5be665c8e658ad82061e1a19f619323c369f24e83c628828b
|
7
|
+
data.tar.gz: f90a1ef9f571d6c5ccfd035954bbffd81aedbf98671a0ee7ddc9f0bddd95bb76f765e232f2aed86d1e4279fd6bf736f299412cac951a42622f915bd831a750e4
|
data/lib/rack/avvo_ignite.rb
CHANGED
@@ -11,8 +11,12 @@ module Rack
|
|
11
11
|
status, headers, response = @app.call(env)
|
12
12
|
|
13
13
|
if headers['Content-Type'].to_s.include?('text/html') # Only update HTML bodies
|
14
|
-
response.
|
15
|
-
|
14
|
+
response.each do |part|
|
15
|
+
if part.rindex('</body>')
|
16
|
+
part.gsub!('</body>', message + '</body>')
|
17
|
+
headers['Content-Length'] = (headers['Content-Length'].to_i + message.length).to_s
|
18
|
+
end
|
19
|
+
end
|
16
20
|
end
|
17
21
|
|
18
22
|
[status, headers, response]
|
data/rack-avvo_ignite.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "rack-avvo_ignite"
|
3
|
-
s.version = "0.0.
|
3
|
+
s.version = "0.0.2"
|
4
4
|
s.description = "Integrate Avvo Ignite tracking into your Rack-based application"
|
5
5
|
s.summary = "Integrate Avvo Ignite tracking into your Rack-based application"
|
6
6
|
s.add_dependency "rack"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-avvo_ignite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Ching
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|