lib/license_finder/packages/manual_package.rb



module LicenseFinder
  class ManualPackage < Package
    def ==(other)
      eql? other
    end

    def eql?(other)
      name == other.name # && version.to_s == other.version.to_s # ignore version
    end

    def hash
      name.hash # ^ version.to_s.hash # ignore version
    end

    private

    def licenses_from_spec
      Set.new
    end

    def licenses_from_files
      Set.new
    end
  end
end