render_turbo_stream 0.1.37 → 0.1.38

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5aec959a7ad9663de11285bba5734246b90b764235464a41da68e80a35dc2609
4
- data.tar.gz: d38bc6507be14b63af99e268cf167c567836cd7021d6777e6c31dac02b73c80e
3
+ metadata.gz: cc560017c111220d13b4d93d5b75a2dd6861ddb47279dfa274c198a139e0f570
4
+ data.tar.gz: 11412706a617e448b463d5f1c8ccfed8e78478ff326d76941aa3743e40c80310
5
5
  SHA512:
6
- metadata.gz: d0ab474fc5ea832bf2ea135af3696ea0fd3d032cb17ebe8847262d7fbd53ab86e038fa37e28b497b3b7d9892e2c680aa153ba06d9e059b21cff82d682bb18099
7
- data.tar.gz: b9954342146266f214581d689fdbd0b1084fd8bb0d4d64e8e08bdbd07c931cb39e950953f6dc56c946941a922a3e39b3eee8401559548a0164ea2185d3f692d6
6
+ metadata.gz: e45b9be258303328b2271fb401a2553725f80626160fd9b3f0dbefbf9475d342cd2e1192406544b8d2a8bce3b05c693b085edeef5d1e936b76c55b26a0df50a3
7
+ data.tar.gz: 444fb5821a42d2beee1860413da811b1f70b9cee8573e93694fba3a0351860a93c2015985637a78e695f9d73cd66e6804d13c729493e47b5ba8d1efe2726cd6d
@@ -89,17 +89,18 @@ module RenderTurboStream
89
89
  # log as helper for the developer to see which flash is set and which partials are rendered to wich ids
90
90
  def partials_log
91
91
  r = []
92
- if flash[:alert].present?
93
- r.push("flash[:alert]: «#{flash[:alert]}»")
94
- end
95
- if flash[:notice].present?
96
- r.push("flash[:notice]: «#{flash[:notice]}»")
97
- end
98
92
  if response.status == 302
99
93
  r.push("redirect to #{turbo_redirect_to}")
100
94
  else
101
95
  partials_attributes.map do |a|
102
- str = [a['action'], 'id', "«#{a['id']}»", 'by partial', "«#{a['partial']}»"].join(' ')
96
+ str = [
97
+ a['action'],
98
+ 'id',
99
+ "«#{a['id']}»",
100
+ 'by partial',
101
+ "«#{a['partial']}»",
102
+ (a['locals'].present? ? "locals: «#{a['locals']}»" : nil)
103
+ ].compact.join(' ')
103
104
  r.push(str)
104
105
  end
105
106
  end
@@ -1,3 +1,3 @@
1
1
  module RenderTurboStream
2
- VERSION = "0.1.37"
2
+ VERSION = "0.1.38"
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: 0.1.37
4
+ version: 0.1.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - christian