-
Notifications
You must be signed in to change notification settings - Fork 898
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add qpid_proton stubs for macs so we can run zeitwek:check
Before this, macs had to prevent zeitwerk from testing eager loading the caller file expecting the Qpid constant to be known. Now, we can run it: DEBUG_MANAGEIQ_ZEITWERK=true bin/rails zeitwerk:check --trace
- Loading branch information
Showing
3 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Fake qpid_proton stub so zeitwerk can autoload on platforms that can't build the gem, such as macos. | ||
if RUBY_PLATFORM.include?("darwin") | ||
module Qpid | ||
module Proton | ||
class Container | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Fake qpid_proton stub so zeitwerk can autoload on platforms that can't build the gem, such as macos. | ||
if RUBY_PLATFORM.include?("darwin") | ||
module Qpid | ||
module Proton | ||
class MessagingHandler | ||
end | ||
end | ||
end | ||
end |