render_turbo_stream 0.1.5 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -3
- data/lib/render_turbo_stream/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ab32f1930ab5f7c6d1146a3c33cac2dd23ac0b6d35853d9d21a71dfd9be6f55
|
4
|
+
data.tar.gz: 7ac98c13c33f96d0913da5f02fcd7913204bd6640a9232b91d3ab4f40974e77b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a13a71cec4759ae98f8ceb15699896166a4ebdb7fb12a6c6a9ba2e212c0ffbd116509057ab3295e6253785b3100499e47d9df99a02b43991c3fda8cccf4b5f34
|
7
|
+
data.tar.gz: 889879edabb70d2736b3590797eb2b206075e42d1221a62b59b1ff23223b30212651f207dd543eedb9254ad24599d812390acc0502b5d5a70088f0b2e501bedc
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- christian
|
@@ -24,7 +24,8 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 7.0.4.3
|
27
|
-
description:
|
27
|
+
description: 'NOT USABLE AS GEM, because: https://github.com/rails/rails/issues/47954
|
28
|
+
see: README'
|
28
29
|
email:
|
29
30
|
- christian@sedlmair.ch
|
30
31
|
executables: []
|
@@ -62,5 +63,6 @@ requirements: []
|
|
62
63
|
rubygems_version: 3.4.12
|
63
64
|
signing_key:
|
64
65
|
specification_version: 4
|
65
|
-
summary: NOT USABLE
|
66
|
+
summary: 'NOT USABLE AS GEM, because: https://github.com/rails/rails/issues/47954
|
67
|
+
see: README'
|
66
68
|
test_files: []
|