lib/licensed/dependency.rb in licensed-0.11.0 vs lib/licensed/dependency.rb in licensed-0.11.1
- old
+ new
@@ -30,16 +30,10 @@
self.text = ([license_text] + self.notices).compact.join("\n" + "-" * 80 + "\n")
end
# Extract legal notices from the dependency source
def notices
- files = local_files
-
- if project.license_file
- files.unshift File.join(project.license_file[:dir], project.license_file.filename)
- end
-
- files.uniq.map { |f| File.read(f) }
+ local_files.uniq.map { |f| File.read(f) }
end
def local_files
return [] unless Dir.exist?(path)