lib/licensee/license_file.rb in licensee-4.5.0 vs lib/licensee/license_file.rb in licensee-4.6.0

- old
+ new

@@ -1,10 +1,11 @@ class Licensee class LicenseFile - attr_reader :blob + attr_reader :blob, :path - def initialize(blob) + def initialize(blob, options={}) @blob = blob + @path = options[:path] end def similarity(other) blob.hashsig(Rugged::Blob::HashSignature::WHITESPACE_SMART) other.hashsig ? blob.similarity(other.hashsig) : 0