Sha256: 8aa9f9a33432f8a6563edfba3e3f00d82822df0f354be9bca7baee8a824e916e
Contents?: true
Size: 967 Bytes
Versions: 2
Compression:
Stored size: 967 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 licenses_from_spec Package.extract_licenses_from_standard_spec(module_metadata) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
license_finder-1.0.0.0 | lib/license_finder/package_managers/bower_package.rb |
license_finder-1.0.0.0-java | lib/license_finder/package_managers/bower_package.rb |