render_turbo_stream 1.4.12 → 1.4.13

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: 344d9c5276c13acd3cbde921821be8d224befaca25d1492af766c45cb80f7993
4
- data.tar.gz: b7a86cd99b8d5808590c5ed14032f8275c3ae284e90e9682c5b4c2b8dcec332e
3
+ metadata.gz: f7bcd60dee638218b100db8304ddda17a1d7c87df5c46d721cb541913a424abc
4
+ data.tar.gz: 6e606363c60175378ac3cf4a652560d44e5d3b49d98a77c6a0557ff679df67fa
5
5
  SHA512:
6
- metadata.gz: ee892284af2df779af7051f5e8c3f8132595657997429b1ba0d6a8585460a5ed087620c1c5182a786fe5a96c56f6968fc9c192db826f95a00b76a2d6d3ca14a7
7
- data.tar.gz: b74f6487ea7f28a854b98d088e547b80ab67cfb2bbfd1bb62dab24d9d36f2f6b78a42b7e1e78f95ff8c91930632a87fd37a3f3a9d8275b2a418b8a650931435e
6
+ metadata.gz: e7ca3b5b395709063ebd1c30577280527e064bff16e9dc4bcf114a1a0d1a60bda33bfe105a76f0f497a8fcc39fcf59cc0f877ca05a7688666d228fa577f9d85d
7
+ data.tar.gz: 0704ce40c37540bd5135f108668348b4b86fc21cef1d8a5e94ee41a7f5e1da593fd2ec82ea9b3f7e9d7a0c47e8432716cd094beb3dcb1de2e133487d146b047c
@@ -1,3 +1,3 @@
1
1
  module RenderTurboStream
2
- VERSION = "1.4.12"
2
+ VERSION = "1.4.13"
3
3
  end
@@ -47,9 +47,7 @@ module RenderTurboStream
47
47
 
48
48
  if save_action
49
49
  response.status = 200
50
- Rails.logger.debug('start loop')
51
50
  streams_on_success.each do |s|
52
- Rails.logger.debug('inside loop')
53
51
  if s.is_a?(Array)
54
52
  streams.push(s)
55
53
  elsif s.is_a?(Hash) && s[:id].present?
@@ -135,6 +133,8 @@ module RenderTurboStream
135
133
  response.status = 302
136
134
  flash[:alert] = flash_alerts
137
135
  flash[:notice] = flash_notices
136
+ Rails.logger.debug(" • Set flash[:alert] => #{flash_alerts}") if flash_alerts.present?
137
+ Rails.logger.debug(" • Set flash[:notice] => #{flash_notices}") if flash_notices.present?
138
138
  render_turbo_stream([
139
139
  [
140
140
  :redirect_to,
@@ -145,7 +145,8 @@ module RenderTurboStream
145
145
  response.status = 302
146
146
  flash[:alert] = flash_alerts
147
147
  flash[:notice] = flash_notices
148
- # render_turbo_stream(streams)
148
+ Rails.logger.debug(" • Set flash[:alert] => #{flash_alerts}") if flash_alerts.present?
149
+ Rails.logger.debug(" • Set flash[:notice] => #{flash_notices}") if flash_notices.present?
149
150
  redirect_to redirect_on_success_to
150
151
 
151
152
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: render_turbo_stream
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.12
4
+ version: 1.4.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - christian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-25 00:00:00.000000000 Z
11
+ date: 2023-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails