whittaker_tech-midas 0.4.0 → 0.4.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: fe9c21222c40c9da18f01c21076e775b5d00f6f7b817f2c06c05223cdd88de8b
4
- data.tar.gz: 50ec83ec5d2b1fbe82e3856180ce63c8bc35f458679f14ab3fdd800229ef519d
3
+ metadata.gz: 3ced6c0bb5653348b76ef9283648bb82d560a6ad5b1d1d142b73914b33d4b1d2
4
+ data.tar.gz: 965e64d692e4856c468735a7624c173d22c7901adc9ee2f569c98918a09b9302
5
5
  SHA512:
6
- metadata.gz: 4833df22795e85d8e837bd2c0fa81ee6cf593a401463daf7ca42b6adf659be45cecd497213a0641d363c1523019fd2ac616265212aca85e531ee56d9d50efb7f
7
- data.tar.gz: bdcf127c769350759698cfefb12babe569c5c0c2ed907b3127212e2d806ff3c8eec0d9dedde9f62b6ec59721683e8fa99b21eeef883a6148166d567673dce20a
6
+ metadata.gz: de3c225a2d69ae2c8f7ee666e45e444e2a7c77e3d2e1660103476facebf2d3577215ffab57042ee657948a266b12f840b082e1812e277746a9a9d648a340ed1d
7
+ data.tar.gz: f54518af552bdc448fd080f2169d75b9e27e21f3d75018fe2a004c71d41a2a496dfb2630a25697d70e563d337f1a9c99ac3803725f7647486a2b18a3ab011562
data/README.md CHANGED
@@ -28,7 +28,7 @@ This design keeps your pricing, billing, and financial reporting consistent acro
28
28
 
29
29
  ## Requirements
30
30
 
31
- - Ruby 3.4+
31
+ - Ruby 3.2+
32
32
  - Rails 7.1+
33
33
  - money gem ~> 6.19.0
34
34
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- class WhittakerTech::Midas::Generators::InstallGenerator < Rails::Generators::Base
3
+ class WhittakerTech::Midas::InstallGenerator < Rails::Generators::Base
4
4
  desc 'Installs Midas and copies migrations.'
5
5
 
6
6
  def copy_migrations
@@ -108,6 +108,15 @@ class WhittakerTech::Midas::Engine < Rails::Engine
108
108
  config.eager_load_paths += Dir["#{config.root}/app/models"]
109
109
 
110
110
  initializer 'midas.helpers' do
111
+ # Explicit require rather than relying on Zeitwerk autoload resolution
112
+ # here: ActiveSupport.on_load(:action_view) fires immediately (not
113
+ # deferred) whenever ActionView::Base is already loaded by the time this
114
+ # initializer runs, which on Rails 8 hosts happens before this engine's
115
+ # own autoload paths are guaranteed ready -- raising a NameError on boot
116
+ # for WhittakerTech::Midas::FormHelper. Requiring the file directly
117
+ # sidesteps the race entirely.
118
+ require_relative '../../../app/helpers/whittaker_tech/midas/form_helper'
119
+
111
120
  ActiveSupport.on_load(:action_view) do
112
121
  include WhittakerTech::Midas::FormHelper
113
122
  end
@@ -1,5 +1,5 @@
1
1
  module WhittakerTech; end
2
2
 
3
3
  module WhittakerTech::Midas
4
- VERSION = '0.4.0'.freeze
4
+ VERSION = '0.4.1'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whittaker_tech-midas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Whittaker