neon_sakura 0.1.13 → 0.1.14
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/CHANGELOG.md +9 -0
- data/Gemfile.lock +2 -2
- data/app/controllers/style_guide_controller.rb +4 -8
- data/lib/neon_sakura/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d014d34a30aea80b8fb0fd9cc9939d4b7fcffed7a33fe807df05d74d3a82699d
|
|
4
|
+
data.tar.gz: 9ca67527a6d6d487448e9e79bdb84657ec7f52de161d97895eebad8576101616
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c660257b51b1a4a52220e008881f2cc8a71416a3abb06fc3885b98a2e2fd2d1b5c8532beacbe96589b983e596fc947b8eb877b7714c52bef53a15ce4f975811
|
|
7
|
+
data.tar.gz: 982a596c6ed1c6d22717b6273feb1825025e4893f4532e2b1cd2f2a373745d7b5637058da49da6e1bb4fcd4f7ca8b41a1ad0d33274e36223e06371220012fb39
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.14] - 2026-05-06
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- Style guide crash: `Pagy::SERIES_SLOTS` uninitialized constant when rendering `series_nav_js`
|
|
14
|
+
Pagy 43+ lazy-loads `series.rb` via the aliaser, but `wrap_series_nav_js` references
|
|
15
|
+
`SERIES_SLOTS` in a default parameter evaluated BEFORE the aliaser triggers the load.
|
|
16
|
+
The previous require-based fix was insufficient; now directly defines `Pagy::SERIES_SLOTS = 7`
|
|
17
|
+
in the controller if not already defined, which is load-order and Ruby-version safe.
|
|
18
|
+
|
|
10
19
|
## [0.1.13] - 2026-05-06
|
|
11
20
|
|
|
12
21
|
### Fixed
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
neon_sakura (0.1.
|
|
4
|
+
neon_sakura (0.1.14)
|
|
5
5
|
propshaft (>= 1.3.2)
|
|
6
6
|
rails (>= 8.0.0)
|
|
7
7
|
|
|
@@ -386,7 +386,7 @@ CHECKSUMS
|
|
|
386
386
|
minitest-reporters (1.8.0) sha256=8ce5280fb73ad3178ae525454df169b6f28c1b38b1d088ea91815d3a370ba384
|
|
387
387
|
mocha (3.1.0) sha256=75f42d69ebfb1f10b32489dff8f8431d37a418120ecdfc07afe3bc183d4e1d56
|
|
388
388
|
multi_xml (0.9.1) sha256=7ce766b59c17241ed62976caeae1fae9b2431b263398c35396239a68c4a64e57
|
|
389
|
-
neon_sakura (0.1.
|
|
389
|
+
neon_sakura (0.1.14)
|
|
390
390
|
net-imap (0.6.4) sha256=9a5598c67a3022c284d98430ef1d4948e7dbdb62596f61081ea8ca933270a02b
|
|
391
391
|
net-pop (0.1.2) sha256=848b4e982013c15b2f0382792268763b748cce91c9e91e36b0f27ed26420dff3
|
|
392
392
|
net-protocol (0.2.2) sha256=aa73e0cba6a125369de9837b8d8ef82a61849360eba0521900e2c3713aa162a8
|
|
@@ -48,14 +48,10 @@ class StyleGuideController < ActionController::Base
|
|
|
48
48
|
|
|
49
49
|
# Try to set up Pagy if available
|
|
50
50
|
if defined?(Pagy)
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
require "pagy/toolbox/helpers/support/series"
|
|
56
|
-
rescue LoadError
|
|
57
|
-
nil
|
|
58
|
-
end
|
|
51
|
+
# Pagy 43+ lazy-loads series.rb via the aliaser, but wrap_series_nav_js.rb references
|
|
52
|
+
# SERIES_SLOTS in a default parameter evaluated BEFORE the aliaser triggers the series()
|
|
53
|
+
# load. const_set avoids a dynamic constant assignment (not allowed in method bodies).
|
|
54
|
+
Pagy.const_set(:SERIES_SLOTS, 7) unless defined?(Pagy::SERIES_SLOTS)
|
|
59
55
|
|
|
60
56
|
begin
|
|
61
57
|
# Pagy 43+ uses pagy(:offset, collection, **options)
|
data/lib/neon_sakura/version.rb
CHANGED