rack-profiler 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/README.md +1 -1
- data/lib/rack/profiler.rb +1 -0
- data/lib/rack/profiler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 021d440e7dbfacd1c14ce5b84d7c7f06b7c9ad6b
|
4
|
+
data.tar.gz: eee4e4669a2d071a2bde2e6875237423a21dd5d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2186dacc2aaad4cda88c18534f488e55ac3472784787b4ad6aed9e6ae1f1c6deeae2f7c7ff61d969b0ed236ad322766382ffb48802c9f281969b48de26f7775
|
7
|
+
data.tar.gz: de9bec1458fb10a654ad7cfd1088b427d043104e05d9d1cd077201df7025a1d7459bd95fc814df5e2b6c3fadcff56e83fc70a14c2b56759e21552797bfc04ea5
|
data/README.md
CHANGED
@@ -58,7 +58,7 @@ end
|
|
58
58
|
|
59
59
|
## Contributing
|
60
60
|
|
61
|
-
1. Fork it ( https://github.com/
|
61
|
+
1. Fork it ( https://github.com/dawanda/rack-profiler/fork )
|
62
62
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
63
63
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
64
64
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/rack/profiler.rb
CHANGED
@@ -73,6 +73,7 @@ module Rack
|
|
73
73
|
Profiler.step('total_time') do
|
74
74
|
status, headers, body = @app.call(env)
|
75
75
|
end
|
76
|
+
body.close if body.respond_to?(:close)
|
76
77
|
[200, { 'Content-Type' => 'application/json' }, [{ events: nested_events, response: { status: status, headers: headers, body: body } }.to_json]]
|
77
78
|
else
|
78
79
|
@status, @headers, @body = @app.call(env)
|