render_turbo_stream 4.3.8 → 4.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/render_turbo_stream/test/system/helpers.rb +18 -0
- data/lib/render_turbo_stream/version.rb +1 -1
- data/lib/render_turbo_stream.rb +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7267e8e4cbcb083f89379501417b50ee9452f573e9df2ca3db731d89b314307
|
4
|
+
data.tar.gz: 33c771a46e9c0cb0210b2cf0253fbfb6629652ba549857309c2c448a1872816d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/render_turbo_stream.rb
CHANGED
@@ -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.
|
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
|