findbug 0.3.0 → 0.3.2

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: c722ca45605700abb60218e4f1235a05351b6b70e591a71aec8be182605bde21
4
- data.tar.gz: 74860b9979a5a9648a0d7e7dae574402792e7ab0fdf0e20814be82bd26c351bb
3
+ metadata.gz: c6be157fb43d73577d48e404ce60565bb9673318fb35c00591a4cd070890793d
4
+ data.tar.gz: 2ab1e58a35a8a02997f1f56427d8a62bdce9d99b45270bdcfe1c7529e492081e
5
5
  SHA512:
6
- metadata.gz: a3f57534ea32b44c6f17a3fdc6cbdbaf13f33e30081f953b75777ba6309ce7fb9fab6c374fea24a9ef853dc13c09b3bf139d6a2a8b20fdd42b634ddda930bf9b
7
- data.tar.gz: b717253e518e0ee0c917e4680ef32be97f49a942df1f3df304c2faea6202c66ddf7a0d34a9470bbe39319913c5af8f7662e2865a82f1b805f67430f707eddc54
6
+ metadata.gz: b8ed796ca72ce63cce24145fb2654f234b7e8d0c3391405d5ab110473f456f5df849f121503d6e33c25e3e538da3f06194baf82a3d9994a132afa7c01c6ac790
7
+ data.tar.gz: 28e59dc8442a8a88498e709e575bc2a561d02b44455d729136f8bc50e06340a77a274c4de119611d00788f6b5dc11140fc3b0a91a2c1abf4b83fac00a1916c58
@@ -1,16 +1,19 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "rails/engine"
4
+ require "active_record"
4
5
 
5
6
  # Calculate the gem root path once at load time
6
7
  # __dir__ is lib/findbug, so we go up two levels to get the gem root
7
8
  FINDBUG_GEM_ROOT = File.expand_path("../..", __dir__)
8
9
 
9
- # Require models (needed for persistence)
10
+ # Require models early so they're available for multi-tenant gems (Apartment)
11
+ # that resolve excluded_models during boot via Object.const_get.
12
+ # This must happen before Apartment's initializer runs.
10
13
  require_relative "../../app/models/findbug/error_event"
11
14
  require_relative "../../app/models/findbug/performance_event"
12
15
 
13
- # Require controllers
16
+ # Require controllers (needed for routing)
14
17
  require_relative "../../app/controllers/findbug/application_controller"
15
18
  require_relative "../../app/controllers/findbug/dashboard_controller"
16
19
  require_relative "../../app/controllers/findbug/errors_controller"
@@ -2,6 +2,10 @@
2
2
 
3
3
  require "rails/railtie"
4
4
 
5
+ # Load the engine early so models are available for multi-tenant gems (Apartment)
6
+ # that resolve excluded_models during boot via Object.const_get.
7
+ require_relative "engine"
8
+
5
9
  module Findbug
6
10
  # Railtie hooks Findbug into the Rails boot process.
7
11
  #
@@ -117,7 +121,7 @@ module Findbug
117
121
  app.config.after_initialize do
118
122
  next unless Findbug.config.web_enabled?
119
123
 
120
- require_relative "engine"
124
+ # Engine is already loaded at top of railtie.rb for Apartment compatibility
121
125
 
122
126
  # Add routes programmatically
123
127
  # This is equivalent to `mount Findbug::Engine => "/findbug"` in routes.rb
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Findbug
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: findbug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Soumit Das