It seems Formulary.find_with_priority is now deprecated. In the Homebrew commit,
they replaced callsites to use .factory instead. So I did that here. Seems to work
locally.
The reason for this change is I updated Homebrew and then tried to rebuild
Emacs with jansson; it failed with:
Error: undefined method `find_with_priority' for Formulary:Module
.../build-emacs/brew/bin/brew-source.rb:30:in `block in <top (required)>'
In https://github.com/Homebrew/brew/commit/4f75a77b089e65ff9e03c65d192808aa4ea6842f, a method was removed.
It seems Formulary.find_with_priority is now deprecated. In the Homebrew commit, they replaced callsites to use .factory instead. So I did that here. Seems to work locally.
The reason for this change is I updated Homebrew and then tried to rebuild Emacs with jansson; it failed with: