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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ef4fb1e166b6dfb0c498a89f9dbdec29c95af1228d45d126a080ee4328ca44f
4
- data.tar.gz: 67c0d7880e2e4a9749632ebd5a59c84575046cf88589ca79e8ef0919062ce661
3
+ metadata.gz: 5ea1b171969bd0f9185d243aae5a8bf0934a275c537ea19945bb9e386bbd177e
4
+ data.tar.gz: ee66e7f2d9d3ba8a3d0c2308d13349cf87e98cd43e336ced4d74f3b63a0fd8da
5
5
  SHA512:
6
- metadata.gz: 9ace48512f23f6dd4fff86676542564f50354baa4e41520157bbca198ffedf01647798041ac1f6ed9cdd0b2b42933ae6a3cb20fd774a1153c3add0bd5cb00cfb
7
- data.tar.gz: 63c0130410564e5bee90f918521ab146caca70aeb266c5ba0e781a4e4e01290c149d1dc16f0e1ba5ef6029ec30a201ada01dff066418b73b7627f44956bc87bc
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
@@ -1,5 +1,5 @@
1
1
  module HotwireClub
2
2
  module Toolbox
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hotwire_club-toolbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Rubisch