lib/licensee/project.rb in licensee-8.8.5 vs lib/licensee/project.rb in licensee-8.9.0
- old
+ new
@@ -15,10 +15,12 @@
def license
@license ||= matched_file && matched_file.license
end
def matched_file
- @matched_file ||= (license_file || readme || package_file)
+ @matched_file ||= begin
+ [license_file, readme, package_file].compact.find(&:license)
+ end
end
def license_file
return @license_file if defined? @license_file
@license_file = begin