render_turbo_stream 4.3.6 → 4.3.7

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: 50b66f69ea709549c4533179701f90c46ab72be3f94f122f1b88bf14bc2e904b
4
- data.tar.gz: 24cfb4ca73c7250583d1eb38bf85c83d22381eb7ef06a201ac54d413cc3f4c51
3
+ metadata.gz: ea7913deb2cafba8983dac02703b99af22fdc6258a065ee9a133764bb7b5eb65
4
+ data.tar.gz: af7c12ff7132866f47467069cd1acaa7a3cba770ad71e52e723f346c7f1ded48
5
5
  SHA512:
6
- metadata.gz: 7d377ad2e7c8d8a6445aba275dde712fc68687ead0c330467d5c5d14eb68889645e6dc6cfbe20cfdbdb2804a34dade175c7eac20e92c900d2b8c7ae50584fe3b
7
- data.tar.gz: e2919553ed95baa2f4d9dca401552b656db4001bda833378f5c37a1a14d856eaa4d07c2eca2adf956fef1bb20b1f7d42143e51fa0aa420883e01335b8b96f336
6
+ metadata.gz: 84fb7d4e0a4ed16afe2fffbaa1552e7c805094eec885ba05bb9d5a7339aae0269a027d5194f238bb0e5f4913bcabc9e5c7916067b7e35fbb9f297e5c6e4f8e80
7
+ data.tar.gz: 5c1889def50f6eca8fa5c733792bb1cd721a399cc7ff3c1a20ff6de7eac988894a42ac9933c16a3ea59fcb68b0fda53a3a39f1549c195c6de5bdd099f1edefed
@@ -27,8 +27,8 @@
27
27
  <% args[:target] = RenderTurboStream::Libs.fetch_arguments_from_rendered_string(rendered_html)[:target] %>
28
28
  <% if args[:target].present? %>
29
29
  <% Rails.logger.debug(" • Target #{args[:target]} found in #{args[:partial]}") %>
30
- <% else %>
31
- <% raise "No target specified by arguments and no target found inside the rendered #{args[:partial].present? ? "partial: #{args[:partial]}" : "template: #{args[:template]}"}" %>
30
+ <% elsif rendered_html.present? %>
31
+ <% raise "No target specified by arguments and no target found inside the rendered #{args[:partial].present? ? "partial: #{args[:partial]}" : "template: #{args[:template]}"}: «#{rendered_html}»" %>
32
32
  <% end %>
33
33
  <% end %>
34
34
 
@@ -22,8 +22,8 @@
22
22
 
23
23
  <% unless s[:target].present? %>
24
24
  <% s[:target] = RenderTurboStream::Libs.fetch_arguments_from_rendered_string(html)[:target] %>
25
- <% unless s[:target].present? %>
26
- <% raise "No target specified by arguments and no target found inside the rendered #{s[:partial].present? ? "partial: #{s[:partial]}" : "template: #{s[:template]}"}" %>
25
+ <% if !s[:target].present? && html.present? %>
26
+ <% raise "No target specified by arguments and no target found inside the rendered #{s[:partial].present? ? "partial: #{s[:partial]}" : "template: #{s[:template]}"}: «#{html}»" %>
27
27
  <% end %>
28
28
  <% end %>
29
29
 
@@ -1,3 +1,3 @@
1
1
  module RenderTurboStream
2
- VERSION = "4.3.6"
2
+ VERSION = "4.3.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: render_turbo_stream
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.6
4
+ version: 4.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - christian