rack-profiler 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dcf9692d850db32e476a603183617395fdb6bdc4
4
- data.tar.gz: 75d12789c07ac795e3eb027762f4042d1bf243fe
3
+ metadata.gz: 021d440e7dbfacd1c14ce5b84d7c7f06b7c9ad6b
4
+ data.tar.gz: eee4e4669a2d071a2bde2e6875237423a21dd5d9
5
5
  SHA512:
6
- metadata.gz: cc077a17c68d75b88ca9ba0bc4000ee35021bfdc4d209be40b1b31a976cf57b7615d769bb509e05bcb89c57c1b2c9393dd24fb31e651fac87e47c6810d601518
7
- data.tar.gz: 54c806345ef491647fc97a85d1ba27086df6f325e747354180d823948d115081da8d0b6d3a9424b1ed50890b6aafd01dfea88a30222c25ddc425873113efcc33
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/[my-github-username]/rack-profiler/fork )
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)
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class Profiler
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-profiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Ongaro