heroku-request-id 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,15 +33,15 @@ module HerokuRequestId
33
33
  end
34
34
 
35
35
  def each(&block)
36
- @response.each(&block)
37
36
  @stop = Time.now
38
37
  @elapsed = @stop - @start
39
- if self.class.html_comment && @headers["Content-Type"].include?("text/html")
38
+ if self.class.html_comment && @headers["Content-Type"] && @headers["Content-Type"].include?("text/html")
40
39
  block.call("<!-- Heroku request id : #{@request_id} - Elapsed time : #{@elapsed} -->\n")
41
40
  end
42
41
  if self.class.log_line
43
42
  $stdout.puts("heroku-request-id=#{@request_id} measure=\"rack-request\" elapsed=#{@elapsed}")
44
43
  end
44
+ @response.each(&block)
45
45
  end
46
46
 
47
47
  end
@@ -1,3 +1,3 @@
1
1
  module HerokuRequestId
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku-request-id
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -112,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  segments:
114
114
  - 0
115
- hash: 307216651486339733
115
+ hash: -2876837708973814702
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  segments:
123
123
  - 0
124
- hash: 307216651486339733
124
+ hash: -2876837708973814702
125
125
  requirements: []
126
126
  rubyforge_project:
127
127
  rubygems_version: 1.8.24