template_streaming 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.0.5 2010-04-27
2
+
3
+ * Automatically add Rack::Chunked to middleware stack.
4
+
1
5
  == 0.0.4 2010-04-26
2
6
 
3
7
  * Add when_streaming_template callback. Called after an action that
@@ -1,5 +1,5 @@
1
1
  module TemplateStreaming
2
- VERSION = [0, 0, 4]
2
+ VERSION = [0, 0, 5]
3
3
 
4
4
  class << VERSION
5
5
  include Comparable
@@ -25,8 +25,8 @@ module TemplateStreaming
25
25
  def render_with_template_streaming(*args, &block)
26
26
  with_template_streaming_condition(*args) do |condition|
27
27
  if condition
28
- @performed_render = true
29
28
  check_thin_support
29
+ @performed_render = true
30
30
  @streaming_body = StreamingBody.new(progressive_rendering_threshold) do
31
31
  @performed_render = false
32
32
  last_piece = render_without_template_streaming(*args, &block)
@@ -251,4 +251,5 @@ module TemplateStreaming
251
251
  ActionView::Base.send :include, View
252
252
  ActionController::Base.send :include, Controller
253
253
  ActionController::Response.send :include, Response
254
+ ActionController::Dispatcher.middleware.use Rack::Chunked
254
255
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 4
9
- version: 0.0.4
8
+ - 5
9
+ version: 0.0.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - George Ogata
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-26 00:00:00 -04:00
17
+ date: 2010-04-27 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency