render_turbo_stream 0.1.5 → 0.1.6
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 +4 -4
- data/README.md +9 -3
- data/lib/render_turbo_stream/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cac97d150139e91688215e97b30997a047a8f9390b64f56f2e6f570f10d6bd87
|
4
|
+
data.tar.gz: d6c539d5bce3f59669f7254c4d24ccbc21a7a5c7580cde83966ac7b88b82fb50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9afe5322b9a60b20f44d2950c8f01fcf37df46a5d3b886dcce02919bdbaeb544a2bfdb2b2fa20f317a10f828b89e094449ccdafffbec24caff3cb950cd09b311
|
7
|
+
data.tar.gz: 5d3d1ddb2d36a746b6ee8a60601747205b21179b4a9cd9260f002247d320a4f36036909346a85a7cc5a9b92ec84dfc64361425f3de8e55c70e951f06344d009e
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# RenderTurboStream
|
2
2
|
|
3
|
-
Creating a gem currently is not possible because of [
|
3
|
+
Creating a gem currently is not possible because of [rails issue](https://github.com/rails/rails/issues/47954)
|
4
4
|
|
5
5
|
So, applying this idea is currently only possible by copy and paste a method and a view, see below.
|
6
6
|
|
@@ -12,11 +12,15 @@ In 90% of cases you have just define your partials, like `_form.haml` and steer
|
|
12
12
|
|
13
13
|
## Installation
|
14
14
|
|
15
|
-
Because of [that issue](https://github.com/
|
15
|
+
Because of [that issue](https://github.com/rails/rails/issues/47954) appying this feature is currently only possible by copy and paste following files to your app
|
16
16
|
|
17
17
|
[application_controller](https://gitlab.com/sedl/renderturbostream/-/wikis/application_controller)
|
18
18
|
|
19
|
-
[layout/
|
19
|
+
[layout/render_partials.turbo_stream.erb](https://gitlab.com/sedl/renderturbostream/-/wikis/layout/render.turbo_stream.erb)
|
20
|
+
|
21
|
+
[layouts/render_redirect.turbo_stream.erb](https://gitlab.com/sedl/renderturbostream/-/wikis/layouts/render_redirect.turbo_stream.erb)
|
22
|
+
|
23
|
+
The corresponding partials for flashes could look [like this](https://gitlab.com/sedl/renderturbostream/-/wikis/flashes)
|
20
24
|
|
21
25
|
## Usage
|
22
26
|
|
@@ -104,6 +108,8 @@ and a corresponding html-ID for pushing the partial to the right destination ins
|
|
104
108
|
|
105
109
|
`config.x.render_turbo_stream.flash_id` #=> example: `flash-wrapper`
|
106
110
|
|
111
|
+
`config.x.render_turbo_stream.flash_action` #=> example: 'prepend'
|
112
|
+
|
107
113
|
## Contributing
|
108
114
|
|
109
115
|
Contribution welcome.
|
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.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- christian
|
@@ -62,5 +62,5 @@ requirements: []
|
|
62
62
|
rubygems_version: 3.4.12
|
63
63
|
signing_key:
|
64
64
|
specification_version: 4
|
65
|
-
summary: NOT USABLE
|
65
|
+
summary: 'NOT USABLE AS GEM, because: https://github.com/rails/rails/issues/47954'
|
66
66
|
test_files: []
|