lib/licensed/configuration.rb in licensed-2.4.0 vs lib/licensed/configuration.rb in licensed-2.5.0

- old
+ new

@@ -77,11 +77,11 @@ def ignored?(dependency) Array(self["ignored"][dependency["type"]]).include?(dependency["name"]) end # Is the license of the dependency allowed? - def allowed?(dependency) - Array(self["allowed"]).include?(dependency["license"]) + def allowed?(license) + Array(self["allowed"]).include?(license) end # Ignore a dependency def ignore(dependency) (self["ignored"][dependency["type"]] ||= []) << dependency["name"]