lib/licensed/source/manifest.rb
# Detects license information and sets it on this dependency object.
#  After calling `detect_license!``, the license is set at
# `dependency["license"]` and legal text is set to `dependency.text`
Detects license information and sets it on this dependency object.
Detects license information and sets it on this dependency object .
def detect_license!
          if license_key == "none"
            tmp_license_file = write_license_from_source_licenses(self.path, @sources)
            reset_license! if tmp_license_file && File.exist?(tmp_license_file)
          end
          super
        ensure
          File.delete(tmp_license_file) if tmp_license_file && File.exist?(tmp_license_file)
        end
def detect_license! if license_key == "none" tmp_license_file = write_license_from_source_licenses ( self . path , @sources ) reset_license! if tmp_license_file && File . exist? ( tmp_license_file ) end super ensure File . delete ( tmp_license_file ) if tmp_license_file && File . exist? ( tmp_license_file ) end
Detects license information and sets it on this dependency object.
Detects license information and sets it on this dependency object .
# if no license key is found for the project, try to create a # temporary LICENSE file from unique source file license headers