redpen-rails 0.1.0 → 0.1.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: 39dd26115a7ab4e0acfeda34e39d2a3f663d441d3f7301985df839bc1bef8889
4
- data.tar.gz: be286165894bce577539b1ab7438f2b9041d8c90771a9cc535b310a5616f1552
3
+ metadata.gz: 5e5043df8722fefb8032852b2ff807ecd9b8f70bd8009b7453d2588892868845
4
+ data.tar.gz: 98582301d64109683fb44ae42f3b24a53c50ebbef3cbdcaeb214fd5adf22c693
5
5
  SHA512:
6
- metadata.gz: 9db7f16ee197699140d766ea670df403bc51c24065e3ba1d618a92a2bd052df93c77158eaaf4e5d5dd6332f64d6ed9dd86a4ed215cbf15443570b89a389baecf
7
- data.tar.gz: 1ca4e0ff51280541db1c08eb9928f32890acee01d177b6492f18ac5ed80ecb7ad692e2506cda6f96a583577f584977514fce5d95c77f82cee1d7a168345d8e6a
6
+ metadata.gz: 3f2a440ce69a5081ee8dc0ccf7112ad6a5bfe0a4dd8f741edfe4662284c88a663aff289a69e0011990b850fbb6e43955ea75fda6f350cbb44136ca7de8401f5f
7
+ data.tar.gz: 1f8f0346aa294dcc84b0824827be7f03bd7c9334978645b111592d810f29c3a7bf25d8ecf65b4d1ff888c2d31981d597d9f6901416e326ee496859d0fba90f89
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.1 — 2026-09-16
4
+
5
+ Helpers register in `to_prepare` instead of an engine initializer. A host that loads `ActionController::Base` during boot (Curated Connections requires a lib from `application.rb` that does) fired the `on_load` hook before the autoloader existed, and `Redpen::RailHelper` failed to resolve. Found on the first day of the second host.
6
+
3
7
  ## 0.1.0 — 2026-09-16
4
8
 
5
9
  First extraction, from nityesh.com. Notes pinned to elements by path + CSS selector, a pen UI as one Stimulus controller, resolve/reopen as a resolution resource, `redpen_rail` and `redpen_inject` helpers, `redpen:install` and `redpen:views` generators. Sprockets and Propshaft, import maps only.
data/lib/redpen/engine.rb CHANGED
@@ -25,8 +25,12 @@ module Redpen
25
25
  end
26
26
  end
27
27
 
28
- # `redpen_rail` and `redpen_inject` in every host view and controller.
29
- initializer "redpen.helpers" do
28
+ # `redpen_rail` and `redpen_inject` in every host view and controller. Not an
29
+ # initializer: a host that loads ActionController::Base at boot (an initializer
30
+ # referencing it, a lib required from application.rb) would fire the hook before
31
+ # the autoloader exists, and Redpen::RailHelper would not resolve. to_prepare runs
32
+ # once the autoloader is up, and again on every reload in development.
33
+ config.to_prepare do
30
34
  ActiveSupport.on_load(:action_controller_base) { helper Redpen::RailHelper }
31
35
  end
32
36
  end
@@ -1,3 +1,3 @@
1
1
  module Redpen
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redpen-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nityesh Agarwal