hotwire_club-toolbox 0.2.0 → 0.2.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 +4 -4
- data/CHANGELOG.md +14 -0
- data/lib/hotwire_club/toolbox/engine.rb +5 -0
- data/lib/hotwire_club/toolbox/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: 5ea1b171969bd0f9185d243aae5a8bf0934a275c537ea19945bb9e386bbd177e
|
|
4
|
+
data.tar.gz: ee66e7f2d9d3ba8a3d0c2308d13349cf87e98cd43e336ced4d74f3b63a0fd8da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a14b2849acc3cb33b56bc6e64821b92aced673a2543d91bf419fc4cf42c676bc2f5f75da94c2aa85f38183e1afd72116ce0b1585a6aecfa61b7b12ab6306d708
|
|
7
|
+
data.tar.gz: 64802fe9552bafa4d4c23a5e4e2b47f5249d294b55bf2e82914596d2e33a920fd6a074d4d5fdef3cf68103ddc9235a4fd2a415c559e3ab11b320d54d34796608
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented here.
|
|
4
4
|
|
|
5
|
+
## [0.2.1]
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- The app no longer fails to boot with `uninitialized constant
|
|
9
|
+
HotwireClub::Toolbox::OptimisticFormHelper` when another gem loads
|
|
10
|
+
`ActionView::Base` before the app initializes (prawn-rails does, during
|
|
11
|
+
`Bundler.require`). The engine's `on_load(:action_view)` hook then runs
|
|
12
|
+
immediately, before the main autoloader is set up. The engine's own
|
|
13
|
+
`app/helpers` directory is now managed by the once autoloader, which is
|
|
14
|
+
available during initialization. Nothing else moves: the host app's helpers
|
|
15
|
+
and other engines stay on the main autoloader. The only consequence is that
|
|
16
|
+
the toolbox's helpers are no longer reloaded in development, which suits
|
|
17
|
+
modules mixed into the never-reloaded `ActionView::Base`.
|
|
18
|
+
|
|
5
19
|
## [0.2.0]
|
|
6
20
|
|
|
7
21
|
### Changed
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
module HotwireClub
|
|
2
2
|
module Toolbox
|
|
3
3
|
class Engine < ::Rails::Engine
|
|
4
|
+
# The helpers below are included into ActionView::Base, which some gems
|
|
5
|
+
# load before the app initializes; the hook then runs at once, before the
|
|
6
|
+
# main autoloader exists. The once autoloader is already set up by then.
|
|
7
|
+
paths["app/helpers"].autoload_once!
|
|
8
|
+
|
|
4
9
|
# Make the engine's view helpers available in the host app's views.
|
|
5
10
|
# (The engine intentionally does not isolate its namespace.)
|
|
6
11
|
initializer "hotwire_club.toolbox.helpers" do
|