turbo_ready 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -8
- data/lib/turbo_ready/railtie.rb +6 -0
- data/lib/turbo_ready/string.rb +2 -1
- data/lib/turbo_ready/version.rb +1 -1
- data/package.json +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49adf06ca42cd8446e06096b63f685f0ccd145309e0b7a3a44b3f6a3814888cf
|
4
|
+
data.tar.gz: '01680461dbe9c06341d3f37e7376ead03a961edcd5793d121db60c436f768352'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22bf305821c44a16923d89bbd7a5844a15a6e39b331d76011199ee062cfcbfd32fa06b44bbbaaa8f794fbffbec733aef44e07d14dcbf81146f208b8ec2238bc0
|
7
|
+
data.tar.gz: c7b3acb2078e06f0455f17d068796550304c2989a8d3c03d1d1e8c729a90f4811eec9dc854a7d195abf9da02c4e0b6237a1474550b79453ace208e1cea1510cb
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -99,13 +99,7 @@ yarn add "turbo_ready@VERSION --exact"
|
|
99
99
|
|
100
100
|
## Setup
|
101
101
|
|
102
|
-
1.
|
103
|
-
|
104
|
-
```ruby
|
105
|
-
# config/initializers/turbo_ready.rb
|
106
|
-
TurboReady.patch! # Adds TurboReady stream actions to Turbo
|
107
|
-
```
|
108
|
-
2. Import and intialize TurboReady in your JavaScript application.
|
102
|
+
1. Import and intialize TurboReady in your JavaScript application.
|
109
103
|
|
110
104
|
```js
|
111
105
|
// app/javascript/application.js
|
@@ -228,7 +222,7 @@ and [StimulusReflex](https://github.com/stimulusreflex/stimulus_reflex).
|
|
228
222
|
|
229
223
|
Restrict your direct application usage to DOM manipulation that falls outside the purview of
|
230
224
|
[Turbo's official actions](https://turbo.hotwired.dev/reference/streams#the-seven-actions)...
|
231
|
-
*
|
225
|
+
*don't overdo it and find yourself maintaining spaghetti code reminiscent of the jQuery days.*
|
232
226
|
|
233
227
|
## Releasing
|
234
228
|
|
data/lib/turbo_ready/railtie.rb
CHANGED
data/lib/turbo_ready/string.rb
CHANGED
@@ -5,7 +5,6 @@ module TurboReady
|
|
5
5
|
attr_reader :ruby_string, :turbo_ready_tag_builder
|
6
6
|
|
7
7
|
delegate_missing_to :ruby_string
|
8
|
-
delegate :to_s, to: :ruby_string
|
9
8
|
|
10
9
|
def initialize(ruby_string, turbo_ready_tag_builder:)
|
11
10
|
@ruby_string = ruby_string
|
@@ -32,5 +31,7 @@ module TurboReady
|
|
32
31
|
ensure
|
33
32
|
turbo_ready_tags.clear
|
34
33
|
end
|
34
|
+
|
35
|
+
alias_method :to_s, :flush
|
35
36
|
end
|
36
37
|
end
|
data/lib/turbo_ready/version.rb
CHANGED
data/package.json
CHANGED