
This is the pattern we've been adopting for a while and it's a bit cleaner. Let's remove all of the existing usage of the existing pattern to avoid confusion when adopting the new one.
16 lines
355 B
Ruby
16 lines
355 B
Ruby
# typed: strict
|
|
# frozen_string_literal: true
|
|
|
|
module OS
|
|
module Linux
|
|
module FormulaCellarChecks
|
|
sig { params(filename: Pathname).returns(T::Boolean) }
|
|
def valid_library_extension?(filename)
|
|
super || filename.basename.to_s.include?(".so.")
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
FormulaCellarChecks.prepend(OS::Linux::FormulaCellarChecks)
|