Sha256: ea6aa471a791352d12ad9bbc9791a1a2d952f3ce425841fa74ed00b3fe9880f9
Contents?: true
Size: 969 Bytes
Versions: 5
Compression:
Stored size: 969 Bytes
Contents
module LicenseFinder class BowerPackage < Package def initialize(bower_module) @bower_module = bower_module @module_metadata = bower_module.fetch("pkgMeta", Hash.new) end def name module_metadata.fetch("name", nil) end def version module_metadata.fetch("version", nil) end def summary module_metadata.fetch("description", nil) end def description module_metadata.fetch("readme", nil) end def homepage module_metadata.fetch("homepage", nil) end def children [] # no way to determine child deps from bower (maybe?) end def groups [] # no concept of dev/test groups in bower (maybe?) end private attr_reader :bower_module attr_reader :module_metadata def install_path bower_module["canonicalDir"] end def license_names_from_spec Package.license_names_from_standard_spec(module_metadata) end end end
Version data entries
5 entries across 5 versions & 1 rubygems