template_streaming 0.0.6 → 0.0.7

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.0.7 2010-04-28
2
+
3
+ * Fix threshold when content type is not set before rendering.
4
+
1
5
  == 0.0.6 2010-04-28
2
6
 
3
7
  * Fix #render_to_string.
@@ -1,5 +1,5 @@
1
1
  module TemplateStreaming
2
- VERSION = [0, 0, 6]
2
+ VERSION = [0, 0, 7]
3
3
 
4
4
  class << VERSION
5
5
  include Comparable
@@ -120,7 +120,8 @@ module TemplateStreaming
120
120
  # anything will be rendered.
121
121
  #
122
122
  def progressive_rendering_threshold
123
- response.header['Content-type'] =~ %r'\Atext/html' or
123
+ content_type = response.header['Content-type']
124
+ content_type.nil? || content_type =~ %r'\Atext/html' or
124
125
  return 0
125
126
 
126
127
  case request.env['HTTP_USER_AGENT']
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 6
9
- version: 0.0.6
8
+ - 7
9
+ version: 0.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - George Ogata