turbostreamer 1.7.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/actionview/streaming_template_renderer.rb +4 -4
- data/lib/turbostreamer/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cae111420ec0cf24aa152f0c863f2cd13ee091a06af9f617053eb254e563ba3d
|
4
|
+
data.tar.gz: 4f61485ae07ea14d560fbc7c1acae941a8fb877d4b051666c001be018bab8ccd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e19984cacc4a690231327b12d9e8607388b3d549cbe8e756fc54668047dd1609d9c2ebb2bdeb3e84b10d11ab6f44a6ee72e5599b85be5ddbbf0605182040973
|
7
|
+
data.tar.gz: 9c9643f59bf92ca79e785b29f6fc10fc53237d57c87c2ca2351881a02213d68fcb124e9901ec6d45372f72a737c9cbd0fd68883fbdec9fbc41d695c8d4099700
|
@@ -1,18 +1,18 @@
|
|
1
1
|
module ActionView
|
2
2
|
class StreamingTemplateRenderer < TemplateRenderer
|
3
3
|
|
4
|
-
def render_template(template, layout_name = nil, locals = {}) #:nodoc:
|
4
|
+
def render_template(view, template, layout_name = nil, locals = {}) #:nodoc:
|
5
5
|
template_supports_streaming = (layout_name && template.supports_streaming?) || template.handler == TurboStreamer::Handler
|
6
|
-
return [super] unless template_supports_streaming
|
6
|
+
return [super.body] unless layout_name && template_supports_streaming
|
7
7
|
|
8
8
|
locals ||= {}
|
9
9
|
layout = layout_name && find_layout(layout_name, locals.keys, [formats.first])
|
10
10
|
|
11
11
|
Body.new do |buffer|
|
12
12
|
if template.handler == TurboStreamer::Handler
|
13
|
-
delayed_render_json(buffer, template, layout,
|
13
|
+
delayed_render_json(buffer, template, layout, view, locals)
|
14
14
|
else
|
15
|
-
delayed_render(buffer, template, layout,
|
15
|
+
delayed_render(buffer, template, layout, view, locals)
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turbostreamer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Bracy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -227,7 +227,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
227
227
|
requirements:
|
228
228
|
- - ">="
|
229
229
|
- !ruby/object:Gem::Version
|
230
|
-
version: '
|
230
|
+
version: '2.5'
|
231
231
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
232
232
|
requirements:
|
233
233
|
- - ">="
|