turbo_power 0.6.2 → 0.7.0

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: ef9c05689874bd714de2a00b908a1fffeda8964a34b6f491a0e0f0b02efbd511
4
- data.tar.gz: 5a5f03e89bc90ba272a7f16a1a7695106bf786c387cb41e687cc3278bfd89c76
3
+ metadata.gz: c66429633c48026fd0cbafa52235652ec88de59d8261300cd38d7e80b594f105
4
+ data.tar.gz: cabb958fac7894f6ce872671ef0891447ae447b748a64907fa8be03e65651b61
5
5
  SHA512:
6
- metadata.gz: 59d199b2ba89ee134ecd4b18b4c6e3b26929733d8c3f1fbe093af5544c096476e27e473351ff7a637d912c5fd49e809ebb0ec6a08e8474eb96663b4440fffda1
7
- data.tar.gz: 4aced757dab415c650cb9324f37ec1c4a18d94d3b53bf1ec5736d712a2b8ceac80d23bd5fdf9e70844ed908cb860afa24a6d868bd9c8a1a9d32be37f82deccdc
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.6.2)
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.7)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TurboPower
4
- VERSION = "0.6.2"
4
+ VERSION = "0.7.0"
5
5
  end
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.6.2
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-06-09 00:00:00.000000000 Z
11
+ date: 2024-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: turbo-rails