turbo_power 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/Gemfile.lock +2 -2
- data/README.md +3 -2
- data/lib/turbo_power/stream_helper.rb +8 -4
- data/lib/turbo_power/version.rb +1 -1
- data/turbo_power-0.1.5.gem +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c074d5a9c8049bd4719c301ded00f447224c02de8028daafe7757173770bd2e2
|
|
4
|
+
data.tar.gz: bd29bd5a9409224d63c575a569f4b83663b5c5ee65860d33224d9e9a0367902e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7217becd3cdb0ba5b5bd0d9c39cad1dc6061e98d98115f137ad7cc9d3b9d2570fa88bcf2f5df4c074087a117dcca3bb38506d0b5dd46c0f1838cc6f5c777502f
|
|
7
|
+
data.tar.gz: 480e6be4cee77da365f368ee85e663deeaa990b473ec3d17dc004a8b9601614a5b16824be84e34540ed315124bd128c3ecbc1baae957c98648fe30d5df9ac26a
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
turbo_power (0.1.
|
|
4
|
+
turbo_power (0.1.6)
|
|
5
5
|
turbo-rails (~> 1.3.0)
|
|
6
6
|
turbo_ready
|
|
7
7
|
|
|
@@ -176,7 +176,7 @@ GEM
|
|
|
176
176
|
websocket-driver (0.7.5)
|
|
177
177
|
websocket-extensions (>= 0.1.0)
|
|
178
178
|
websocket-extensions (0.1.5)
|
|
179
|
-
zeitwerk (2.6.
|
|
179
|
+
zeitwerk (2.6.6)
|
|
180
180
|
|
|
181
181
|
PLATFORMS
|
|
182
182
|
x86_64-darwin-19
|
data/README.md
CHANGED
|
@@ -147,6 +147,7 @@ import 'controllers'
|
|
|
147
147
|
* `turbo_stream.set_cookie_item(key, value, **attributes)`
|
|
148
148
|
* `turbo_stream.set_focus(target, **attributes)`
|
|
149
149
|
* `turbo_stream.set_title(title, **attributes)`
|
|
150
|
+
* `turbo_stream.turbo_clear_cache()`
|
|
150
151
|
|
|
151
152
|
|
|
152
153
|
### Browser History Actions
|
|
@@ -167,8 +168,8 @@ import 'controllers'
|
|
|
167
168
|
|
|
168
169
|
### Turbo Frame Actions
|
|
169
170
|
|
|
170
|
-
* `turbo_stream.
|
|
171
|
-
* `turbo_stream.
|
|
171
|
+
* `turbo_stream.turbo_frame_reload(frame_id, **attributes)`
|
|
172
|
+
* `turbo_stream.turbo_frame_set_src(frame_id, src, **attributes)`
|
|
172
173
|
|
|
173
174
|
## Development
|
|
174
175
|
|
|
@@ -165,6 +165,10 @@ module TurboPower
|
|
|
165
165
|
custom_action :set_title, attributes: attributes.merge(title: title)
|
|
166
166
|
end
|
|
167
167
|
|
|
168
|
+
def turbo_clear_cache(**attributes)
|
|
169
|
+
custom_action :turbo_clear_cache, attributes: attributes
|
|
170
|
+
end
|
|
171
|
+
|
|
168
172
|
# Browser History Actions
|
|
169
173
|
|
|
170
174
|
def history_go(delta, **attributes)
|
|
@@ -197,12 +201,12 @@ module TurboPower
|
|
|
197
201
|
|
|
198
202
|
# Turbo Frame Actions
|
|
199
203
|
|
|
200
|
-
def
|
|
201
|
-
custom_action :
|
|
204
|
+
def turbo_frame_reload(frame_id, **attributes)
|
|
205
|
+
custom_action :turbo_frame_reload, target: frame_id, attributes: attributes
|
|
202
206
|
end
|
|
203
207
|
|
|
204
|
-
def
|
|
205
|
-
custom_action :
|
|
208
|
+
def turbo_frame_set_src(frame_id, src, **attributes)
|
|
209
|
+
custom_action :turbo_frame_set_src, target: frame_id, attributes: attributes.merge(src: src)
|
|
206
210
|
end
|
|
207
211
|
end
|
|
208
212
|
end
|
data/lib/turbo_power/version.rb
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: turbo_power
|
|
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
|
- Marco Roth
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-11-
|
|
11
|
+
date: 2022-11-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: turbo-rails
|
|
@@ -58,6 +58,7 @@ files:
|
|
|
58
58
|
- lib/turbo_power/engine.rb
|
|
59
59
|
- lib/turbo_power/stream_helper.rb
|
|
60
60
|
- lib/turbo_power/version.rb
|
|
61
|
+
- turbo_power-0.1.5.gem
|
|
61
62
|
- turbo_power.gemspec
|
|
62
63
|
homepage: https://github.com/marcoroth/turbo_power-rails
|
|
63
64
|
licenses:
|