turbo_reflex 0.0.4 → 0.0.5
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 +1 -1
- data/app/controllers/concerns/turbo_reflex/controller.rb +1 -1
- data/app/controllers/turbo_reflex/turbo_reflexes_controller.rb +3 -1
- data/lib/turbo_reflex/version.rb +1 -1
- data/package.json +1 -1
- metadata +2 -3
- data/app/controllers/turbo_reflex/application_controller.rb +0 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2d6d4c209dc726f3acbcf3c34c8db4298386d256f6930ee5cd0b24f5c96a0dae
|
|
4
|
+
data.tar.gz: ebc254c6656288ec944399b606f4dd34f7e0c5039bb7876617dcd47afb60e1f2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e8becdfa0b5c3eadb830de48ed44986901bea970fbab6d1f78bb07d382c5f483cad6aff7e95fe18e06520d33af52144069c9f3d79d3b3d471cf56fb14055669c
|
|
7
|
+
data.tar.gz: e74050000180f047a78bbb6361da9861dd63c29f3a2ad3d2d3f4298f6d8f94614b9922159c0fbf8f86396f8948176b4a22ca11a83890e0acd1424d2aba8ec775
|
data/Gemfile.lock
CHANGED
|
@@ -75,8 +75,8 @@ module TurboReflex::Controller
|
|
|
75
75
|
protected
|
|
76
76
|
|
|
77
77
|
def perform_turbo_reflex
|
|
78
|
-
turbo_reflex_instance.public_send turbo_reflex_method_name
|
|
79
78
|
@turbo_reflex_performed = true
|
|
79
|
+
turbo_reflex_instance.public_send turbo_reflex_method_name
|
|
80
80
|
end
|
|
81
81
|
|
|
82
82
|
def append_turbo_reflex_turbo_streams
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
class TurboReflex::TurboReflexesController <
|
|
3
|
+
class TurboReflex::TurboReflexesController < ActionController::Base
|
|
4
|
+
include TurboReflex::Controller
|
|
5
|
+
|
|
4
6
|
def show
|
|
5
7
|
return head(:ok) unless turbo_reflex_instance&.turbo_streams.present?
|
|
6
8
|
render html: view_context.turbo_reflex_frame_tag do
|
data/lib/turbo_reflex/version.rb
CHANGED
data/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "turbo_reflex",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Reflexes for Turbo Frames that help you build robust reactive applications",
|
|
5
5
|
"main": "app/javascript/turbo_reflex.js",
|
|
6
6
|
"repository": "https://github.com/hopsoft/turbo_reflex",
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: turbo_reflex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nate Hopkins (hopsoft)
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-09-
|
|
11
|
+
date: 2022-09-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -326,7 +326,6 @@ files:
|
|
|
326
326
|
- app/assets/images/turbo-reflex-logo-light.webp
|
|
327
327
|
- app/assets/images/turbo-reflex-mark.webp
|
|
328
328
|
- app/controllers/concerns/turbo_reflex/controller.rb
|
|
329
|
-
- app/controllers/turbo_reflex/application_controller.rb
|
|
330
329
|
- app/controllers/turbo_reflex/turbo_reflexes_controller.rb
|
|
331
330
|
- app/helpers/turbo_reflex/turbo_reflex_helper.rb
|
|
332
331
|
- app/javascript/elements.js
|