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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e092795d27561987de62399778c3a855cddac9e7a9f45885b851018ebb467369
4
- data.tar.gz: 381ec47dde21b4880b72d01918176e64a0db85182e5fdfe211b451ec5ac12550
3
+ metadata.gz: d014d34a30aea80b8fb0fd9cc9939d4b7fcffed7a33fe807df05d74d3a82699d
4
+ data.tar.gz: 9ca67527a6d6d487448e9e79bdb84657ec7f52de161d97895eebad8576101616
5
5
  SHA512:
6
- metadata.gz: e4407dc1c7b4a454680b89ef3581e5f5b5e872dcbad566d5f039fd3c574bc857248a70b394ff02b9471a79225108228aacd4830a0e95c91887d7a08d37e7728a
7
- data.tar.gz: 8c2b219e1c3137d6add0f9484431808527f7995cc20b72d1e12c56d2200895bfb441e87c1e6a7d660f4c14529fcbf9fe0973c29b71cb88b5f419138a8ac955f0
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.13)
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.13)
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
- begin
52
- # Pagy 43+ lazy-loads series.rb via its aliaser, but wrap_series_nav_js.rb
53
- # references SERIES_SLOTS in a default parameter before series() triggers the load.
54
- # Explicitly require series.rb to define SERIES_SLOTS upfront.
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NeonSakura
4
- VERSION = "0.1.13"
4
+ VERSION = "0.1.14"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neon_sakura
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - trex22