mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-17 06:16:47 -06:00
Fixes #4641. Cask files in the cwd are still permitted, but at the very lowest priority, below Tapped Cask names.
8 lines
210 B
Ruby
8 lines
210 B
Ruby
require 'cask/source/path_base'
|
|
|
|
class Cask::Source::PathSlashRequired < Cask::Source::PathBase
|
|
def self.me?(query)
|
|
path = self.path_for_query(query)
|
|
path.to_s.include?('/') and path.exist?
|
|
end
|
|
end
|