turbo_power 0.6.0 → 0.6.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c978af0e8802736440fb1efdaefb241555a5f0c459aef82b19d5b025c74cc22f
4
- data.tar.gz: 3aae4c0251a81ce63c8b8d3309439d6bed7cacd9481951ffac2c448eaaac0d81
3
+ metadata.gz: 4e8ff8643127634682d934640147295a85a4c5d865299031b79eaca8d9e07a2a
4
+ data.tar.gz: ce24c63c1e2bb9bdeca2bdbb30cb3515aed4b320f01659f65c089a3d1ae63e7c
5
5
  SHA512:
6
- metadata.gz: 69834c88a1c011c11056a602f0ef2cb58f7de402dbd9ddf98b9f5aea2fc042f2594552e79e909eb5505f4eeceaee9b5a0232af861e6600274a92673ee3664048
7
- data.tar.gz: d15b8707abaa450e0a791a860d6457462be7325ed718887ad99be53d640f5ef88c21a3cc86198029aca6ced23504eb975149d86ccd2f9f641cf9ae40e212fd29
6
+ metadata.gz: d69f06b40f30aa9848182d26c59f5b46af9b9783d9bd21a194ea523266530f3dda316da634bf9a4b4096457f4746044a20e0e4b2defc64b2a79e2a4a7d5f75a2
7
+ data.tar.gz: 260f22024b9ddeb9201434d366d463258c293d4b85fd981ad02c2d3f14b91e85fa35e7881f22cae53d412bb66f0d5a7bc70a912a00e2943bd80571fe15dd285b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- turbo_power (0.6.0)
4
+ turbo_power (0.6.1)
5
5
  turbo-rails (>= 1.3.0)
6
6
 
7
7
  GEM
@@ -43,8 +43,10 @@ GEM
43
43
  crass (~> 1.0.2)
44
44
  nokogiri (>= 1.5.9)
45
45
  method_source (1.0.0)
46
+ mini_portile2 (2.8.5)
46
47
  minitest (5.17.0)
47
- nokogiri (1.14.2-x86_64-darwin)
48
+ nokogiri (1.14.2)
49
+ mini_portile2 (~> 2.8.0)
48
50
  racc (~> 1.4)
49
51
  parallel (1.22.1)
50
52
  parser (3.1.3.0)
@@ -95,7 +97,8 @@ GEM
95
97
  actionpack (>= 5.2)
96
98
  activesupport (>= 5.2)
97
99
  sprockets (>= 3.0.0)
98
- sqlite3 (1.5.4-x86_64-darwin)
100
+ sqlite3 (1.5.4)
101
+ mini_portile2 (~> 2.8.0)
99
102
  thor (1.2.1)
100
103
  turbo-rails (1.3.3)
101
104
  actionpack (>= 6.0.0)
@@ -109,6 +112,7 @@ GEM
109
112
  PLATFORMS
110
113
  x86_64-darwin-19
111
114
  x86_64-darwin-22
115
+ x86_64-darwin-23
112
116
 
113
117
  DEPENDENCIES
114
118
  rake (~> 13.0)
data/README.md CHANGED
@@ -138,7 +138,10 @@ import 'controllers'
138
138
  ### Browser Actions
139
139
 
140
140
  * `turbo_stream.reload(**attributes)`
141
- * `turbo_stream.scroll_into_view(targets, **attributes)`
141
+ * `turbo_stream.scroll_into_view(**attributes)`
142
+ * `turbo_stream.scroll_into_view(targets)`
143
+ * `turbo_stream.scroll_into_view(targets, align_to_top)`
144
+ * `turbo_stream.scroll_into_view(targets, behavior:, block:, inline:)`
142
145
  * `turbo_stream.set_focus(targets, **attributes)`
143
146
  * `turbo_stream.set_title(title, **attributes)`
144
147
 
@@ -176,8 +176,8 @@ module TurboPower
176
176
  custom_action :reload, attributes: attributes
177
177
  end
178
178
 
179
- def scroll_into_view(targets = nil, **attributes)
180
- custom_action_all :scroll_into_view, targets: targets, attributes: attributes
179
+ def scroll_into_view(targets = nil, align_to_top = nil, **attributes)
180
+ custom_action_all :scroll_into_view, targets: targets, attributes: attributes.reverse_merge(align_to_top: align_to_top).compact
181
181
  end
182
182
 
183
183
  def set_cookie(cookie = nil, **attributes)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TurboPower
4
- VERSION = "0.6.0"
4
+ VERSION = "0.6.1"
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.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Roth
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-29 00:00:00.000000000 Z
11
+ date: 2024-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: turbo-rails
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  requirements: []
74
- rubygems_version: 3.3.26
74
+ rubygems_version: 3.5.3
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: Power-pack for Turbo Streams