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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f88c7e8d509e97aa6d2d2604f4a36c1e2d4cc5bb6b15393390681b93d570a893
4
- data.tar.gz: 454ca8f3167263308d397fc66ffaafc3858e4078fed5109a325932c8c890c664
3
+ metadata.gz: cae111420ec0cf24aa152f0c863f2cd13ee091a06af9f617053eb254e563ba3d
4
+ data.tar.gz: 4f61485ae07ea14d560fbc7c1acae941a8fb877d4b051666c001be018bab8ccd
5
5
  SHA512:
6
- metadata.gz: 225cfb941767f0f3c45d0b1458aaabd9815f121af909e35534a40f3a71502297ea0dd1b72ca943f0f8d7fb11944ccea64283668d86b3e34c977958e1170edb46
7
- data.tar.gz: 22ec94ce3cd8e5e1b81c7373d021297e66bedaadbc7fb780c765cf0c7ff752447b9e13e7de84ec5e114620de3af598d225331a7303ec06d31dc78191971c2295
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, @view, locals)
13
+ delayed_render_json(buffer, template, layout, view, locals)
14
14
  else
15
- delayed_render(buffer, template, layout, @view, locals)
15
+ delayed_render(buffer, template, layout, view, locals)
16
16
  end
17
17
  end
18
18
  end
@@ -1,3 +1,3 @@
1
1
  class TurboStreamer
2
- VERSION = '1.7.0'
2
+ VERSION = '1.8.0'
3
3
  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.7.0
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: 2019-10-08 00:00:00.000000000 Z
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: '0'
230
+ version: '2.5'
231
231
  required_rubygems_version: !ruby/object:Gem::Requirement
232
232
  requirements:
233
233
  - - ">="