Sha256: bddc4f7611878d6776571b1a86c0e6261830ba6adb40f1cb01fb59e5f90e06cf
Contents?: true
Size: 602 Bytes
Versions: 22
Compression:
Stored size: 602 Bytes
Contents
# frozen_string_literal: true 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
22 entries across 22 versions & 1 rubygems