lib/licensed/sources/bundler.rb in licensed-3.1.0 vs lib/licensed/sources/bundler.rb in licensed-3.2.0

- old
+ new

@@ -27,10 +27,10 @@ # Find a package manager file from the given bundler specification's # `loaded_from` if available. def spec_file return @spec_file if defined?(@spec_file) - return @spec_file = nil unless loaded_from && File.exist?(loaded_from) + return @spec_file = nil unless loaded_from && File.file?(loaded_from) @spec_file = begin file = { name: File.basename(loaded_from), dir: File.dirname(loaded_from) } Licensee::ProjectFiles::PackageManagerFile.new(File.read(loaded_from), file) end end