lib/spandx/parsers.rb in spandx-0.1.5 vs lib/spandx/parsers.rb in spandx-0.1.6
- old
+ new
@@ -13,10 +13,10 @@
[]
end
end
class << self
- def for(path, catalogue: Spandx::Catalogue.latest)
+ def for(path, catalogue: Spandx::Catalogue.from_git)
result = ::Spandx::Parsers::Base.find do |x|
x.matches?(File.basename(path))
end
result&.new(catalogue: catalogue) || UNKNOWN