Sha256: a005165c62f86683f937a71aedf25e43263f65b7724eb3d41e8ce5fc745ae9c9
Contents?: true
Size: 571 Bytes
Versions: 3
Compression:
Stored size: 571 Bytes
Contents
module LicenseFinder class CargoPackage < Package def initialize(crate, options = {}) crate = crate.reject { |_, v| v.nil? || v == '' } children = crate.fetch('dependencies', []).map { |p| p['name'] } licenses = crate.fetch('license', '').split('/') super( crate['name'], crate['version'], options.merge( summary: crate.fetch('description', '').strip, spec_licenses: licenses.compact, children: children ) ) end def package_manager 'Cargo' end end end
Version data entries
3 entries across 3 versions & 1 rubygems