rakwik 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,9 @@ require 'pp'
3
3
 
4
4
  module Rakwik
5
5
  class Tracker
6
+
7
+ include Rack::Response::Helpers
8
+
6
9
  DEFAULT = {}
7
10
 
8
11
  def initialize(app, options = {})
@@ -12,9 +15,9 @@ module Rakwik
12
15
  end
13
16
 
14
17
  def call(env)
15
- status, headers, response = @app.call(env)
16
- track Rack::Request.new(env)
17
- [status, headers, response]
18
+ @status, @headers, @body = @app.call(env)
19
+ track Rack::Request.new(env) if ok?
20
+ [@status, @headers, @body]
18
21
  end
19
22
 
20
23
  private
@@ -1,3 +1,3 @@
1
1
  module Rakwik
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rakwik
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Christian Aust
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-06-18 00:00:00 Z
18
+ date: 2012-06-19 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rack