turbo_power 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 379fda8d863682b5df68a6327c7938bd613c432dd1e5c97306e7d9e8ad28463b
4
- data.tar.gz: 678bdcad96b093b5684a04a07bff8394941adb079bff5210774cb436fb87d6f4
3
+ metadata.gz: c074d5a9c8049bd4719c301ded00f447224c02de8028daafe7757173770bd2e2
4
+ data.tar.gz: bd29bd5a9409224d63c575a569f4b83663b5c5ee65860d33224d9e9a0367902e
5
5
  SHA512:
6
- metadata.gz: 1aed7e3e61ce36fd5b973fe5bd1f61bfadf0be2e736f8409a970a46364fffcbbfcb43ff3819538fe996ce8293399f986d21b1c3a790423032b5f77a3012e3ed1
7
- data.tar.gz: 49da0daa9678e58cbdcd76184bda70a8bdc7d7a086bba04de6e3dd1c258410b486f69d5d389333c5889c41bce2c1b807ddd3b1723a9b6a41701906208dace606
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.5)
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.4)
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.reload_turbo_frame(frame_id, **attributes)`
171
- * `turbo_stream.set_turbo_frame_src(frame_id, src, **attributes)`
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 reload_turbo_frame(frame_id, **attributes)
201
- custom_action :reload_turbo_frame, target: frame_id, attributes: attributes
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 set_turbo_frame_src(frame_id, src, **attributes)
205
- custom_action :set_turbo_frame_src, target: frame_id, attributes: attributes.merge(src: src)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TurboPower
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.6"
5
5
  end
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.5
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-02 00:00:00.000000000 Z
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: