turbo_power 0.6.2 → 0.7.0
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 +4 -2
- data/lib/turbo_power/stream_helper.rb +7 -0
- data/lib/turbo_power/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c66429633c48026fd0cbafa52235652ec88de59d8261300cd38d7e80b594f105
|
|
4
|
+
data.tar.gz: cabb958fac7894f6ce872671ef0891447ae447b748a64907fa8be03e65651b61
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8ac5d5ff43a5af8cfebae2302c63c5accbc547f34d8dd7f5b01103f9de342440ad106a53ca29f54390e315ebc61918b0b506b5cc40d414cb447a403c7da8958a
|
|
7
|
+
data.tar.gz: 7bf2cf417e1e764ea845c011603438818f89eb19ec1800e22dff1524d7da1827dfa5ff2204e6d5c8126fea44bd10beb5a430b46b3fbef081ca78037c61691494
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
turbo_power (0.
|
|
4
|
+
turbo_power (0.7.0)
|
|
5
5
|
turbo-rails (>= 1.3.0)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -116,7 +116,7 @@ GEM
|
|
|
116
116
|
net-smtp
|
|
117
117
|
marcel (1.0.4)
|
|
118
118
|
mini_mime (1.1.5)
|
|
119
|
-
mini_portile2 (2.8.
|
|
119
|
+
mini_portile2 (2.8.8)
|
|
120
120
|
minitest (5.23.1)
|
|
121
121
|
mutex_m (0.2.0)
|
|
122
122
|
net-imap (0.4.12)
|
|
@@ -133,6 +133,8 @@ GEM
|
|
|
133
133
|
nokogiri (1.16.5)
|
|
134
134
|
mini_portile2 (~> 2.8.2)
|
|
135
135
|
racc (~> 1.4)
|
|
136
|
+
nokogiri (1.16.5-x86_64-darwin)
|
|
137
|
+
racc (~> 1.4)
|
|
136
138
|
parallel (1.22.1)
|
|
137
139
|
parser (3.1.3.0)
|
|
138
140
|
ast (~> 2.4.1)
|
|
@@ -113,6 +113,13 @@ module TurboPower
|
|
|
113
113
|
custom_action_all :toggle_css_class, targets: targets, attributes: attributes.merge(classes: classes)
|
|
114
114
|
end
|
|
115
115
|
|
|
116
|
+
def toggle_attribute(targets = nil, attribute = "", force = "false", **attributes)
|
|
117
|
+
attribute = attributes[:attribute] || attribute
|
|
118
|
+
force = attributes[:force] || force
|
|
119
|
+
|
|
120
|
+
custom_action_all :toggle_attribute, targets: targets, attributes: attributes.merge(attribute: attribute, force: force)
|
|
121
|
+
end
|
|
122
|
+
|
|
116
123
|
def replace_css_class(targets = nil, from = "", to = "", **attributes)
|
|
117
124
|
from = attributes[:from] || from
|
|
118
125
|
to = attributes[:to] || to
|
data/lib/turbo_power/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Marco Roth
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-12-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: turbo-rails
|