render_turbo_stream 4.3.8 → 4.3.9

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: 95cbd0f9e34c5d905454c7107c682719e7f689e857ab48e94cd3a150ee475947
4
- data.tar.gz: 2dda5f5ddcdf497c8b1c937c7bada6fb0d93b24cc7b578e6c8c7e76dafebc106
3
+ metadata.gz: b7267e8e4cbcb083f89379501417b50ee9452f573e9df2ca3db731d89b314307
4
+ data.tar.gz: 33c771a46e9c0cb0210b2cf0253fbfb6629652ba549857309c2c448a1872816d
5
5
  SHA512:
6
- metadata.gz: 2c95e55aed3274b6f38f272262c2d35f23f50d660cb83cb7222fc75b046819b22c219d3022e64879c858bd7bb781fddb651c3d421827f806ae5931a394430754
7
- data.tar.gz: 23c2c473430f0c16506957f7abe7e03c119ac918b3895ed9dfa056141583831d1fa7f04523206b2cb47d44ce490c20ca974bf681cbb398511d0a91cbf31a0a28
6
+ metadata.gz: 2e548748b5db6f7bd0ebdec11f2c56a1c2828fb3c711162a76d5ca9b978c057118604a4a8d8ce7bb42565ce00f9123770ada2aa619e73f80f3152e5a365c5421
7
+ data.tar.gz: df6c1bcd7dc3b140ab73506ba8d94a43d62514192734b6024b3439c90fe8b0b7582af1dde2bb494a3e0e24314ad3e102e00387bc3fed49f3fc7fb954e22472ee
data/README.md CHANGED
@@ -49,9 +49,10 @@ spec/rails_helper.rb (We are using rspec instead of minitest)
49
49
 
50
50
  ```ruby
51
51
  RSpec.configure do |config|
52
- ...
52
+ #...
53
53
  config.include RenderTurboStream::Test::Request::Helpers, type: :request
54
54
  config.include RenderTurboStream::Test::Request::ChannelHelpers, type: :request
55
+ config.include RenderTurboStream::Test::System::Helpers, type: :system
55
56
  end
56
57
  ```
57
58
 
@@ -0,0 +1,18 @@
1
+ module RenderTurboStream
2
+ module Test
3
+ module System
4
+ module Helpers
5
+
6
+ def target_id(relative_view_path, object)
7
+ libs = RenderTurboStream::Libs
8
+ libs.target_id(relative_view_path, object)
9
+ end
10
+
11
+ def target_id_css(relative_view_path, object)
12
+ "##{target_id(relative_view_path, object)}"
13
+ end
14
+
15
+ end
16
+ end
17
+ end
18
+ end
@@ -1,3 +1,3 @@
1
1
  module RenderTurboStream
2
- VERSION = "4.3.8"
2
+ VERSION = "4.3.9"
3
3
  end
@@ -4,6 +4,7 @@ require 'render_turbo_stream/engine'
4
4
 
5
5
  require 'render_turbo_stream/test/request/channel_helpers'
6
6
  require 'render_turbo_stream/test/request/helpers'
7
+ require 'render_turbo_stream/test/system/helpers'
7
8
  require 'render_turbo_stream/test/request/libs'
8
9
 
9
10
  require 'render_turbo_stream/controller_helpers'
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.8
4
+ version: 4.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - christian
@@ -61,6 +61,7 @@ files:
61
61
  - lib/render_turbo_stream/test/request/channel_helpers.rb
62
62
  - lib/render_turbo_stream/test/request/helpers.rb
63
63
  - lib/render_turbo_stream/test/request/libs.rb
64
+ - lib/render_turbo_stream/test/system/helpers.rb
64
65
  - lib/render_turbo_stream/version.rb
65
66
  - lib/render_turbo_stream/view_helpers.rb
66
67
  - lib/tasks/render_turbo_stream_tasks.rake